- 0.60.0 (latest)
- 0.59.0
- 0.58.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.4
- 0.8.10
public static final class PredictResponse.Builder extends GeneratedMessageV3.Builder<PredictResponse.Builder> implements PredictResponseOrBuilder
Response message for predict method.
Protobuf type google.cloud.recommendationengine.v1beta1.PredictResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PredictResponse.BuilderImplements
PredictResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllItemsMissingInCatalog(Iterable<String> values)
public PredictResponse.Builder addAllItemsMissingInCatalog(Iterable<String> values)
IDs of items in the request that were missing from the catalog.
repeated string items_missing_in_catalog = 3;
Name | Description |
values | Iterable<String> The itemsMissingInCatalog to add. |
Type | Description |
PredictResponse.Builder | This builder for chaining. |
addAllResults(Iterable<? extends PredictResponse.PredictionResult> values)
public PredictResponse.Builder addAllResults(Iterable<? extends PredictResponse.PredictionResult> values)
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Name | Description |
values | Iterable<? extends com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult> |
Type | Description |
PredictResponse.Builder |
addItemsMissingInCatalog(String value)
public PredictResponse.Builder addItemsMissingInCatalog(String value)
IDs of items in the request that were missing from the catalog.
repeated string items_missing_in_catalog = 3;
Name | Description |
value | String The itemsMissingInCatalog to add. |
Type | Description |
PredictResponse.Builder | This builder for chaining. |
addItemsMissingInCatalogBytes(ByteString value)
public PredictResponse.Builder addItemsMissingInCatalogBytes(ByteString value)
IDs of items in the request that were missing from the catalog.
repeated string items_missing_in_catalog = 3;
Name | Description |
value | ByteString The bytes of the itemsMissingInCatalog to add. |
Type | Description |
PredictResponse.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PredictResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PredictResponse.Builder |
addResults(PredictResponse.PredictionResult value)
public PredictResponse.Builder addResults(PredictResponse.PredictionResult value)
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Name | Description |
value | PredictResponse.PredictionResult |
Type | Description |
PredictResponse.Builder |
addResults(PredictResponse.PredictionResult.Builder builderForValue)
public PredictResponse.Builder addResults(PredictResponse.PredictionResult.Builder builderForValue)
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Name | Description |
builderForValue | PredictResponse.PredictionResult.Builder |
Type | Description |
PredictResponse.Builder |
addResults(int index, PredictResponse.PredictionResult value)
public PredictResponse.Builder addResults(int index, PredictResponse.PredictionResult value)
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Name | Description |
index | int |
value | PredictResponse.PredictionResult |
Type | Description |
PredictResponse.Builder |
addResults(int index, PredictResponse.PredictionResult.Builder builderForValue)
public PredictResponse.Builder addResults(int index, PredictResponse.PredictionResult.Builder builderForValue)
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Name | Description |
index | int |
builderForValue | PredictResponse.PredictionResult.Builder |
Type | Description |
PredictResponse.Builder |
addResultsBuilder()
public PredictResponse.PredictionResult.Builder addResultsBuilder()
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Type | Description |
PredictResponse.PredictionResult.Builder |
addResultsBuilder(int index)
public PredictResponse.PredictionResult.Builder addResultsBuilder(int index)
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Name | Description |
index | int |
Type | Description |
PredictResponse.PredictionResult.Builder |
build()
public PredictResponse build()
Type | Description |
PredictResponse |
buildPartial()
public PredictResponse buildPartial()
Type | Description |
PredictResponse |
clear()
public PredictResponse.Builder clear()
Type | Description |
PredictResponse.Builder |
clearDryRun()
public PredictResponse.Builder clearDryRun()
True if the dryRun property was set in the request.
bool dry_run = 4;
Type | Description |
PredictResponse.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public PredictResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
PredictResponse.Builder |
clearItemsMissingInCatalog()
public PredictResponse.Builder clearItemsMissingInCatalog()
IDs of items in the request that were missing from the catalog.
repeated string items_missing_in_catalog = 3;
Type | Description |
PredictResponse.Builder | This builder for chaining. |
clearMetadata()
public PredictResponse.Builder clearMetadata()
Type | Description |
PredictResponse.Builder |
clearNextPageToken()
public PredictResponse.Builder clearNextPageToken()
If empty, the list is complete. If nonempty, the token to pass to the next request's PredictRequest.page_token.
string next_page_token = 6;
Type | Description |
PredictResponse.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PredictResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
PredictResponse.Builder |
clearRecommendationToken()
public PredictResponse.Builder clearRecommendationToken()
A unique recommendation token. This should be included in the user event logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string recommendation_token = 2;
Type | Description |
PredictResponse.Builder | This builder for chaining. |
clearResults()
public PredictResponse.Builder clearResults()
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Type | Description |
PredictResponse.Builder |
clone()
public PredictResponse.Builder clone()
Type | Description |
PredictResponse.Builder |
containsMetadata(String key)
public boolean containsMetadata(String key)
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5;
Name | Description |
key | String |
Type | Description |
boolean |
getDefaultInstanceForType()
public PredictResponse getDefaultInstanceForType()
Type | Description |
PredictResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDryRun()
public boolean getDryRun()
True if the dryRun property was set in the request.
bool dry_run = 4;
Type | Description |
boolean | The dryRun. |
getItemsMissingInCatalog(int index)
public String getItemsMissingInCatalog(int index)
IDs of items in the request that were missing from the catalog.
repeated string items_missing_in_catalog = 3;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The itemsMissingInCatalog at the given index. |
getItemsMissingInCatalogBytes(int index)
public ByteString getItemsMissingInCatalogBytes(int index)
IDs of items in the request that were missing from the catalog.
repeated string items_missing_in_catalog = 3;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the itemsMissingInCatalog at the given index. |
getItemsMissingInCatalogCount()
public int getItemsMissingInCatalogCount()
IDs of items in the request that were missing from the catalog.
repeated string items_missing_in_catalog = 3;
Type | Description |
int | The count of itemsMissingInCatalog. |
getItemsMissingInCatalogList()
public ProtocolStringList getItemsMissingInCatalogList()
IDs of items in the request that were missing from the catalog.
repeated string items_missing_in_catalog = 3;
Type | Description |
ProtocolStringList | A list containing the itemsMissingInCatalog. |
getMetadata()
public Map<String,Value> getMetadata()
Use #getMetadataMap() instead.
Type | Description |
Map<String,Value> |
getMetadataCount()
public int getMetadataCount()
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5;
Type | Description |
int |
getMetadataMap()
public Map<String,Value> getMetadataMap()
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5;
Type | Description |
Map<String,Value> |
getMetadataOrDefault(String key, Value defaultValue)
public Value getMetadataOrDefault(String key, Value defaultValue)
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5;
Name | Description |
key | String |
defaultValue | Value |
Type | Description |
Value |
getMetadataOrThrow(String key)
public Value getMetadataOrThrow(String key)
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5;
Name | Description |
key | String |
Type | Description |
Value |
getMutableMetadata()
public Map<String,Value> getMutableMetadata()
Use alternate mutation accessors instead.
Type | Description |
Map<String,Value> |
getNextPageToken()
public String getNextPageToken()
If empty, the list is complete. If nonempty, the token to pass to the next request's PredictRequest.page_token.
string next_page_token = 6;
Type | Description |
String | The nextPageToken. |
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
If empty, the list is complete. If nonempty, the token to pass to the next request's PredictRequest.page_token.
string next_page_token = 6;
Type | Description |
ByteString | The bytes for nextPageToken. |
getRecommendationToken()
public String getRecommendationToken()
A unique recommendation token. This should be included in the user event logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string recommendation_token = 2;
Type | Description |
String | The recommendationToken. |
getRecommendationTokenBytes()
public ByteString getRecommendationTokenBytes()
A unique recommendation token. This should be included in the user event logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string recommendation_token = 2;
Type | Description |
ByteString | The bytes for recommendationToken. |
getResults(int index)
public PredictResponse.PredictionResult getResults(int index)
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Name | Description |
index | int |
Type | Description |
PredictResponse.PredictionResult |
getResultsBuilder(int index)
public PredictResponse.PredictionResult.Builder getResultsBuilder(int index)
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Name | Description |
index | int |
Type | Description |
PredictResponse.PredictionResult.Builder |
getResultsBuilderList()
public List<PredictResponse.PredictionResult.Builder> getResultsBuilderList()
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Type | Description |
List<Builder> |
getResultsCount()
public int getResultsCount()
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Type | Description |
int |
getResultsList()
public List<PredictResponse.PredictionResult> getResultsList()
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Type | Description |
List<PredictionResult> |
getResultsOrBuilder(int index)
public PredictResponse.PredictionResultOrBuilder getResultsOrBuilder(int index)
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Name | Description |
index | int |
Type | Description |
PredictResponse.PredictionResultOrBuilder |
getResultsOrBuilderList()
public List<? extends PredictResponse.PredictionResultOrBuilder> getResultsOrBuilderList()
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Type | Description |
List<? extends com.google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResultOrBuilder> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(PredictResponse other)
public PredictResponse.Builder mergeFrom(PredictResponse other)
Name | Description |
other | PredictResponse |
Type | Description |
PredictResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PredictResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PredictResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public PredictResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
PredictResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PredictResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PredictResponse.Builder |
putAllMetadata(Map<String,Value> values)
public PredictResponse.Builder putAllMetadata(Map<String,Value> values)
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5;
Name | Description |
values | Map<String,Value> |
Type | Description |
PredictResponse.Builder |
putMetadata(String key, Value value)
public PredictResponse.Builder putMetadata(String key, Value value)
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5;
Name | Description |
key | String |
value | Value |
Type | Description |
PredictResponse.Builder |
removeMetadata(String key)
public PredictResponse.Builder removeMetadata(String key)
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5;
Name | Description |
key | String |
Type | Description |
PredictResponse.Builder |
removeResults(int index)
public PredictResponse.Builder removeResults(int index)
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Name | Description |
index | int |
Type | Description |
PredictResponse.Builder |
setDryRun(boolean value)
public PredictResponse.Builder setDryRun(boolean value)
True if the dryRun property was set in the request.
bool dry_run = 4;
Name | Description |
value | boolean The dryRun to set. |
Type | Description |
PredictResponse.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public PredictResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
PredictResponse.Builder |
setItemsMissingInCatalog(int index, String value)
public PredictResponse.Builder setItemsMissingInCatalog(int index, String value)
IDs of items in the request that were missing from the catalog.
repeated string items_missing_in_catalog = 3;
Name | Description |
index | int The index to set the value at. |
value | String The itemsMissingInCatalog to set. |
Type | Description |
PredictResponse.Builder | This builder for chaining. |
setNextPageToken(String value)
public PredictResponse.Builder setNextPageToken(String value)
If empty, the list is complete. If nonempty, the token to pass to the next request's PredictRequest.page_token.
string next_page_token = 6;
Name | Description |
value | String The nextPageToken to set. |
Type | Description |
PredictResponse.Builder | This builder for chaining. |
setNextPageTokenBytes(ByteString value)
public PredictResponse.Builder setNextPageTokenBytes(ByteString value)
If empty, the list is complete. If nonempty, the token to pass to the next request's PredictRequest.page_token.
string next_page_token = 6;
Name | Description |
value | ByteString The bytes for nextPageToken to set. |
Type | Description |
PredictResponse.Builder | This builder for chaining. |
setRecommendationToken(String value)
public PredictResponse.Builder setRecommendationToken(String value)
A unique recommendation token. This should be included in the user event logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string recommendation_token = 2;
Name | Description |
value | String The recommendationToken to set. |
Type | Description |
PredictResponse.Builder | This builder for chaining. |
setRecommendationTokenBytes(ByteString value)
public PredictResponse.Builder setRecommendationTokenBytes(ByteString value)
A unique recommendation token. This should be included in the user event logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string recommendation_token = 2;
Name | Description |
value | ByteString The bytes for recommendationToken to set. |
Type | Description |
PredictResponse.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PredictResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
PredictResponse.Builder |
setResults(int index, PredictResponse.PredictionResult value)
public PredictResponse.Builder setResults(int index, PredictResponse.PredictionResult value)
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Name | Description |
index | int |
value | PredictResponse.PredictionResult |
Type | Description |
PredictResponse.Builder |
setResults(int index, PredictResponse.PredictionResult.Builder builderForValue)
public PredictResponse.Builder setResults(int index, PredictResponse.PredictionResult.Builder builderForValue)
A list of recommended items. The order represents the ranking (from the most relevant item to the least).
repeated .google.cloud.recommendationengine.v1beta1.PredictResponse.PredictionResult results = 1;
Name | Description |
index | int |
builderForValue | PredictResponse.PredictionResult.Builder |
Type | Description |
PredictResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final PredictResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
PredictResponse.Builder |