Class ListEnrolledSolutionsResponse.Builder (2.50.0)

public static final class ListEnrolledSolutionsResponse.Builder extends GeneratedMessageV3.Builder<ListEnrolledSolutionsResponse.Builder> implements ListEnrolledSolutionsResponseOrBuilder

Response for ListEnrolledSolutions method.

Protobuf type google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse

Static Methods

getDescriptor()

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

Methods

addAllEnrolledSolutions(Iterable<? extends SolutionType> values)

public ListEnrolledSolutionsResponse.Builder addAllEnrolledSolutions(Iterable<? extends SolutionType> values)

Retail API solutions that the project has enrolled.

repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.retail.v2alpha.SolutionType>

The enrolledSolutions to add.

Returns
Type Description
ListEnrolledSolutionsResponse.Builder

This builder for chaining.

addAllEnrolledSolutionsValue(Iterable<Integer> values)

public ListEnrolledSolutionsResponse.Builder addAllEnrolledSolutionsValue(Iterable<Integer> values)

Retail API solutions that the project has enrolled.

repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for enrolledSolutions to add.

Returns
Type Description
ListEnrolledSolutionsResponse.Builder

This builder for chaining.

addEnrolledSolutions(SolutionType value)

public ListEnrolledSolutionsResponse.Builder addEnrolledSolutions(SolutionType value)

Retail API solutions that the project has enrolled.

repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;

Parameter
Name Description
value SolutionType

The enrolledSolutions to add.

Returns
Type Description
ListEnrolledSolutionsResponse.Builder

This builder for chaining.

addEnrolledSolutionsValue(int value)

public ListEnrolledSolutionsResponse.Builder addEnrolledSolutionsValue(int value)

Retail API solutions that the project has enrolled.

repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for enrolledSolutions to add.

Returns
Type Description
ListEnrolledSolutionsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListEnrolledSolutionsResponse build()
Returns
Type Description
ListEnrolledSolutionsResponse

buildPartial()

public ListEnrolledSolutionsResponse buildPartial()
Returns
Type Description
ListEnrolledSolutionsResponse

clear()

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

clearEnrolledSolutions()

public ListEnrolledSolutionsResponse.Builder clearEnrolledSolutions()

Retail API solutions that the project has enrolled.

repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;

Returns
Type Description
ListEnrolledSolutionsResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListEnrolledSolutionsResponse getDefaultInstanceForType()
Returns
Type Description
ListEnrolledSolutionsResponse

getDescriptorForType()

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

getEnrolledSolutions(int index)

public SolutionType getEnrolledSolutions(int index)

Retail API solutions that the project has enrolled.

repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
SolutionType

The enrolledSolutions at the given index.

getEnrolledSolutionsCount()

public int getEnrolledSolutionsCount()

Retail API solutions that the project has enrolled.

repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;

Returns
Type Description
int

The count of enrolledSolutions.

getEnrolledSolutionsList()

public List<SolutionType> getEnrolledSolutionsList()

Retail API solutions that the project has enrolled.

repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;

Returns
Type Description
List<SolutionType>

A list containing the enrolledSolutions.

getEnrolledSolutionsValue(int index)

public int getEnrolledSolutionsValue(int index)

Retail API solutions that the project has enrolled.

repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of enrolledSolutions at the given index.

getEnrolledSolutionsValueList()

public List<Integer> getEnrolledSolutionsValueList()

Retail API solutions that the project has enrolled.

repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for enrolledSolutions.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListEnrolledSolutionsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnrolledSolutions(int index, SolutionType value)

public ListEnrolledSolutionsResponse.Builder setEnrolledSolutions(int index, SolutionType value)

Retail API solutions that the project has enrolled.

repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;

Parameters
Name Description
index int

The index to set the value at.

value SolutionType

The enrolledSolutions to set.

Returns
Type Description
ListEnrolledSolutionsResponse.Builder

This builder for chaining.

setEnrolledSolutionsValue(int index, int value)

public ListEnrolledSolutionsResponse.Builder setEnrolledSolutionsValue(int index, int value)

Retail API solutions that the project has enrolled.

repeated .google.cloud.retail.v2alpha.SolutionType enrolled_solutions = 1;

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
ListEnrolledSolutionsResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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