Interface PredictResponseOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PredictResponse,PredictResponse.Builder
public interface PredictResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsMetadata(String key)Additional domain specific prediction response metadata.booleangetDryRun()True if the dryRun property was set in the request.StringgetItemsMissingInCatalog(int index)IDs of items in the request that were missing from the catalog.com.google.protobuf.ByteStringgetItemsMissingInCatalogBytes(int index)IDs of items in the request that were missing from the catalog.intgetItemsMissingInCatalogCount()IDs of items in the request that were missing from the catalog.List<String>getItemsMissingInCatalogList()IDs of items in the request that were missing from the catalog.Map<String,com.google.protobuf.Value>getMetadata()Deprecated.intgetMetadataCount()Additional domain specific prediction response metadata.Map<String,com.google.protobuf.Value>getMetadataMap()Additional domain specific prediction response metadata.com.google.protobuf.ValuegetMetadataOrDefault(String key, com.google.protobuf.Value defaultValue)Additional domain specific prediction response metadata.com.google.protobuf.ValuegetMetadataOrThrow(String key)Additional domain specific prediction response metadata.StringgetNextPageToken()If empty, the list is complete.com.google.protobuf.ByteStringgetNextPageTokenBytes()If empty, the list is complete.StringgetRecommendationToken()A unique recommendation token.com.google.protobuf.ByteStringgetRecommendationTokenBytes()A unique recommendation token.PredictResponse.PredictionResultgetResults(int index)A list of recommended items.intgetResultsCount()A list of recommended items.List<PredictResponse.PredictionResult>getResultsList()A list of recommended items.PredictResponse.PredictionResultOrBuildergetResultsOrBuilder(int index)A list of recommended items.List<? extends PredictResponse.PredictionResultOrBuilder>getResultsOrBuilderList()A list of recommended items.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getResultsList
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;
-
getResults
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;
-
getResultsCount
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;
-
getResultsOrBuilderList
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;
-
getResultsOrBuilder
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;
-
getRecommendationToken
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;- Returns:
- The recommendationToken.
-
getRecommendationTokenBytes
com.google.protobuf.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;- Returns:
- The bytes for recommendationToken.
-
getItemsMissingInCatalogList
List<String> getItemsMissingInCatalogList()
IDs of items in the request that were missing from the catalog.
repeated string items_missing_in_catalog = 3;- Returns:
- A list containing the itemsMissingInCatalog.
-
getItemsMissingInCatalogCount
int getItemsMissingInCatalogCount()
IDs of items in the request that were missing from the catalog.
repeated string items_missing_in_catalog = 3;- Returns:
- The count of itemsMissingInCatalog.
-
getItemsMissingInCatalog
String getItemsMissingInCatalog(int index)
IDs of items in the request that were missing from the catalog.
repeated string items_missing_in_catalog = 3;- Parameters:
index- The index of the element to return.- Returns:
- The itemsMissingInCatalog at the given index.
-
getItemsMissingInCatalogBytes
com.google.protobuf.ByteString getItemsMissingInCatalogBytes(int index)
IDs of items in the request that were missing from the catalog.
repeated string items_missing_in_catalog = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the itemsMissingInCatalog at the given index.
-
getDryRun
boolean getDryRun()
True if the dryRun property was set in the request.
bool dry_run = 4;- Returns:
- The dryRun.
-
getMetadataCount
int getMetadataCount()
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5;
-
containsMetadata
boolean containsMetadata(String key)
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5;
-
getMetadata
@Deprecated Map<String,com.google.protobuf.Value> getMetadata()
Deprecated.UsegetMetadataMap()instead.
-
getMetadataMap
Map<String,com.google.protobuf.Value> getMetadataMap()
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5;
-
getMetadataOrDefault
com.google.protobuf.Value getMetadataOrDefault(String key, com.google.protobuf.Value defaultValue)
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5;
-
getMetadataOrThrow
com.google.protobuf.Value getMetadataOrThrow(String key)
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5;
-
getNextPageToken
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;- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
com.google.protobuf.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;- Returns:
- The bytes for nextPageToken.
-
-