public static final class ListRecommendationsResponse.Builder extends GeneratedMessageV3.Builder<ListRecommendationsResponse.Builder> implements ListRecommendationsResponseOrBuilder
Response to the ListRecommendations
method.
Protobuf type google.cloud.recommender.v1.ListRecommendationsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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.v1.Recommendation recommendations = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.recommender.v1.Recommendation>
|
addRecommendations(Recommendation value)
public ListRecommendationsResponse.Builder addRecommendations(Recommendation value)
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1.Recommendation recommendations = 1;
addRecommendations(Recommendation.Builder builderForValue)
public ListRecommendationsResponse.Builder addRecommendations(Recommendation.Builder builderForValue)
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1.Recommendation recommendations = 1;
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.v1.Recommendation recommendations = 1;
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.v1.Recommendation recommendations = 1;
addRecommendationsBuilder()
public Recommendation.Builder addRecommendationsBuilder()
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1.Recommendation recommendations = 1;
addRecommendationsBuilder(int index)
public Recommendation.Builder addRecommendationsBuilder(int index)
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1.Recommendation recommendations = 1;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListRecommendationsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ListRecommendationsResponse build()
buildPartial()
public ListRecommendationsResponse buildPartial()
clear()
public ListRecommendationsResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListRecommendationsResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public ListRecommendationsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRecommendations()
public ListRecommendationsResponse.Builder clearRecommendations()
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1.Recommendation recommendations = 1;
clone()
public ListRecommendationsResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public ListRecommendationsResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.v1.Recommendation recommendations = 1;
Parameter |
---|
Name | Description |
index | int
|
getRecommendationsBuilder(int index)
public Recommendation.Builder getRecommendationsBuilder(int index)
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1.Recommendation recommendations = 1;
Parameter |
---|
Name | Description |
index | int
|
getRecommendationsBuilderList()
public List<Recommendation.Builder> getRecommendationsBuilderList()
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1.Recommendation recommendations = 1;
getRecommendationsCount()
public int getRecommendationsCount()
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1.Recommendation recommendations = 1;
Returns |
---|
Type | Description |
int | |
getRecommendationsList()
public List<Recommendation> getRecommendationsList()
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1.Recommendation recommendations = 1;
getRecommendationsOrBuilder(int index)
public RecommendationOrBuilder getRecommendationsOrBuilder(int index)
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1.Recommendation recommendations = 1;
Parameter |
---|
Name | Description |
index | int
|
getRecommendationsOrBuilderList()
public List<? extends RecommendationOrBuilder> getRecommendationsOrBuilderList()
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1.Recommendation recommendations = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.recommender.v1.RecommendationOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ListRecommendationsResponse other)
public ListRecommendationsResponse.Builder mergeFrom(ListRecommendationsResponse other)
public ListRecommendationsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListRecommendationsResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListRecommendationsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeRecommendations(int index)
public ListRecommendationsResponse.Builder removeRecommendations(int index)
The set of recommendations for the parent
resource.
repeated .google.cloud.recommender.v1.Recommendation recommendations = 1;
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public ListRecommendationsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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.v1.Recommendation recommendations = 1;
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.v1.Recommendation recommendations = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListRecommendationsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListRecommendationsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides