Package com.google.cloud.retail.v2alpha
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 TypeMethodDescriptionbooleancontainsMetadata(String key) Additional product metadata / annotations.getId()ID of the recommended productcom.google.protobuf.ByteStringID of the recommended productDeprecated.intAdditional product metadata / annotations.Additional product metadata / annotations.com.google.protobuf.ValuegetMetadataOrDefault(String key, com.google.protobuf.Value defaultValue) Additional product metadata / annotations.com.google.protobuf.ValuegetMetadataOrThrow(String key) Additional product 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 product
string id = 1;- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()ID of the recommended product
string id = 1;- Returns:
- The bytes for id.
-
getMetadataCount
int getMetadataCount()Additional product metadata / annotations. Possible values: * `product`: JSON representation of the product. Is set if `returnProduct` is set to true in `PredictRequest.params`. * `score`: Prediction score in double value. Is set if `returnScore` is set to true in `PredictRequest.params`.
map<string, .google.protobuf.Value> metadata = 2; -
containsMetadata
Additional product metadata / annotations. Possible values: * `product`: JSON representation of the product. Is set if `returnProduct` is set to true in `PredictRequest.params`. * `score`: Prediction score in double value. Is set if `returnScore` is set to true in `PredictRequest.params`.
map<string, .google.protobuf.Value> metadata = 2; -
getMetadata
Deprecated.UsegetMetadataMap()instead. -
getMetadataMap
Additional product metadata / annotations. Possible values: * `product`: JSON representation of the product. Is set if `returnProduct` is set to true in `PredictRequest.params`. * `score`: Prediction score in double value. Is set if `returnScore` is set to true in `PredictRequest.params`.
map<string, .google.protobuf.Value> metadata = 2; -
getMetadataOrDefault
Additional product metadata / annotations. Possible values: * `product`: JSON representation of the product. Is set if `returnProduct` is set to true in `PredictRequest.params`. * `score`: Prediction score in double value. Is set if `returnScore` is set to true in `PredictRequest.params`.
map<string, .google.protobuf.Value> metadata = 2; -
getMetadataOrThrow
Additional product metadata / annotations. Possible values: * `product`: JSON representation of the product. Is set if `returnProduct` is set to true in `PredictRequest.params`. * `score`: Prediction score in double value. Is set if `returnScore` is set to true in `PredictRequest.params`.
map<string, .google.protobuf.Value> metadata = 2;
-