Class ListRecommendersResponse.Builder (2.54.0)

public static final class ListRecommendersResponse.Builder extends GeneratedMessageV3.Builder<ListRecommendersResponse.Builder> implements ListRecommendersResponseOrBuilder

Response for the ListRecommender method.

Protobuf type google.cloud.recommender.v1beta1.ListRecommendersResponse

Static Methods

getDescriptor()

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

Methods

addAllRecommenders(Iterable<? extends RecommenderType> values)

public ListRecommendersResponse.Builder addAllRecommenders(Iterable<? extends RecommenderType> values)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.recommender.v1beta1.RecommenderType>
Returns
Type Description
ListRecommendersResponse.Builder

addRecommenders(RecommenderType value)

public ListRecommendersResponse.Builder addRecommenders(RecommenderType value)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Parameter
Name Description
value RecommenderType
Returns
Type Description
ListRecommendersResponse.Builder

addRecommenders(RecommenderType.Builder builderForValue)

public ListRecommendersResponse.Builder addRecommenders(RecommenderType.Builder builderForValue)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Parameter
Name Description
builderForValue RecommenderType.Builder
Returns
Type Description
ListRecommendersResponse.Builder

addRecommenders(int index, RecommenderType value)

public ListRecommendersResponse.Builder addRecommenders(int index, RecommenderType value)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Parameters
Name Description
index int
value RecommenderType
Returns
Type Description
ListRecommendersResponse.Builder

addRecommenders(int index, RecommenderType.Builder builderForValue)

public ListRecommendersResponse.Builder addRecommenders(int index, RecommenderType.Builder builderForValue)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Parameters
Name Description
index int
builderForValue RecommenderType.Builder
Returns
Type Description
ListRecommendersResponse.Builder

addRecommendersBuilder()

public RecommenderType.Builder addRecommendersBuilder()

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Returns
Type Description
RecommenderType.Builder

addRecommendersBuilder(int index)

public RecommenderType.Builder addRecommendersBuilder(int index)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Parameter
Name Description
index int
Returns
Type Description
RecommenderType.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListRecommendersResponse build()
Returns
Type Description
ListRecommendersResponse

buildPartial()

public ListRecommendersResponse buildPartial()
Returns
Type Description
ListRecommendersResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListRecommendersResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListRecommendersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRecommenders()

public ListRecommendersResponse.Builder clearRecommenders()

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Returns
Type Description
ListRecommendersResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListRecommendersResponse getDefaultInstanceForType()
Returns
Type Description
ListRecommendersResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getRecommenders(int index)

public RecommenderType getRecommenders(int index)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Parameter
Name Description
index int
Returns
Type Description
RecommenderType

getRecommendersBuilder(int index)

public RecommenderType.Builder getRecommendersBuilder(int index)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Parameter
Name Description
index int
Returns
Type Description
RecommenderType.Builder

getRecommendersBuilderList()

public List<RecommenderType.Builder> getRecommendersBuilderList()

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Returns
Type Description
List<Builder>

getRecommendersCount()

public int getRecommendersCount()

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Returns
Type Description
int

getRecommendersList()

public List<RecommenderType> getRecommendersList()

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Returns
Type Description
List<RecommenderType>

getRecommendersOrBuilder(int index)

public RecommenderTypeOrBuilder getRecommendersOrBuilder(int index)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Parameter
Name Description
index int
Returns
Type Description
RecommenderTypeOrBuilder

getRecommendersOrBuilderList()

public List<? extends RecommenderTypeOrBuilder> getRecommendersOrBuilderList()

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Returns
Type Description
List<? extends com.google.cloud.recommender.v1beta1.RecommenderTypeOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListRecommendersResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRecommenders(int index)

public ListRecommendersResponse.Builder removeRecommenders(int index)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Parameter
Name Description
index int
Returns
Type Description
ListRecommendersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListRecommendersResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListRecommendersResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListRecommendersResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListRecommendersResponse.Builder

This builder for chaining.

setRecommenders(int index, RecommenderType value)

public ListRecommendersResponse.Builder setRecommenders(int index, RecommenderType value)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Parameters
Name Description
index int
value RecommenderType
Returns
Type Description
ListRecommendersResponse.Builder

setRecommenders(int index, RecommenderType.Builder builderForValue)

public ListRecommendersResponse.Builder setRecommenders(int index, RecommenderType.Builder builderForValue)

The set of recommenders available

repeated .google.cloud.recommender.v1beta1.RecommenderType recommenders = 1;

Parameters
Name Description
index int
builderForValue RecommenderType.Builder
Returns
Type Description
ListRecommendersResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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