Class EnrollSolutionResponse.Builder (2.48.0)

public static final class EnrollSolutionResponse.Builder extends GeneratedMessageV3.Builder<EnrollSolutionResponse.Builder> implements EnrollSolutionResponseOrBuilder

Response for EnrollSolution method.

Protobuf type google.cloud.retail.v2alpha.EnrollSolutionResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EnrollSolutionResponse build()
Returns
Type Description
EnrollSolutionResponse

buildPartial()

public EnrollSolutionResponse buildPartial()
Returns
Type Description
EnrollSolutionResponse

clear()

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

clearEnrolledSolution()

public EnrollSolutionResponse.Builder clearEnrolledSolution()

Retail API solution that the project has enrolled.

.google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1;

Returns
Type Description
EnrollSolutionResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public EnrollSolutionResponse getDefaultInstanceForType()
Returns
Type Description
EnrollSolutionResponse

getDescriptorForType()

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

getEnrolledSolution()

public SolutionType getEnrolledSolution()

Retail API solution that the project has enrolled.

.google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1;

Returns
Type Description
SolutionType

The enrolledSolution.

getEnrolledSolutionValue()

public int getEnrolledSolutionValue()

Retail API solution that the project has enrolled.

.google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1;

Returns
Type Description
int

The enum numeric value on the wire for enrolledSolution.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EnrollSolutionResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnrolledSolution(SolutionType value)

public EnrollSolutionResponse.Builder setEnrolledSolution(SolutionType value)

Retail API solution that the project has enrolled.

.google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1;

Parameter
Name Description
value SolutionType

The enrolledSolution to set.

Returns
Type Description
EnrollSolutionResponse.Builder

This builder for chaining.

setEnrolledSolutionValue(int value)

public EnrollSolutionResponse.Builder setEnrolledSolutionValue(int value)

Retail API solution that the project has enrolled.

.google.cloud.retail.v2alpha.SolutionType enrolled_solution = 1;

Parameter
Name Description
value int

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

Returns
Type Description
EnrollSolutionResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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