Class CreateAndConfigureAccountRequest.AcceptTermsOfService (0.2.0)

public static final class CreateAndConfigureAccountRequest.AcceptTermsOfService extends GeneratedMessageV3 implements CreateAndConfigureAccountRequest.AcceptTermsOfServiceOrBuilder

Reference to a Terms of Service resource.

Protobuf type google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > CreateAndConfigureAccountRequest.AcceptTermsOfService

Static Fields

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 CreateAndConfigureAccountRequest.AcceptTermsOfService getDefaultInstance()
Returns
Type Description
CreateAndConfigureAccountRequest.AcceptTermsOfService

getDescriptor()

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

newBuilder()

public static CreateAndConfigureAccountRequest.AcceptTermsOfService.Builder newBuilder()
Returns
Type Description
CreateAndConfigureAccountRequest.AcceptTermsOfService.Builder

newBuilder(CreateAndConfigureAccountRequest.AcceptTermsOfService prototype)

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

parseDelimitedFrom(InputStream input)

public static CreateAndConfigureAccountRequest.AcceptTermsOfService parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateAndConfigureAccountRequest.AcceptTermsOfService
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static CreateAndConfigureAccountRequest.AcceptTermsOfService parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateAndConfigureAccountRequest.AcceptTermsOfService
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static CreateAndConfigureAccountRequest.AcceptTermsOfService parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateAndConfigureAccountRequest.AcceptTermsOfService
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static CreateAndConfigureAccountRequest.AcceptTermsOfService parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateAndConfigureAccountRequest.AcceptTermsOfService
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static CreateAndConfigureAccountRequest.AcceptTermsOfService parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateAndConfigureAccountRequest.AcceptTermsOfService
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<CreateAndConfigureAccountRequest.AcceptTermsOfService> parser()
Returns
Type Description
Parser<AcceptTermsOfService>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public CreateAndConfigureAccountRequest.AcceptTermsOfService getDefaultInstanceForType()
Returns
Type Description
CreateAndConfigureAccountRequest.AcceptTermsOfService

getName()

public String getName()

Required. The resource name of the terms of service version.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource name of the terms of service version.

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<CreateAndConfigureAccountRequest.AcceptTermsOfService> getParserForType()
Returns
Type Description
Parser<AcceptTermsOfService>
Overrides

getRegionCode()

public String getRegionCode()

Required. 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 = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

Required. 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 = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for regionCode.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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 CreateAndConfigureAccountRequest.AcceptTermsOfService.Builder newBuilderForType()
Returns
Type Description
CreateAndConfigureAccountRequest.AcceptTermsOfService.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public CreateAndConfigureAccountRequest.AcceptTermsOfService.Builder toBuilder()
Returns
Type Description
CreateAndConfigureAccountRequest.AcceptTermsOfService.Builder

writeTo(CodedOutputStream output)

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