Class Required (0.9.0)

public final class Required extends GeneratedMessageV3 implements RequiredOrBuilder

Describes the terms of service which are required to be accepted.

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

Implements

RequiredOrBuilder

Static Fields

TERMS_OF_SERVICE_FIELD_NUMBER

public static final int TERMS_OF_SERVICE_FIELD_NUMBER
Field Value
Type Description
int

TOS_FILE_URI_FIELD_NUMBER

public static final int TOS_FILE_URI_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Required getDefaultInstance()
Returns
Type Description
Required

getDescriptor()

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

newBuilder()

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

newBuilder(Required prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Required getDefaultInstanceForType()
Returns
Type Description
Required

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTermsOfService()

public String getTermsOfService()

The termsOfService that need to be accepted.

string terms_of_service = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The termsOfService.

getTermsOfServiceBytes()

public ByteString getTermsOfServiceBytes()

The termsOfService that need to be accepted.

string terms_of_service = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for termsOfService.

getTosFileUri()

public String getTosFileUri()

Full URL to the terms of service file. This field is the same as TermsOfService.file_uri, it is added here for convenience only.

string tos_file_uri = 2;

Returns
Type Description
String

The tosFileUri.

getTosFileUriBytes()

public ByteString getTosFileUriBytes()

Full URL to the terms of service file. This field is the same as TermsOfService.file_uri, it is added here for convenience only.

string tos_file_uri = 2;

Returns
Type Description
ByteString

The bytes for tosFileUri.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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