Class Accepted (0.9.0)

public final class Accepted extends GeneratedMessageV3 implements AcceptedOrBuilder

Describes the accepted terms of service.

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

Implements

AcceptedOrBuilder

Static Fields

ACCEPTED_BY_FIELD_NUMBER

public static final int ACCEPTED_BY_FIELD_NUMBER
Field Value
Type Description
int

TERMS_OF_SERVICE_FIELD_NUMBER

public static final int TERMS_OF_SERVICE_FIELD_NUMBER
Field Value
Type Description
int

VALID_UNTIL_FIELD_NUMBER

public static final int VALID_UNTIL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Accepted getDefaultInstance()
Returns
Type Description
Accepted

getDescriptor()

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

newBuilder()

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

newBuilder(Accepted prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAcceptedBy()

public String getAcceptedBy()

The account where the acceptance was recorded. This can be the account itself or, in the case of subaccounts, the MCA account.

string accepted_by = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The acceptedBy.

getAcceptedByBytes()

public ByteString getAcceptedByBytes()

The account where the acceptance was recorded. This can be the account itself or, in the case of subaccounts, the MCA account.

string accepted_by = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for acceptedBy.

getDefaultInstanceForType()

public Accepted getDefaultInstanceForType()
Returns
Type Description
Accepted

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTermsOfService()

public String getTermsOfService()

The accepted termsOfService.

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

Returns
Type Description
String

The termsOfService.

getTermsOfServiceBytes()

public ByteString getTermsOfServiceBytes()

The accepted termsOfService.

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

Returns
Type Description
ByteString

The bytes for termsOfService.

getValidUntil()

public Date getValidUntil()

When set, it states that the accepted TermsOfService is only valid until the end of this date (in UTC). A new one must be accepted before then. The information of the required TermsOfService is found in the Required message.

optional .google.type.Date valid_until = 3;

Returns
Type Description
com.google.type.Date

The validUntil.

getValidUntilOrBuilder()

public DateOrBuilder getValidUntilOrBuilder()

When set, it states that the accepted TermsOfService is only valid until the end of this date (in UTC). A new one must be accepted before then. The information of the required TermsOfService is found in the Required message.

optional .google.type.Date valid_until = 3;

Returns
Type Description
com.google.type.DateOrBuilder

hasValidUntil()

public boolean hasValidUntil()

When set, it states that the accepted TermsOfService is only valid until the end of this date (in UTC). A new one must be accepted before then. The information of the required TermsOfService is found in the Required message.

optional .google.type.Date valid_until = 3;

Returns
Type Description
boolean

Whether the validUntil 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 Accepted.Builder newBuilderForType()
Returns
Type Description
Accepted.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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