public static final class RecommendResponse.RecommendationResult extends com.google.protobuf.GeneratedMessageV3 implements RecommendResponse.RecommendationResultOrBuilder
RecommendationResult represents a generic recommendation result with associated metadata.Protobuf type
google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult| Modifier and Type | Class and Description |
|---|---|
static class |
RecommendResponse.RecommendationResult.Builder
RecommendationResult represents a generic recommendation result with
associated metadata.
|
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 |
DOCUMENT_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMetadata(String key)
Additional Document metadata / annotations.
|
boolean |
equals(Object obj) |
static RecommendResponse.RecommendationResult |
getDefaultInstance() |
RecommendResponse.RecommendationResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Document |
getDocument()
Set if `returnDocument` is set to true in
[RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
|
DocumentOrBuilder |
getDocumentOrBuilder()
Set if `returnDocument` is set to true in
[RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
|
String |
getId()
Resource ID of the recommended Document.
|
com.google.protobuf.ByteString |
getIdBytes()
Resource ID of the recommended Document.
|
Map<String,com.google.protobuf.Value> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
Additional Document metadata / annotations.
|
Map<String,com.google.protobuf.Value> |
getMetadataMap()
Additional Document metadata / annotations.
|
com.google.protobuf.Value |
getMetadataOrDefault(String key,
com.google.protobuf.Value defaultValue)
Additional Document metadata / annotations.
|
com.google.protobuf.Value |
getMetadataOrThrow(String key)
Additional Document metadata / annotations.
|
com.google.protobuf.Parser<RecommendResponse.RecommendationResult> |
getParserForType() |
int |
getSerializedSize() |
boolean |
hasDocument()
Set if `returnDocument` is set to true in
[RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static RecommendResponse.RecommendationResult.Builder |
newBuilder() |
static RecommendResponse.RecommendationResult.Builder |
newBuilder(RecommendResponse.RecommendationResult prototype) |
RecommendResponse.RecommendationResult.Builder |
newBuilderForType() |
protected RecommendResponse.RecommendationResult.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RecommendResponse.RecommendationResult |
parseDelimitedFrom(InputStream input) |
static RecommendResponse.RecommendationResult |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RecommendResponse.RecommendationResult |
parseFrom(byte[] data) |
static RecommendResponse.RecommendationResult |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RecommendResponse.RecommendationResult |
parseFrom(ByteBuffer data) |
static RecommendResponse.RecommendationResult |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RecommendResponse.RecommendationResult |
parseFrom(com.google.protobuf.ByteString data) |
static RecommendResponse.RecommendationResult |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RecommendResponse.RecommendationResult |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RecommendResponse.RecommendationResult |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RecommendResponse.RecommendationResult |
parseFrom(InputStream input) |
static RecommendResponse.RecommendationResult |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RecommendResponse.RecommendationResult> |
parser() |
RecommendResponse.RecommendationResult.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 DOCUMENT_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()
Resource ID of the recommended Document.
string id = 1;getId in interface RecommendResponse.RecommendationResultOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
Resource ID of the recommended Document.
string id = 1;getIdBytes in interface RecommendResponse.RecommendationResultOrBuilderpublic boolean hasDocument()
Set if `returnDocument` is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
.google.cloud.discoveryengine.v1beta.Document document = 2;hasDocument in interface RecommendResponse.RecommendationResultOrBuilderpublic Document getDocument()
Set if `returnDocument` is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
.google.cloud.discoveryengine.v1beta.Document document = 2;getDocument in interface RecommendResponse.RecommendationResultOrBuilderpublic DocumentOrBuilder getDocumentOrBuilder()
Set if `returnDocument` is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
.google.cloud.discoveryengine.v1beta.Document document = 2;getDocumentOrBuilder in interface RecommendResponse.RecommendationResultOrBuilderpublic int getMetadataCount()
RecommendResponse.RecommendationResultOrBuilderAdditional Document metadata / annotations. Possible values: * `score`: Recommendation score in double value. Is set if `returnScore` is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
map<string, .google.protobuf.Value> metadata = 3;getMetadataCount in interface RecommendResponse.RecommendationResultOrBuilderpublic boolean containsMetadata(String key)
Additional Document metadata / annotations. Possible values: * `score`: Recommendation score in double value. Is set if `returnScore` is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
map<string, .google.protobuf.Value> metadata = 3;containsMetadata in interface RecommendResponse.RecommendationResultOrBuilder@Deprecated public Map<String,com.google.protobuf.Value> getMetadata()
getMetadataMap() instead.getMetadata in interface RecommendResponse.RecommendationResultOrBuilderpublic Map<String,com.google.protobuf.Value> getMetadataMap()
Additional Document metadata / annotations. Possible values: * `score`: Recommendation score in double value. Is set if `returnScore` is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
map<string, .google.protobuf.Value> metadata = 3;getMetadataMap in interface RecommendResponse.RecommendationResultOrBuilderpublic com.google.protobuf.Value getMetadataOrDefault(String key, com.google.protobuf.Value defaultValue)
Additional Document metadata / annotations. Possible values: * `score`: Recommendation score in double value. Is set if `returnScore` is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
map<string, .google.protobuf.Value> metadata = 3;getMetadataOrDefault in interface RecommendResponse.RecommendationResultOrBuilderpublic com.google.protobuf.Value getMetadataOrThrow(String key)
Additional Document metadata / annotations. Possible values: * `score`: Recommendation score in double value. Is set if `returnScore` is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
map<string, .google.protobuf.Value> metadata = 3;getMetadataOrThrow in interface RecommendResponse.RecommendationResultOrBuilderpublic 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 RecommendResponse.RecommendationResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecommendResponse.RecommendationResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecommendResponse.RecommendationResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecommendResponse.RecommendationResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecommendResponse.RecommendationResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecommendResponse.RecommendationResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RecommendResponse.RecommendationResult parseFrom(InputStream input) throws IOException
IOExceptionpublic static RecommendResponse.RecommendationResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RecommendResponse.RecommendationResult parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RecommendResponse.RecommendationResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RecommendResponse.RecommendationResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RecommendResponse.RecommendationResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RecommendResponse.RecommendationResult.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RecommendResponse.RecommendationResult.Builder newBuilder()
public static RecommendResponse.RecommendationResult.Builder newBuilder(RecommendResponse.RecommendationResult prototype)
public RecommendResponse.RecommendationResult.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RecommendResponse.RecommendationResult.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RecommendResponse.RecommendationResult getDefaultInstance()
public static com.google.protobuf.Parser<RecommendResponse.RecommendationResult> parser()
public com.google.protobuf.Parser<RecommendResponse.RecommendationResult> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RecommendResponse.RecommendationResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.