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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
DOCUMENT_FIELD_NUMBER
public static final int DOCUMENT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int METADATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static RecommendResponse.RecommendationResult getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RecommendResponse.RecommendationResult.Builder newBuilder()
newBuilder(RecommendResponse.RecommendationResult prototype)
public static RecommendResponse.RecommendationResult.Builder newBuilder(RecommendResponse.RecommendationResult prototype)
public static RecommendResponse.RecommendationResult parseDelimitedFrom(InputStream input)
public static RecommendResponse.RecommendationResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RecommendResponse.RecommendationResult parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RecommendResponse.RecommendationResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RecommendResponse.RecommendationResult parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RecommendResponse.RecommendationResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RecommendResponse.RecommendationResult parseFrom(CodedInputStream input)
public static RecommendResponse.RecommendationResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RecommendResponse.RecommendationResult parseFrom(InputStream input)
public static RecommendResponse.RecommendationResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RecommendResponse.RecommendationResult parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RecommendResponse.RecommendationResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RecommendResponse.RecommendationResult> parser()
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 |
---|
Name | Description |
key | String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public RecommendResponse.RecommendationResult getDefaultInstanceForType()
getDocument()
public Document getDocument()
Set if returnDocument
is set to true in
RecommendRequest.params.
.google.cloud.discoveryengine.v1beta.Document document = 2;
Returns |
---|
Type | Description |
Document | The document.
|
getDocumentOrBuilder()
public DocumentOrBuilder getDocumentOrBuilder()
Set if returnDocument
is set to true in
RecommendRequest.params.
.google.cloud.discoveryengine.v1beta.Document document = 2;
getId()
Resource ID of the recommended Document.
string id = 1;
Returns |
---|
Type | Description |
String | The id.
|
getIdBytes()
public ByteString getIdBytes()
Resource ID of the recommended Document.
string id = 1;
public Map<String,Value> getMetadata()
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 |
---|
Type | Description |
int | |
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;
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;
Returns |
---|
Type | Description |
Value | |
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 |
---|
Name | Description |
key | String
|
Returns |
---|
Type | Description |
Value | |
getParserForType()
public Parser<RecommendResponse.RecommendationResult> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RecommendResponse.RecommendationResult.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RecommendResponse.RecommendationResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public RecommendResponse.RecommendationResult.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides