Class AcceptTermsRequest.Builder (2.50.0)

public static final class AcceptTermsRequest.Builder extends GeneratedMessageV3.Builder<AcceptTermsRequest.Builder> implements AcceptTermsRequestOrBuilder

Request for AcceptTerms method.

Protobuf type google.cloud.retail.v2alpha.AcceptTermsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AcceptTermsRequest build()
Returns
Type Description
AcceptTermsRequest

buildPartial()

public AcceptTermsRequest buildPartial()
Returns
Type Description
AcceptTermsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public AcceptTermsRequest.Builder clearProject()

Required. Full resource name of the project. Format: projects/{project_number_or_id}/retailProject

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

Returns
Type Description
AcceptTermsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AcceptTermsRequest getDefaultInstanceForType()
Returns
Type Description
AcceptTermsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getProject()

public String getProject()

Required. Full resource name of the project. Format: projects/{project_number_or_id}/retailProject

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

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Required. Full resource name of the project. Format: projects/{project_number_or_id}/retailProject

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

Returns
Type Description
ByteString

The bytes for project.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AcceptTermsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AcceptTermsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AcceptTermsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

public AcceptTermsRequest.Builder setProject(String value)

Required. Full resource name of the project. Format: projects/{project_number_or_id}/retailProject

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

Parameter
Name Description
value String

The project to set.

Returns
Type Description
AcceptTermsRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public AcceptTermsRequest.Builder setProjectBytes(ByteString value)

Required. Full resource name of the project. Format: projects/{project_number_or_id}/retailProject

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

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
AcceptTermsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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