Class RetrieveLatestTermsOfServiceRequest.Builder (0.2.0)

public static final class RetrieveLatestTermsOfServiceRequest.Builder extends GeneratedMessageV3.Builder<RetrieveLatestTermsOfServiceRequest.Builder> implements RetrieveLatestTermsOfServiceRequestOrBuilder

Request message for the RetrieveLatestTermsOfService method.

Protobuf type google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RetrieveLatestTermsOfServiceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder
Overrides

build()

public RetrieveLatestTermsOfServiceRequest build()
Returns
Type Description
RetrieveLatestTermsOfServiceRequest

buildPartial()

public RetrieveLatestTermsOfServiceRequest buildPartial()
Returns
Type Description
RetrieveLatestTermsOfServiceRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public RetrieveLatestTermsOfServiceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder
Overrides

clearKind()

public RetrieveLatestTermsOfServiceRequest.Builder clearKind()

The Kind this terms of service version applies to.

.google.shopping.merchant.accounts.v1beta.TermsOfServiceKind kind = 2;

Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RetrieveLatestTermsOfServiceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder
Overrides

clearRegionCode()

public RetrieveLatestTermsOfServiceRequest.Builder clearRegionCode()

Region code as defined by CLDR. This is either a country when the ToS applies specifically to that country or 001 when it applies globally.

string region_code = 1;

Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder

This builder for chaining.

clone()

public RetrieveLatestTermsOfServiceRequest.Builder clone()
Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder
Overrides

getDefaultInstanceForType()

public RetrieveLatestTermsOfServiceRequest getDefaultInstanceForType()
Returns
Type Description
RetrieveLatestTermsOfServiceRequest

getDescriptorForType()

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

getKind()

public TermsOfServiceKind getKind()

The Kind this terms of service version applies to.

.google.shopping.merchant.accounts.v1beta.TermsOfServiceKind kind = 2;

Returns
Type Description
TermsOfServiceKind

The kind.

getKindValue()

public int getKindValue()

The Kind this terms of service version applies to.

.google.shopping.merchant.accounts.v1beta.TermsOfServiceKind kind = 2;

Returns
Type Description
int

The enum numeric value on the wire for kind.

getRegionCode()

public String getRegionCode()

Region code as defined by CLDR. This is either a country when the ToS applies specifically to that country or 001 when it applies globally.

string region_code = 1;

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

Region code as defined by CLDR. This is either a country when the ToS applies specifically to that country or 001 when it applies globally.

string region_code = 1;

Returns
Type Description
ByteString

The bytes for regionCode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(RetrieveLatestTermsOfServiceRequest other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RetrieveLatestTermsOfServiceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RetrieveLatestTermsOfServiceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder
Overrides

setKind(TermsOfServiceKind value)

public RetrieveLatestTermsOfServiceRequest.Builder setKind(TermsOfServiceKind value)

The Kind this terms of service version applies to.

.google.shopping.merchant.accounts.v1beta.TermsOfServiceKind kind = 2;

Parameter
Name Description
value TermsOfServiceKind

The kind to set.

Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder

This builder for chaining.

setKindValue(int value)

public RetrieveLatestTermsOfServiceRequest.Builder setKindValue(int value)

The Kind this terms of service version applies to.

.google.shopping.merchant.accounts.v1beta.TermsOfServiceKind kind = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for kind to set.

Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder

This builder for chaining.

setRegionCode(String value)

public RetrieveLatestTermsOfServiceRequest.Builder setRegionCode(String value)

Region code as defined by CLDR. This is either a country when the ToS applies specifically to that country or 001 when it applies globally.

string region_code = 1;

Parameter
Name Description
value String

The regionCode to set.

Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder

This builder for chaining.

setRegionCodeBytes(ByteString value)

public RetrieveLatestTermsOfServiceRequest.Builder setRegionCodeBytes(ByteString value)

Region code as defined by CLDR. This is either a country when the ToS applies specifically to that country or 001 when it applies globally.

string region_code = 1;

Parameter
Name Description
value ByteString

The bytes for regionCode to set.

Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder

This builder for chaining.

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

public RetrieveLatestTermsOfServiceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RetrieveLatestTermsOfServiceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RetrieveLatestTermsOfServiceRequest.Builder
Overrides