public static final class RecommendResponse.RecommendationResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder> implements RecommendResponse.RecommendationResultOrBuilder
RecommendationResult represents a generic recommendation result with associated metadata.Protobuf type
google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult| Modifier and Type | Method and Description |
|---|---|
RecommendResponse.RecommendationResult.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RecommendResponse.RecommendationResult |
build() |
RecommendResponse.RecommendationResult |
buildPartial() |
RecommendResponse.RecommendationResult.Builder |
clear() |
RecommendResponse.RecommendationResult.Builder |
clearDocument()
Set if `returnDocument` is set to true in
[RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
|
RecommendResponse.RecommendationResult.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RecommendResponse.RecommendationResult.Builder |
clearId()
Resource ID of the recommended Document.
|
RecommendResponse.RecommendationResult.Builder |
clearMetadata() |
RecommendResponse.RecommendationResult.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RecommendResponse.RecommendationResult.Builder |
clone() |
boolean |
containsMetadata(String key)
Additional Document metadata / annotations.
|
RecommendResponse.RecommendationResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Document |
getDocument()
Set if `returnDocument` is set to true in
[RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
|
Document.Builder |
getDocumentBuilder()
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.
|
Map<String,com.google.protobuf.Value> |
getMutableMetadata()
Deprecated.
|
boolean |
hasDocument()
Set if `returnDocument` is set to true in
[RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
RecommendResponse.RecommendationResult.Builder |
mergeDocument(Document value)
Set if `returnDocument` is set to true in
[RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
|
RecommendResponse.RecommendationResult.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RecommendResponse.RecommendationResult.Builder |
mergeFrom(com.google.protobuf.Message other) |
RecommendResponse.RecommendationResult.Builder |
mergeFrom(RecommendResponse.RecommendationResult other) |
RecommendResponse.RecommendationResult.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RecommendResponse.RecommendationResult.Builder |
putAllMetadata(Map<String,com.google.protobuf.Value> values)
Additional Document metadata / annotations.
|
RecommendResponse.RecommendationResult.Builder |
putMetadata(String key,
com.google.protobuf.Value value)
Additional Document metadata / annotations.
|
RecommendResponse.RecommendationResult.Builder |
removeMetadata(String key)
Additional Document metadata / annotations.
|
RecommendResponse.RecommendationResult.Builder |
setDocument(Document.Builder builderForValue)
Set if `returnDocument` is set to true in
[RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
|
RecommendResponse.RecommendationResult.Builder |
setDocument(Document value)
Set if `returnDocument` is set to true in
[RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
|
RecommendResponse.RecommendationResult.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RecommendResponse.RecommendationResult.Builder |
setId(String value)
Resource ID of the recommended Document.
|
RecommendResponse.RecommendationResult.Builder |
setIdBytes(com.google.protobuf.ByteString value)
Resource ID of the recommended Document.
|
RecommendResponse.RecommendationResult.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RecommendResponse.RecommendationResult.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>public RecommendResponse.RecommendationResult.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>public RecommendResponse.RecommendationResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RecommendResponse.RecommendationResult build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RecommendResponse.RecommendationResult buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RecommendResponse.RecommendationResult.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>public RecommendResponse.RecommendationResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>public RecommendResponse.RecommendationResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>public RecommendResponse.RecommendationResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>public RecommendResponse.RecommendationResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>public RecommendResponse.RecommendationResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>public RecommendResponse.RecommendationResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RecommendResponse.RecommendationResult.Builder>public RecommendResponse.RecommendationResult.Builder mergeFrom(RecommendResponse.RecommendationResult other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>public RecommendResponse.RecommendationResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RecommendResponse.RecommendationResult.Builder>IOExceptionpublic 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 RecommendResponse.RecommendationResult.Builder setId(String value)
Resource ID of the recommended Document.
string id = 1;value - The id to set.public RecommendResponse.RecommendationResult.Builder clearId()
Resource ID of the recommended Document.
string id = 1;public RecommendResponse.RecommendationResult.Builder setIdBytes(com.google.protobuf.ByteString value)
Resource ID of the recommended Document.
string id = 1;value - The bytes for id to set.public 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 RecommendResponse.RecommendationResult.Builder setDocument(Document value)
Set if `returnDocument` is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
.google.cloud.discoveryengine.v1beta.Document document = 2;public RecommendResponse.RecommendationResult.Builder setDocument(Document.Builder builderForValue)
Set if `returnDocument` is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
.google.cloud.discoveryengine.v1beta.Document document = 2;public RecommendResponse.RecommendationResult.Builder mergeDocument(Document value)
Set if `returnDocument` is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
.google.cloud.discoveryengine.v1beta.Document document = 2;public RecommendResponse.RecommendationResult.Builder clearDocument()
Set if `returnDocument` is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
.google.cloud.discoveryengine.v1beta.Document document = 2;public Document.Builder getDocumentBuilder()
Set if `returnDocument` is set to true in [RecommendRequest.params][google.cloud.discoveryengine.v1beta.RecommendRequest.params].
.google.cloud.discoveryengine.v1beta.Document document = 2;public 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 RecommendResponse.RecommendationResult.Builder clearMetadata()
public RecommendResponse.RecommendationResult.Builder removeMetadata(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;@Deprecated public Map<String,com.google.protobuf.Value> getMutableMetadata()
public RecommendResponse.RecommendationResult.Builder putMetadata(String key, com.google.protobuf.Value value)
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;public RecommendResponse.RecommendationResult.Builder putAllMetadata(Map<String,com.google.protobuf.Value> values)
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;public final RecommendResponse.RecommendationResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>public final RecommendResponse.RecommendationResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.RecommendationResult.Builder>Copyright © 2024 Google LLC. All rights reserved.