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
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
Name | Description |
values | Iterable<? extends com.google.cloud.recommender.v1beta1.Recommendation>
|
Returns
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
Returns
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
Returns
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
Returns
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
Returns
addRecommendationsBuilder()
public Recommendation.Builder addRecommendationsBuilder()
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListRecommendationsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListRecommendationsResponse build()
Returns
buildPartial()
public ListRecommendationsResponse buildPartial()
Returns
clear()
public ListRecommendationsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListRecommendationsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ListRecommendationsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRecommendations()
public ListRecommendationsResponse.Builder clearRecommendations()
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;
Returns
clone()
public ListRecommendationsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListRecommendationsResponse getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Type | Description |
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
Type | Description |
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
Returns
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
Returns
getRecommendationsBuilderList()
public List<Recommendation.Builder> getRecommendationsBuilderList()
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;
Returns
getRecommendationsCount()
public int getRecommendationsCount()
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;
Returns
getRecommendationsList()
public List<Recommendation> getRecommendationsList()
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;
Returns
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
Returns
getRecommendationsOrBuilderList()
public List<? extends RecommendationOrBuilder> getRecommendationsOrBuilderList()
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1beta1.Recommendation recommendations = 1;
Returns
Type | Description |
List<? extends com.google.cloud.recommender.v1beta1.RecommendationOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListRecommendationsResponse other)
public ListRecommendationsResponse.Builder mergeFrom(ListRecommendationsResponse other)
Parameter
Returns
public ListRecommendationsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListRecommendationsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListRecommendationsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListRecommendationsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Name | Description |
value | String
The nextPageToken to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListRecommendationsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListRecommendationsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides