public static final class PredictResponse.PredictionResult extends com.google.protobuf.GeneratedMessageV3 implements PredictResponse.PredictionResultOrBuilder
PredictionResult represents the recommendation prediction results.Protobuf type
google.cloud.retail.v2beta.PredictResponse.PredictionResult| Modifier and Type | Class and Description |
|---|---|
static class |
PredictResponse.PredictionResult.Builder
PredictionResult represents the recommendation prediction results.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ID_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMetadata(String key)
Additional product metadata / annotations.
|
boolean |
equals(Object obj) |
static PredictResponse.PredictionResult |
getDefaultInstance() |
PredictResponse.PredictionResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<PredictResponse.PredictionResult> |
getParserForType() |
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static PredictResponse.PredictionResult.Builder |
newBuilder() |
static PredictResponse.PredictionResult.Builder |
newBuilder(PredictResponse.PredictionResult prototype) |
PredictResponse.PredictionResult.Builder |
newBuilderForType() |
protected PredictResponse.PredictionResult.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static PredictResponse.PredictionResult |
parseDelimitedFrom(InputStream input) |
static PredictResponse.PredictionResult |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PredictResponse.PredictionResult |
parseFrom(byte[] data) |
static PredictResponse.PredictionResult |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PredictResponse.PredictionResult |
parseFrom(ByteBuffer data) |
static PredictResponse.PredictionResult |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PredictResponse.PredictionResult |
parseFrom(com.google.protobuf.ByteString data) |
static PredictResponse.PredictionResult |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PredictResponse.PredictionResult |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PredictResponse.PredictionResult |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PredictResponse.PredictionResult |
parseFrom(InputStream input) |
static PredictResponse.PredictionResult |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PredictResponse.PredictionResult> |
parser() |
PredictResponse.PredictionResult.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getId()
ID of the recommended product
string id = 1;getId in interface PredictResponse.PredictionResultOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
ID of the recommended product
string id = 1;getIdBytes in interface PredictResponse.PredictionResultOrBuilderpublic int getMetadataCount()
PredictResponse.PredictionResultOrBuilderAdditional 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;getMetadataCount in interface PredictResponse.PredictionResultOrBuilderpublic 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;containsMetadata in interface PredictResponse.PredictionResultOrBuilder@Deprecated public Map<String,com.google.protobuf.Value> getMetadata()
getMetadataMap() instead.getMetadata in interface PredictResponse.PredictionResultOrBuilderpublic 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;getMetadataMap in interface PredictResponse.PredictionResultOrBuilderpublic 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;getMetadataOrDefault in interface PredictResponse.PredictionResultOrBuilderpublic 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;getMetadataOrThrow in interface PredictResponse.PredictionResultOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static PredictResponse.PredictionResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PredictResponse.PredictionResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PredictResponse.PredictionResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PredictResponse.PredictionResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PredictResponse.PredictionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PredictResponse.PredictionResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PredictResponse.PredictionResult parseFrom(InputStream input) throws IOException
IOExceptionpublic static PredictResponse.PredictionResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PredictResponse.PredictionResult parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PredictResponse.PredictionResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PredictResponse.PredictionResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static PredictResponse.PredictionResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PredictResponse.PredictionResult.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static PredictResponse.PredictionResult.Builder newBuilder()
public static PredictResponse.PredictionResult.Builder newBuilder(PredictResponse.PredictionResult prototype)
public PredictResponse.PredictionResult.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected PredictResponse.PredictionResult.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static PredictResponse.PredictionResult getDefaultInstance()
public static com.google.protobuf.Parser<PredictResponse.PredictionResult> parser()
public com.google.protobuf.Parser<PredictResponse.PredictionResult> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public PredictResponse.PredictionResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.