Class Required.Builder (0.7.0)

public static final class Required.Builder extends GeneratedMessageV3.Builder<Required.Builder> implements RequiredOrBuilder

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

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

Implements

RequiredOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Required build()
Returns
Type Description
Required

buildPartial()

public Required buildPartial()
Returns
Type Description
Required

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTermsOfService()

public Required.Builder clearTermsOfService()

The termsOfService that need to be accepted.

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

Returns
Type Description
Required.Builder

This builder for chaining.

clearTosFileUri()

public Required.Builder clearTosFileUri()

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

This builder for chaining.

clone()

public Required.Builder clone()
Returns
Type Description
Required.Builder
Overrides

getDefaultInstanceForType()

public Required getDefaultInstanceForType()
Returns
Type Description
Required

getDescriptorForType()

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

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

mergeFrom(Message other)

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

mergeFrom(Required other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTermsOfService(String value)

public Required.Builder setTermsOfService(String value)

The termsOfService that need to be accepted.

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

Parameter
Name Description
value String

The termsOfService to set.

Returns
Type Description
Required.Builder

This builder for chaining.

setTermsOfServiceBytes(ByteString value)

public Required.Builder setTermsOfServiceBytes(ByteString value)

The termsOfService that need to be accepted.

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

Parameter
Name Description
value ByteString

The bytes for termsOfService to set.

Returns
Type Description
Required.Builder

This builder for chaining.

setTosFileUri(String value)

public Required.Builder setTosFileUri(String value)

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;

Parameter
Name Description
value String

The tosFileUri to set.

Returns
Type Description
Required.Builder

This builder for chaining.

setTosFileUriBytes(ByteString value)

public Required.Builder setTosFileUriBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for tosFileUri to set.

Returns
Type Description
Required.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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