public static interface PredictResponse.PredictionResultOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMetadata(String key)
Additional product metadata / annotations.
|
String |
getId()
ID of the recommended product
|
com.google.protobuf.ByteString |
getIdBytes()
ID of the recommended product
|
Map<String,com.google.protobuf.Value> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
Additional product metadata / annotations.
|
Map<String,com.google.protobuf.Value> |
getMetadataMap()
Additional product metadata / annotations.
|
com.google.protobuf.Value |
getMetadataOrDefault(String key,
com.google.protobuf.Value defaultValue)
Additional product metadata / annotations.
|
com.google.protobuf.Value |
getMetadataOrThrow(String key)
Additional product metadata / annotations.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getId()
ID of the recommended product
string id = 1;com.google.protobuf.ByteString getIdBytes()
ID of the recommended product
string id = 1;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;boolean containsMetadata(String key)
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;@Deprecated Map<String,com.google.protobuf.Value> getMetadata()
getMetadataMap() instead.Map<String,com.google.protobuf.Value> 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;com.google.protobuf.Value getMetadataOrDefault(String key, com.google.protobuf.Value defaultValue)
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;com.google.protobuf.Value getMetadataOrThrow(String key)
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;Copyright © 2023 Google LLC. All rights reserved.