Class Accepted.Builder (0.2.0)

public static final class Accepted.Builder extends GeneratedMessageV3.Builder<Accepted.Builder> implements AcceptedOrBuilder

Describes the accepted terms of service.

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

Implements

AcceptedOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Accepted build()
Returns
Type Description
Accepted

buildPartial()

public Accepted buildPartial()
Returns
Type Description
Accepted

clear()

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

clearAcceptedBy()

public Accepted.Builder clearAcceptedBy()

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
Accepted.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTermsOfService()

public Accepted.Builder clearTermsOfService()

The accepted termsOfService.

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

Returns
Type Description
Accepted.Builder

This builder for chaining.

clearValidUntil()

public Accepted.Builder clearValidUntil()

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
Accepted.Builder

clone()

public Accepted.Builder clone()
Returns
Type Description
Accepted.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

getValidUntilBuilder()

public Date.Builder getValidUntilBuilder()

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.Builder

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.

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

mergeFrom(Message other)

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

mergeFrom(Accepted other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeValidUntil(Date value)

public Accepted.Builder mergeValidUntil(Date value)

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;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
Accepted.Builder

setAcceptedBy(String value)

public Accepted.Builder setAcceptedBy(String value)

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) = { ... }

Parameter
Name Description
value String

The acceptedBy to set.

Returns
Type Description
Accepted.Builder

This builder for chaining.

setAcceptedByBytes(ByteString value)

public Accepted.Builder setAcceptedByBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for acceptedBy to set.

Returns
Type Description
Accepted.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTermsOfService(String value)

public Accepted.Builder setTermsOfService(String value)

The accepted termsOfService.

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

Parameter
Name Description
value String

The termsOfService to set.

Returns
Type Description
Accepted.Builder

This builder for chaining.

setTermsOfServiceBytes(ByteString value)

public Accepted.Builder setTermsOfServiceBytes(ByteString value)

The accepted termsOfService.

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

Parameter
Name Description
value ByteString

The bytes for termsOfService to set.

Returns
Type Description
Accepted.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidUntil(Date value)

public Accepted.Builder setValidUntil(Date value)

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;

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
Accepted.Builder

setValidUntil(Date.Builder builderForValue)

public Accepted.Builder setValidUntil(Date.Builder builderForValue)

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;

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
Accepted.Builder