Class MethodDetails.Builder (0.51.0)

public static final class MethodDetails.Builder extends GeneratedMessage.Builder<MethodDetails.Builder> implements MethodDetailsOrBuilder

The method details per method in the CSS API.

Protobuf type google.shopping.css.v1.MethodDetails

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public MethodDetails build()
Returns
Type Description
MethodDetails

buildPartial()

public MethodDetails buildPartial()
Returns
Type Description
MethodDetails

clear()

public MethodDetails.Builder clear()
Returns
Type Description
MethodDetails.Builder
Overrides

clearMethod()

public MethodDetails.Builder clearMethod()

Output only. The name of the method for example cssproductsservice.listcssproducts.

string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MethodDetails.Builder

This builder for chaining.

clearPath()

public MethodDetails.Builder clearPath()

Output only. The path for the method such as v1/cssproductsservice.listcssproducts.

string path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MethodDetails.Builder

This builder for chaining.

clearSubapi()

public MethodDetails.Builder clearSubapi()

Output only. The sub-API that the method belongs to. In the CSS API, this is always css.

string subapi = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MethodDetails.Builder

This builder for chaining.

clearVersion()

public MethodDetails.Builder clearVersion()

Output only. The API version that the method belongs to.

string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MethodDetails.Builder

This builder for chaining.

getDefaultInstanceForType()

public MethodDetails getDefaultInstanceForType()
Returns
Type Description
MethodDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMethod()

public String getMethod()

Output only. The name of the method for example cssproductsservice.listcssproducts.

string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The method.

getMethodBytes()

public ByteString getMethodBytes()

Output only. The name of the method for example cssproductsservice.listcssproducts.

string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for method.

getPath()

public String getPath()

Output only. The path for the method such as v1/cssproductsservice.listcssproducts.

string path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Output only. The path for the method such as v1/cssproductsservice.listcssproducts.

string path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for path.

getSubapi()

public String getSubapi()

Output only. The sub-API that the method belongs to. In the CSS API, this is always css.

string subapi = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The subapi.

getSubapiBytes()

public ByteString getSubapiBytes()

Output only. The sub-API that the method belongs to. In the CSS API, this is always css.

string subapi = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for subapi.

getVersion()

public String getVersion()

Output only. The API version that the method belongs to.

string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Output only. The API version that the method belongs to.

string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MethodDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MethodDetails.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MethodDetails.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MethodDetails.Builder
Overrides

mergeFrom(MethodDetails other)

public MethodDetails.Builder mergeFrom(MethodDetails other)
Parameter
Name Description
other MethodDetails
Returns
Type Description
MethodDetails.Builder

setMethod(String value)

public MethodDetails.Builder setMethod(String value)

Output only. The name of the method for example cssproductsservice.listcssproducts.

string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The method to set.

Returns
Type Description
MethodDetails.Builder

This builder for chaining.

setMethodBytes(ByteString value)

public MethodDetails.Builder setMethodBytes(ByteString value)

Output only. The name of the method for example cssproductsservice.listcssproducts.

string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for method to set.

Returns
Type Description
MethodDetails.Builder

This builder for chaining.

setPath(String value)

public MethodDetails.Builder setPath(String value)

Output only. The path for the method such as v1/cssproductsservice.listcssproducts.

string path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The path to set.

Returns
Type Description
MethodDetails.Builder

This builder for chaining.

setPathBytes(ByteString value)

public MethodDetails.Builder setPathBytes(ByteString value)

Output only. The path for the method such as v1/cssproductsservice.listcssproducts.

string path = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
MethodDetails.Builder

This builder for chaining.

setSubapi(String value)

public MethodDetails.Builder setSubapi(String value)

Output only. The sub-API that the method belongs to. In the CSS API, this is always css.

string subapi = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The subapi to set.

Returns
Type Description
MethodDetails.Builder

This builder for chaining.

setSubapiBytes(ByteString value)

public MethodDetails.Builder setSubapiBytes(ByteString value)

Output only. The sub-API that the method belongs to. In the CSS API, this is always css.

string subapi = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for subapi to set.

Returns
Type Description
MethodDetails.Builder

This builder for chaining.

setVersion(String value)

public MethodDetails.Builder setVersion(String value)

Output only. The API version that the method belongs to.

string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The version to set.

Returns
Type Description
MethodDetails.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public MethodDetails.Builder setVersionBytes(ByteString value)

Output only. The API version that the method belongs to.

string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
MethodDetails.Builder

This builder for chaining.