Class Accepted.Builder (1.11.0)

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

Describes the accepted terms of service.

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

Implements

AcceptedOrBuilder

Static Methods

getDescriptor()

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

Methods

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()

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

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

Returns
Type Description
Accepted.Builder

This builder for chaining.

clearTermsOfService()

public Accepted.Builder clearTermsOfService()

Required. The accepted termsOfService.

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

Returns
Type Description
Accepted.Builder

This builder for chaining.

clearValidUntil()

public Accepted.Builder clearValidUntil()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Accepted.Builder

getAcceptedBy()

public String getAcceptedBy()

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

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

Returns
Type Description
String

The acceptedBy.

getAcceptedByBytes()

public ByteString getAcceptedByBytes()

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

string accepted_by = 2 [(.google.api.field_behavior) = REQUIRED, (.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()

Required. The accepted termsOfService.

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

Returns
Type Description
String

The termsOfService.

getTermsOfServiceBytes()

public ByteString getTermsOfServiceBytes()

Required. The accepted termsOfService.

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

Returns
Type Description
ByteString

The bytes for termsOfService.

getValidUntil()

public Date getValidUntil()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Date

The validUntil.

getValidUntilBuilder()

public Date.Builder getValidUntilBuilder()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.Date.Builder

getValidUntilOrBuilder()

public DateOrBuilder getValidUntilOrBuilder()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.DateOrBuilder

hasValidUntil()

public boolean hasValidUntil()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the validUntil field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.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

mergeValidUntil(Date value)

public Accepted.Builder mergeValidUntil(Date value)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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

setAcceptedBy(String value)

public Accepted.Builder setAcceptedBy(String value)

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

string accepted_by = 2 [(.google.api.field_behavior) = REQUIRED, (.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)

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

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

Parameter
Name Description
value ByteString

The bytes for acceptedBy to set.

Returns
Type Description
Accepted.Builder

This builder for chaining.

setTermsOfService(String value)

public Accepted.Builder setTermsOfService(String value)

Required. The accepted termsOfService.

string terms_of_service = 1 [(.google.api.field_behavior) = REQUIRED, (.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)

Required. The accepted termsOfService.

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

Parameter
Name Description
value ByteString

The bytes for termsOfService to set.

Returns
Type Description
Accepted.Builder

This builder for chaining.

setValidUntil(Date value)

public Accepted.Builder setValidUntil(Date value)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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

setValidUntil(Date.Builder builderForValue)

public Accepted.Builder setValidUntil(Date.Builder builderForValue)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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