Interface PredictResponse.PredictionResultOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PredictResponse.PredictionResult,PredictResponse.PredictionResult.Builder
- Enclosing class:
- PredictResponse
public static interface PredictResponse.PredictionResultOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdditional item metadata / annotations.getId()ID of the recommended catalog itemcom.google.protobuf.ByteStringID of the recommended catalog itemDeprecated.intAdditional item metadata / annotations.Additional item metadata / annotations.com.google.protobuf.ValuegetItemMetadataOrDefault(String key, com.google.protobuf.Value defaultValue) Additional item metadata / annotations.com.google.protobuf.ValueAdditional item metadata / annotations.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
-
getId
String getId()ID of the recommended catalog item
string id = 1;- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()ID of the recommended catalog item
string id = 1;- Returns:
- The bytes for id.
-
getItemMetadataCount
int getItemMetadataCount()Additional item metadata / annotations. Possible values: * `catalogItem`: JSON representation of the catalogItem. Will be set if `returnCatalogItem` is set to true in `PredictRequest.params`. * `score`: Prediction score in double value. Will be set if `returnItemScore` is set to true in `PredictRequest.params`.
map<string, .google.protobuf.Value> item_metadata = 2; -
containsItemMetadata
Additional item metadata / annotations. Possible values: * `catalogItem`: JSON representation of the catalogItem. Will be set if `returnCatalogItem` is set to true in `PredictRequest.params`. * `score`: Prediction score in double value. Will be set if `returnItemScore` is set to true in `PredictRequest.params`.
map<string, .google.protobuf.Value> item_metadata = 2; -
getItemMetadata
Deprecated.UsegetItemMetadataMap()instead. -
getItemMetadataMap
Additional item metadata / annotations. Possible values: * `catalogItem`: JSON representation of the catalogItem. Will be set if `returnCatalogItem` is set to true in `PredictRequest.params`. * `score`: Prediction score in double value. Will be set if `returnItemScore` is set to true in `PredictRequest.params`.
map<string, .google.protobuf.Value> item_metadata = 2; -
getItemMetadataOrDefault
com.google.protobuf.Value getItemMetadataOrDefault(String key, com.google.protobuf.Value defaultValue) Additional item metadata / annotations. Possible values: * `catalogItem`: JSON representation of the catalogItem. Will be set if `returnCatalogItem` is set to true in `PredictRequest.params`. * `score`: Prediction score in double value. Will be set if `returnItemScore` is set to true in `PredictRequest.params`.
map<string, .google.protobuf.Value> item_metadata = 2; -
getItemMetadataOrThrow
Additional item metadata / annotations. Possible values: * `catalogItem`: JSON representation of the catalogItem. Will be set if `returnCatalogItem` is set to true in `PredictRequest.params`. * `score`: Prediction score in double value. Will be set if `returnItemScore` is set to true in `PredictRequest.params`.
map<string, .google.protobuf.Value> item_metadata = 2;
-