Class EnrollSolutionRequest.Builder (2.51.0)

public static final class EnrollSolutionRequest.Builder extends GeneratedMessageV3.Builder<EnrollSolutionRequest.Builder> implements EnrollSolutionRequestOrBuilder

Request for EnrollSolution method.

Protobuf type google.cloud.retail.v2alpha.EnrollSolutionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EnrollSolutionRequest build()
Returns
Type Description
EnrollSolutionRequest

buildPartial()

public EnrollSolutionRequest buildPartial()
Returns
Type Description
EnrollSolutionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public EnrollSolutionRequest.Builder clearProject()

Required. Full resource name of parent. Format: projects/{project_number_or_id}

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

Returns
Type Description
EnrollSolutionRequest.Builder

This builder for chaining.

clearSolution()

public EnrollSolutionRequest.Builder clearSolution()

Required. Solution to enroll.

.google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EnrollSolutionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public EnrollSolutionRequest getDefaultInstanceForType()
Returns
Type Description
EnrollSolutionRequest

getDescriptorForType()

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

getProject()

public String getProject()

Required. Full resource name of parent. Format: projects/{project_number_or_id}

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 parent. Format: projects/{project_number_or_id}

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

Returns
Type Description
ByteString

The bytes for project.

getSolution()

public SolutionType getSolution()

Required. Solution to enroll.

.google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SolutionType

The solution.

getSolutionValue()

public int getSolutionValue()

Required. Solution to enroll.

.google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for solution.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EnrollSolutionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

public EnrollSolutionRequest.Builder setProject(String value)

Required. Full resource name of parent. Format: projects/{project_number_or_id}

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

Parameter
Name Description
value String

The project to set.

Returns
Type Description
EnrollSolutionRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public EnrollSolutionRequest.Builder setProjectBytes(ByteString value)

Required. Full resource name of parent. Format: projects/{project_number_or_id}

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

This builder for chaining.

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

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

setSolution(SolutionType value)

public EnrollSolutionRequest.Builder setSolution(SolutionType value)

Required. Solution to enroll.

.google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SolutionType

The solution to set.

Returns
Type Description
EnrollSolutionRequest.Builder

This builder for chaining.

setSolutionValue(int value)

public EnrollSolutionRequest.Builder setSolutionValue(int value)

Required. Solution to enroll.

.google.cloud.retail.v2alpha.SolutionType solution = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for solution to set.

Returns
Type Description
EnrollSolutionRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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