public static final class RecommendResponse.RecommendationResult extends GeneratedMessageV3 implements RecommendResponse.RecommendationResultOrBuilder
RecommendationResult represents a generic recommendation result with
associated metadata.
Protobuf type
google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult
Static Fields
DOCUMENT_FIELD_NUMBER
public static final int DOCUMENT_FIELD_NUMBER
Field Value
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value
public static final int METADATA_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static RecommendResponse.RecommendationResult getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static RecommendResponse.RecommendationResult.Builder newBuilder()
Returns
newBuilder(RecommendResponse.RecommendationResult prototype)
public static RecommendResponse.RecommendationResult.Builder newBuilder(RecommendResponse.RecommendationResult prototype)
Parameter
Returns
public static RecommendResponse.RecommendationResult parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static RecommendResponse.RecommendationResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static RecommendResponse.RecommendationResult parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RecommendResponse.RecommendationResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static RecommendResponse.RecommendationResult parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RecommendResponse.RecommendationResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RecommendResponse.RecommendationResult parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static RecommendResponse.RecommendationResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RecommendResponse.RecommendationResult parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static RecommendResponse.RecommendationResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static RecommendResponse.RecommendationResult parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RecommendResponse.RecommendationResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<RecommendResponse.RecommendationResult> parser()
Returns
Methods
public 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.
map<string, .google.protobuf.Value> metadata = 3;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public RecommendResponse.RecommendationResult getDefaultInstanceForType()
Returns
getDocument()
public Document getDocument()
Set if returnDocument
is set to true in
RecommendRequest.params.
.google.cloud.discoveryengine.v1beta.Document document = 2;
Returns
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder()
Set if returnDocument
is set to true in
RecommendRequest.params.
.google.cloud.discoveryengine.v1beta.Document document = 2;
Returns
getId()
Resource ID of the recommended Document.
string id = 1;
Returns
getIdBytes()
public ByteString getIdBytes()
Resource ID of the recommended Document.
string id = 1;
Returns
public Map<String,Value> getMetadata()
Returns
public int getMetadataCount()
Additional Document metadata / annotations.
Possible values:
score
: Recommendation score in double value. Is set if
returnScore
is set to true in
RecommendRequest.params.
map<string, .google.protobuf.Value> metadata = 3;
Returns
public Map<String,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.
map<string, .google.protobuf.Value> metadata = 3;
Returns
public Value getMetadataOrDefault(String key, 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.
map<string, .google.protobuf.Value> metadata = 3;
Parameters
Returns
public 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.
map<string, .google.protobuf.Value> metadata = 3;
Parameter
Returns
getParserForType()
public Parser<RecommendResponse.RecommendationResult> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasDocument()
public boolean hasDocument()
Set if returnDocument
is set to true in
RecommendRequest.params.
.google.cloud.discoveryengine.v1beta.Document document = 2;
Returns
Type | Description |
boolean | Whether the document field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public RecommendResponse.RecommendationResult.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RecommendResponse.RecommendationResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public RecommendResponse.RecommendationResult.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions