Class ListRecommendersResponse.Builder (2.37.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.recommender.v1beta1.RecommenderType>
Returns
TypeDescription
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
NameDescription
valueRecommenderType
Returns
TypeDescription
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
NameDescription
builderForValueRecommenderType.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRecommenderType
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRecommenderType.Builder
Returns
TypeDescription
ListRecommendersResponse.Builder

addRecommendersBuilder()

public RecommenderType.Builder addRecommendersBuilder()

The set of recommenders available

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RecommenderType.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListRecommendersResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListRecommendersResponse.Builder
Overrides

build()

public ListRecommendersResponse build()
Returns
TypeDescription
ListRecommendersResponse

buildPartial()

public ListRecommendersResponse buildPartial()
Returns
TypeDescription
ListRecommendersResponse

clear()

public ListRecommendersResponse.Builder clear()
Returns
TypeDescription
ListRecommendersResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListRecommendersResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListRecommendersResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListRecommendersResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListRecommendersResponse.Builder
Overrides

clearRecommenders()

public ListRecommendersResponse.Builder clearRecommenders()

The set of recommenders available

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

Returns
TypeDescription
ListRecommendersResponse.Builder

clone()

public ListRecommendersResponse.Builder clone()
Returns
TypeDescription
ListRecommendersResponse.Builder
Overrides

getDefaultInstanceForType()

public ListRecommendersResponse getDefaultInstanceForType()
Returns
TypeDescription
ListRecommendersResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RecommenderType

getRecommendersBuilder(int index)

public RecommenderType.Builder getRecommendersBuilder(int index)

The set of recommenders available

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RecommenderType.Builder

getRecommendersBuilderList()

public List<RecommenderType.Builder> getRecommendersBuilderList()

The set of recommenders available

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

Returns
TypeDescription
List<Builder>

getRecommendersCount()

public int getRecommendersCount()

The set of recommenders available

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

Returns
TypeDescription
int

getRecommendersList()

public List<RecommenderType> getRecommendersList()

The set of recommenders available

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

Returns
TypeDescription
List<RecommenderType>

getRecommendersOrBuilder(int index)

public RecommenderTypeOrBuilder getRecommendersOrBuilder(int index)

The set of recommenders available

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RecommenderTypeOrBuilder

getRecommendersOrBuilderList()

public List<? extends RecommenderTypeOrBuilder> getRecommendersOrBuilderList()

The set of recommenders available

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListRecommendersResponse other)

public ListRecommendersResponse.Builder mergeFrom(ListRecommendersResponse other)
Parameter
NameDescription
otherListRecommendersResponse
Returns
TypeDescription
ListRecommendersResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListRecommendersResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListRecommendersResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListRecommendersResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListRecommendersResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListRecommendersResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListRecommendersResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListRecommendersResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valueRecommenderType
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRecommenderType.Builder
Returns
TypeDescription
ListRecommendersResponse.Builder

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

public ListRecommendersResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListRecommendersResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListRecommendersResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListRecommendersResponse.Builder
Overrides