Class TermsOfService.Builder (0.1.0)

public static final class TermsOfService.Builder extends GeneratedMessageV3.Builder<TermsOfService.Builder> implements TermsOfServiceOrBuilder

A TermsOfService.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TermsOfService build()
Returns
Type Description
TermsOfService

buildPartial()

public TermsOfService buildPartial()
Returns
Type Description
TermsOfService

clear()

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

clearExternal()

public TermsOfService.Builder clearExternal()

Whether this terms of service version is external. External terms of service versions can only be agreed through external processes and not directly by the merchant through UI or API.

bool external = 5;

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFileUri()

public TermsOfService.Builder clearFileUri()

URI for terms of service file that needs to be displayed to signing users.

optional string file_uri = 4;

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

clearKind()

public TermsOfService.Builder clearKind()

The Kind this terms of service version applies to.

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

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

clearName()

public TermsOfService.Builder clearName()

Identifier. The resource name of the terms of service version. Format: termsOfService/{version}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRegionCode()

public TermsOfService.Builder clearRegionCode()

Region code as defined by CLDR. This is either a country where the ToS applies specifically to that country or 001 when the same TermsOfService can be signed in any country. However note that when signing a ToS that applies globally we still expect that a specific country is provided (this should be merchant business country or program country of participation).

string region_code = 2;

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TermsOfService getDefaultInstanceForType()
Returns
Type Description
TermsOfService

getDescriptorForType()

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

getExternal()

public boolean getExternal()

Whether this terms of service version is external. External terms of service versions can only be agreed through external processes and not directly by the merchant through UI or API.

bool external = 5;

Returns
Type Description
boolean

The external.

getFileUri()

public String getFileUri()

URI for terms of service file that needs to be displayed to signing users.

optional string file_uri = 4;

Returns
Type Description
String

The fileUri.

getFileUriBytes()

public ByteString getFileUriBytes()

URI for terms of service file that needs to be displayed to signing users.

optional string file_uri = 4;

Returns
Type Description
ByteString

The bytes for fileUri.

getKind()

public TermsOfServiceKind getKind()

The Kind this terms of service version applies to.

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

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 = 3;

Returns
Type Description
int

The enum numeric value on the wire for kind.

getName()

public String getName()

Identifier. The resource name of the terms of service version. Format: termsOfService/{version}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the terms of service version. Format: termsOfService/{version}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getRegionCode()

public String getRegionCode()

Region code as defined by CLDR. This is either a country where the ToS applies specifically to that country or 001 when the same TermsOfService can be signed in any country. However note that when signing a ToS that applies globally we still expect that a specific country is provided (this should be merchant business country or program country of participation).

string region_code = 2;

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

Region code as defined by CLDR. This is either a country where the ToS applies specifically to that country or 001 when the same TermsOfService can be signed in any country. However note that when signing a ToS that applies globally we still expect that a specific country is provided (this should be merchant business country or program country of participation).

string region_code = 2;

Returns
Type Description
ByteString

The bytes for regionCode.

hasFileUri()

public boolean hasFileUri()

URI for terms of service file that needs to be displayed to signing users.

optional string file_uri = 4;

Returns
Type Description
boolean

Whether the fileUri field is set.

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 TermsOfService.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TermsOfService.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(TermsOfService other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExternal(boolean value)

public TermsOfService.Builder setExternal(boolean value)

Whether this terms of service version is external. External terms of service versions can only be agreed through external processes and not directly by the merchant through UI or API.

bool external = 5;

Parameter
Name Description
value boolean

The external to set.

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileUri(String value)

public TermsOfService.Builder setFileUri(String value)

URI for terms of service file that needs to be displayed to signing users.

optional string file_uri = 4;

Parameter
Name Description
value String

The fileUri to set.

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

setFileUriBytes(ByteString value)

public TermsOfService.Builder setFileUriBytes(ByteString value)

URI for terms of service file that needs to be displayed to signing users.

optional string file_uri = 4;

Parameter
Name Description
value ByteString

The bytes for fileUri to set.

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

setKind(TermsOfServiceKind value)

public TermsOfService.Builder setKind(TermsOfServiceKind value)

The Kind this terms of service version applies to.

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

Parameter
Name Description
value TermsOfServiceKind

The kind to set.

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

setKindValue(int value)

public TermsOfService.Builder setKindValue(int value)

The Kind this terms of service version applies to.

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

Parameter
Name Description
value int

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

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

setName(String value)

public TermsOfService.Builder setName(String value)

Identifier. The resource name of the terms of service version. Format: termsOfService/{version}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TermsOfService.Builder setNameBytes(ByteString value)

Identifier. The resource name of the terms of service version. Format: termsOfService/{version}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

setRegionCode(String value)

public TermsOfService.Builder setRegionCode(String value)

Region code as defined by CLDR. This is either a country where the ToS applies specifically to that country or 001 when the same TermsOfService can be signed in any country. However note that when signing a ToS that applies globally we still expect that a specific country is provided (this should be merchant business country or program country of participation).

string region_code = 2;

Parameter
Name Description
value String

The regionCode to set.

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

setRegionCodeBytes(ByteString value)

public TermsOfService.Builder setRegionCodeBytes(ByteString value)

Region code as defined by CLDR. This is either a country where the ToS applies specifically to that country or 001 when the same TermsOfService can be signed in any country. However note that when signing a ToS that applies globally we still expect that a specific country is provided (this should be merchant business country or program country of participation).

string region_code = 2;

Parameter
Name Description
value ByteString

The bytes for regionCode to set.

Returns
Type Description
TermsOfService.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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