Class ListRecommendationsResponse.Builder (2.5.0)

public static final class ListRecommendationsResponse.Builder extends GeneratedMessageV3.Builder<ListRecommendationsResponse.Builder> implements ListRecommendationsResponseOrBuilder

Response to the ListRecommendations method.

Protobuf type google.cloud.recommender.v1beta1.ListRecommendationsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllRecommendations(Iterable<? extends Recommendation> values)

public ListRecommendationsResponse.Builder addAllRecommendations(Iterable<? extends Recommendation> values)

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.recommender.v1beta1.Recommendation>
Returns
TypeDescription
ListRecommendationsResponse.Builder

addRecommendations(Recommendation value)

public ListRecommendationsResponse.Builder addRecommendations(Recommendation value)

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Parameter
NameDescription
valueRecommendation
Returns
TypeDescription
ListRecommendationsResponse.Builder

addRecommendations(Recommendation.Builder builderForValue)

public ListRecommendationsResponse.Builder addRecommendations(Recommendation.Builder builderForValue)

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Parameter
NameDescription
builderForValueRecommendation.Builder
Returns
TypeDescription
ListRecommendationsResponse.Builder

addRecommendations(int index, Recommendation value)

public ListRecommendationsResponse.Builder addRecommendations(int index, Recommendation value)

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Parameters
NameDescription
indexint
valueRecommendation
Returns
TypeDescription
ListRecommendationsResponse.Builder

addRecommendations(int index, Recommendation.Builder builderForValue)

public ListRecommendationsResponse.Builder addRecommendations(int index, Recommendation.Builder builderForValue)

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Parameters
NameDescription
indexint
builderForValueRecommendation.Builder
Returns
TypeDescription
ListRecommendationsResponse.Builder

addRecommendationsBuilder()

public Recommendation.Builder addRecommendationsBuilder()

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Returns
TypeDescription
Recommendation.Builder

addRecommendationsBuilder(int index)

public Recommendation.Builder addRecommendationsBuilder(int index)

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Recommendation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListRecommendationsResponse build()
Returns
TypeDescription
ListRecommendationsResponse

buildPartial()

public ListRecommendationsResponse buildPartial()
Returns
TypeDescription
ListRecommendationsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListRecommendationsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListRecommendationsResponse.Builder
Overrides

clearNextPageToken()

public ListRecommendationsResponse.Builder clearNextPageToken()

A token that can be used to request the next page of results. This field is empty if there are no additional results.

string next_page_token = 2;

Returns
TypeDescription
ListRecommendationsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRecommendations()

public ListRecommendationsResponse.Builder clearRecommendations()

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Returns
TypeDescription
ListRecommendationsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListRecommendationsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListRecommendationsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token that can be used to request the next page of results. This field is empty if there are no additional results.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token that can be used to request the next page of results. This field is empty if there are no additional results.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getRecommendations(int index)

public Recommendation getRecommendations(int index)

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Recommendation

getRecommendationsBuilder(int index)

public Recommendation.Builder getRecommendationsBuilder(int index)

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Recommendation.Builder

getRecommendationsBuilderList()

public List<Recommendation.Builder> getRecommendationsBuilderList()

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Returns
TypeDescription
List<Builder>

getRecommendationsCount()

public int getRecommendationsCount()

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Returns
TypeDescription
int

getRecommendationsList()

public List<Recommendation> getRecommendationsList()

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Returns
TypeDescription
List<Recommendation>

getRecommendationsOrBuilder(int index)

public RecommendationOrBuilder getRecommendationsOrBuilder(int index)

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
RecommendationOrBuilder

getRecommendationsOrBuilderList()

public List<? extends RecommendationOrBuilder> getRecommendationsOrBuilderList()

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListRecommendationsResponse other)

public ListRecommendationsResponse.Builder mergeFrom(ListRecommendationsResponse other)
Parameter
NameDescription
otherListRecommendationsResponse
Returns
TypeDescription
ListRecommendationsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListRecommendationsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListRecommendationsResponse.Builder
Overrides

removeRecommendations(int index)

public ListRecommendationsResponse.Builder removeRecommendations(int index)

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListRecommendationsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListRecommendationsResponse.Builder setNextPageToken(String value)

A token that can be used to request the next page of results. This field is empty if there are no additional results.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListRecommendationsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListRecommendationsResponse.Builder setNextPageTokenBytes(ByteString value)

A token that can be used to request the next page of results. This field is empty if there are no additional results.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListRecommendationsResponse.Builder

This builder for chaining.

setRecommendations(int index, Recommendation value)

public ListRecommendationsResponse.Builder setRecommendations(int index, Recommendation value)

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Parameters
NameDescription
indexint
valueRecommendation
Returns
TypeDescription
ListRecommendationsResponse.Builder

setRecommendations(int index, Recommendation.Builder builderForValue)

public ListRecommendationsResponse.Builder setRecommendations(int index, Recommendation.Builder builderForValue)

The set of recommendations for the parent resource.

repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;

Parameters
NameDescription
indexint
builderForValueRecommendation.Builder
Returns
TypeDescription
ListRecommendationsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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