Class TermsOfService (0.1.0)

public final class TermsOfService extends GeneratedMessageV3 implements TermsOfServiceOrBuilder

A TermsOfService.

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

Static Fields

EXTERNAL_FIELD_NUMBER

public static final int EXTERNAL_FIELD_NUMBER
Field Value
Type Description
int

FILE_URI_FIELD_NUMBER

public static final int FILE_URI_FIELD_NUMBER
Field Value
Type Description
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

REGION_CODE_FIELD_NUMBER

public static final int REGION_CODE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TermsOfService getDefaultInstance()
Returns
Type Description
TermsOfService

getDescriptor()

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

newBuilder()

public static TermsOfService.Builder newBuilder()
Returns
Type Description
TermsOfService.Builder

newBuilder(TermsOfService prototype)

public static TermsOfService.Builder newBuilder(TermsOfService prototype)
Parameter
Name Description
prototype TermsOfService
Returns
Type Description
TermsOfService.Builder

parseDelimitedFrom(InputStream input)

public static TermsOfService parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TermsOfService
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TermsOfService parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TermsOfService
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TermsOfService parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TermsOfService
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TermsOfService parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TermsOfService
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TermsOfService parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TermsOfService
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TermsOfService parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TermsOfService
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TermsOfService parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TermsOfService
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TermsOfService parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TermsOfService
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TermsOfService parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TermsOfService
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TermsOfService parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TermsOfService
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TermsOfService parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TermsOfService
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TermsOfService parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TermsOfService
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TermsOfService> parser()
Returns
Type Description
Parser<TermsOfService>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public TermsOfService getDefaultInstanceForType()
Returns
Type Description
TermsOfService

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.

getParserForType()

public Parser<TermsOfService> getParserForType()
Returns
Type Description
Parser<TermsOfService>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TermsOfService.Builder newBuilderForType()
Returns
Type Description
TermsOfService.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TermsOfService.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TermsOfService.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TermsOfService.Builder toBuilder()
Returns
Type Description
TermsOfService.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException