Class MethodDetails.Builder (0.2.0)

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

The method details per method in the Merchant API.

Protobuf type google.shopping.merchant.quota.v1beta.MethodDetails

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MethodDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MethodDetails.Builder
Overrides

build()

public MethodDetails build()
Returns
TypeDescription
MethodDetails

buildPartial()

public MethodDetails buildPartial()
Returns
TypeDescription
MethodDetails

clear()

public MethodDetails.Builder clear()
Returns
TypeDescription
MethodDetails.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MethodDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MethodDetails.Builder
Overrides

clearMethod()

public MethodDetails.Builder clearMethod()

Output only. The name of the method for example products.list.

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

Returns
TypeDescription
MethodDetails.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MethodDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MethodDetails.Builder
Overrides

clearPath()

public MethodDetails.Builder clearPath()

Output only. The path for the method such as products/v1/productInputs.insert

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

Returns
TypeDescription
MethodDetails.Builder

This builder for chaining.

clearSubapi()

public MethodDetails.Builder clearSubapi()

Output only. The sub-API that the method belongs to.

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

Returns
TypeDescription
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
TypeDescription
MethodDetails.Builder

This builder for chaining.

clone()

public MethodDetails.Builder clone()
Returns
TypeDescription
MethodDetails.Builder
Overrides

getDefaultInstanceForType()

public MethodDetails getDefaultInstanceForType()
Returns
TypeDescription
MethodDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMethod()

public String getMethod()

Output only. The name of the method for example products.list.

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

Returns
TypeDescription
String

The method.

getMethodBytes()

public ByteString getMethodBytes()

Output only. The name of the method for example products.list.

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

Returns
TypeDescription
ByteString

The bytes for method.

getPath()

public String getPath()

Output only. The path for the method such as products/v1/productInputs.insert

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

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

Output only. The path for the method such as products/v1/productInputs.insert

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

Returns
TypeDescription
ByteString

The bytes for path.

getSubapi()

public String getSubapi()

Output only. The sub-API that the method belongs to.

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

Returns
TypeDescription
String

The subapi.

getSubapiBytes()

public ByteString getSubapiBytes()

Output only. The sub-API that the method belongs to.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MethodDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MethodDetails.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MethodDetails.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MethodDetails.Builder
Overrides

mergeFrom(MethodDetails other)

public MethodDetails.Builder mergeFrom(MethodDetails other)
Parameter
NameDescription
otherMethodDetails
Returns
TypeDescription
MethodDetails.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MethodDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MethodDetails.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public MethodDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MethodDetails.Builder
Overrides

setMethod(String value)

public MethodDetails.Builder setMethod(String value)

Output only. The name of the method for example products.list.

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

Parameter
NameDescription
valueString

The method to set.

Returns
TypeDescription
MethodDetails.Builder

This builder for chaining.

setMethodBytes(ByteString value)

public MethodDetails.Builder setMethodBytes(ByteString value)

Output only. The name of the method for example products.list.

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

Parameter
NameDescription
valueByteString

The bytes for method to set.

Returns
TypeDescription
MethodDetails.Builder

This builder for chaining.

setPath(String value)

public MethodDetails.Builder setPath(String value)

Output only. The path for the method such as products/v1/productInputs.insert

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

Parameter
NameDescription
valueString

The path to set.

Returns
TypeDescription
MethodDetails.Builder

This builder for chaining.

setPathBytes(ByteString value)

public MethodDetails.Builder setPathBytes(ByteString value)

Output only. The path for the method such as products/v1/productInputs.insert

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

Parameter
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
MethodDetails.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MethodDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MethodDetails.Builder
Overrides

setSubapi(String value)

public MethodDetails.Builder setSubapi(String value)

Output only. The sub-API that the method belongs to.

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

Parameter
NameDescription
valueString

The subapi to set.

Returns
TypeDescription
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.

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

Parameter
NameDescription
valueByteString

The bytes for subapi to set.

Returns
TypeDescription
MethodDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MethodDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MethodDetails.Builder
Overrides

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
NameDescription
valueString

The version to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
MethodDetails.Builder

This builder for chaining.