Interface PredictResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PredictResponse,PredictResponse.Builder
@Generated
public interface PredictResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(String key) Additional domain specific prediction response metadata.booleanTrue if the dryRun property was set in the request.getItemsMissingInCatalog(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.intIDs of items in the request that were missing from the catalog.IDs of items in the request that were missing from the catalog.Deprecated.intAdditional domain specific prediction response metadata.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.If empty, the list is complete.com.google.protobuf.ByteStringIf empty, the list is complete.A unique recommendation token.com.google.protobuf.ByteStringA unique recommendation token.getResults(int index) A list of recommended items.intA list of recommended items.A list of recommended items.getResultsOrBuilder(int index) A list of recommended items.List<? extends PredictResponse.PredictionResultOrBuilder>A list of recommended items.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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
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
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
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
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5; -
getMetadata
Deprecated.UsegetMetadataMap()instead. -
getMetadataMap
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5; -
getMetadataOrDefault
Additional domain specific prediction response metadata.
map<string, .google.protobuf.Value> metadata = 5; -
getMetadataOrThrow
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.
-