public static final class SearchResponse.SearchResult extends com.google.protobuf.GeneratedMessageV3 implements SearchResponse.SearchResultOrBuilder
Represents the search results.Protobuf type
google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult| Modifier and Type | Class and Description |
|---|---|
static class |
SearchResponse.SearchResult.Builder
Represents the search 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 |
CHUNK_FIELD_NUMBER |
static int |
DOCUMENT_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
MODEL_SCORES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsModelScores(String key)
Google provided available scores.
|
boolean |
equals(Object obj) |
Chunk |
getChunk()
The chunk data in the search response if the
[SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
is set to
[CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
|
ChunkOrBuilder |
getChunkOrBuilder()
The chunk data in the search response if the
[SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
is set to
[CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
|
static SearchResponse.SearchResult |
getDefaultInstance() |
SearchResponse.SearchResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Document |
getDocument()
The document data snippet in the search response.
|
DocumentOrBuilder |
getDocumentOrBuilder()
The document data snippet in the search response.
|
String |
getId()
[Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the
searched [Document][google.cloud.discoveryengine.v1beta.Document].
|
com.google.protobuf.ByteString |
getIdBytes()
[Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the
searched [Document][google.cloud.discoveryengine.v1beta.Document].
|
Map<String,DoubleList> |
getModelScores()
Deprecated.
|
int |
getModelScoresCount()
Google provided available scores.
|
Map<String,DoubleList> |
getModelScoresMap()
Google provided available scores.
|
DoubleList |
getModelScoresOrDefault(String key,
DoubleList defaultValue)
Google provided available scores.
|
DoubleList |
getModelScoresOrThrow(String key)
Google provided available scores.
|
com.google.protobuf.Parser<SearchResponse.SearchResult> |
getParserForType() |
int |
getSerializedSize() |
boolean |
hasChunk()
The chunk data in the search response if the
[SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
is set to
[CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
|
boolean |
hasDocument()
The document data snippet in the search response.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static SearchResponse.SearchResult.Builder |
newBuilder() |
static SearchResponse.SearchResult.Builder |
newBuilder(SearchResponse.SearchResult prototype) |
SearchResponse.SearchResult.Builder |
newBuilderForType() |
protected SearchResponse.SearchResult.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SearchResponse.SearchResult |
parseDelimitedFrom(InputStream input) |
static SearchResponse.SearchResult |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.SearchResult |
parseFrom(byte[] data) |
static SearchResponse.SearchResult |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.SearchResult |
parseFrom(ByteBuffer data) |
static SearchResponse.SearchResult |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.SearchResult |
parseFrom(com.google.protobuf.ByteString data) |
static SearchResponse.SearchResult |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.SearchResult |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SearchResponse.SearchResult |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchResponse.SearchResult |
parseFrom(InputStream input) |
static SearchResponse.SearchResult |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SearchResponse.SearchResult> |
parser() |
SearchResponse.SearchResult.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, internalGetMapField, 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 CHUNK_FIELD_NUMBER
public static final int MODEL_SCORES_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.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getId()
[Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the searched [Document][google.cloud.discoveryengine.v1beta.Document].
string id = 1;getId in interface SearchResponse.SearchResultOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
[Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the searched [Document][google.cloud.discoveryengine.v1beta.Document].
string id = 1;getIdBytes in interface SearchResponse.SearchResultOrBuilderpublic boolean hasDocument()
The document data snippet in the search response. Only fields that are marked as `retrievable` are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2;hasDocument in interface SearchResponse.SearchResultOrBuilderpublic Document getDocument()
The document data snippet in the search response. Only fields that are marked as `retrievable` are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2;getDocument in interface SearchResponse.SearchResultOrBuilderpublic DocumentOrBuilder getDocumentOrBuilder()
The document data snippet in the search response. Only fields that are marked as `retrievable` are populated.
.google.cloud.discoveryengine.v1beta.Document document = 2;getDocumentOrBuilder in interface SearchResponse.SearchResultOrBuilderpublic boolean hasChunk()
The chunk data in the search response if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
.google.cloud.discoveryengine.v1beta.Chunk chunk = 18;hasChunk in interface SearchResponse.SearchResultOrBuilderpublic Chunk getChunk()
The chunk data in the search response if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
.google.cloud.discoveryengine.v1beta.Chunk chunk = 18;getChunk in interface SearchResponse.SearchResultOrBuilderpublic ChunkOrBuilder getChunkOrBuilder()
The chunk data in the search response if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
.google.cloud.discoveryengine.v1beta.Chunk chunk = 18;getChunkOrBuilder in interface SearchResponse.SearchResultOrBuilderpublic int getModelScoresCount()
SearchResponse.SearchResultOrBuilderGoogle provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
getModelScoresCount in interface SearchResponse.SearchResultOrBuilderpublic boolean containsModelScores(String key)
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
containsModelScores in interface SearchResponse.SearchResultOrBuilder@Deprecated public Map<String,DoubleList> getModelScores()
getModelScoresMap() instead.getModelScores in interface SearchResponse.SearchResultOrBuilderpublic Map<String,DoubleList> getModelScoresMap()
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
getModelScoresMap in interface SearchResponse.SearchResultOrBuilderpublic DoubleList getModelScoresOrDefault(String key, DoubleList defaultValue)
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
getModelScoresOrDefault in interface SearchResponse.SearchResultOrBuilderpublic DoubleList getModelScoresOrThrow(String key)
Google provided available scores.
map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4;
getModelScoresOrThrow in interface SearchResponse.SearchResultOrBuilderpublic 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 SearchResponse.SearchResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.SearchResult parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.SearchResult parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.SearchResult parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.SearchResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.SearchResult parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchResponse.SearchResult parseFrom(InputStream input) throws IOException
IOExceptionpublic static SearchResponse.SearchResult parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchResponse.SearchResult parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SearchResponse.SearchResult parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchResponse.SearchResult parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SearchResponse.SearchResult parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SearchResponse.SearchResult.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SearchResponse.SearchResult.Builder newBuilder()
public static SearchResponse.SearchResult.Builder newBuilder(SearchResponse.SearchResult prototype)
public SearchResponse.SearchResult.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SearchResponse.SearchResult.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SearchResponse.SearchResult getDefaultInstance()
public static com.google.protobuf.Parser<SearchResponse.SearchResult> parser()
public com.google.protobuf.Parser<SearchResponse.SearchResult> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SearchResponse.SearchResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.