Class SearchDocumentsResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse
-
- All Implemented Interfaces:
SearchDocumentsResponseOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class SearchDocumentsResponse extends com.google.protobuf.GeneratedMessageV3 implements SearchDocumentsResponseOrBuilder
Response message for DocumentService.SearchDocuments.
Protobuf typegoogle.cloud.contentwarehouse.v1.SearchDocumentsResponse
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SearchDocumentsResponse.Builder
Response message for DocumentService.SearchDocuments.static class
SearchDocumentsResponse.MatchingDocument
Document entry with metadata inside [SearchDocumentsResponse][google.cloud.contentwarehouse.v1.SearchDocumentsResponse]static interface
SearchDocumentsResponse.MatchingDocumentOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static int
HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER
static int
MATCHING_DOCUMENTS_FIELD_NUMBER
static int
METADATA_FIELD_NUMBER
static int
NEXT_PAGE_TOKEN_FIELD_NUMBER
static int
QUESTION_ANSWER_FIELD_NUMBER
static int
TOTAL_SIZE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static SearchDocumentsResponse
getDefaultInstance()
SearchDocumentsResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
HistogramQueryResult
getHistogramQueryResults(int index)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].int
getHistogramQueryResultsCount()
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].List<HistogramQueryResult>
getHistogramQueryResultsList()
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].HistogramQueryResultOrBuilder
getHistogramQueryResultsOrBuilder(int index)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].List<? extends HistogramQueryResultOrBuilder>
getHistogramQueryResultsOrBuilderList()
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].SearchDocumentsResponse.MatchingDocument
getMatchingDocuments(int index)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].int
getMatchingDocumentsCount()
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].List<SearchDocumentsResponse.MatchingDocument>
getMatchingDocumentsList()
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.MatchingDocumentOrBuilder
getMatchingDocumentsOrBuilder(int index)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].List<? extends SearchDocumentsResponse.MatchingDocumentOrBuilder>
getMatchingDocumentsOrBuilderList()
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].ResponseMetadata
getMetadata()
Additional information for the API invocation, such as the request tracking id.ResponseMetadataOrBuilder
getMetadataOrBuilder()
Additional information for the API invocation, such as the request tracking id.String
getNextPageToken()
The token that specifies the starting position of the next page of results.com.google.protobuf.ByteString
getNextPageTokenBytes()
The token that specifies the starting position of the next page of results.com.google.protobuf.Parser<SearchDocumentsResponse>
getParserForType()
String
getQuestionAnswer()
Experimental.com.google.protobuf.ByteString
getQuestionAnswerBytes()
Experimental.int
getSerializedSize()
int
getTotalSize()
The total number of matched documents which is available only if the client set [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true` or set [SearchDocumentsRequest.total_result_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.total_result_size] to `ESTIMATED_SIZE` or `ACTUAL_SIZE`.int
hashCode()
boolean
hasMetadata()
Additional information for the API invocation, such as the request tracking id.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static SearchDocumentsResponse.Builder
newBuilder()
static SearchDocumentsResponse.Builder
newBuilder(SearchDocumentsResponse prototype)
SearchDocumentsResponse.Builder
newBuilderForType()
protected SearchDocumentsResponse.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static SearchDocumentsResponse
parseDelimitedFrom(InputStream input)
static SearchDocumentsResponse
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchDocumentsResponse
parseFrom(byte[] data)
static SearchDocumentsResponse
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchDocumentsResponse
parseFrom(com.google.protobuf.ByteString data)
static SearchDocumentsResponse
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchDocumentsResponse
parseFrom(com.google.protobuf.CodedInputStream input)
static SearchDocumentsResponse
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchDocumentsResponse
parseFrom(InputStream input)
static SearchDocumentsResponse
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchDocumentsResponse
parseFrom(ByteBuffer data)
static SearchDocumentsResponse
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<SearchDocumentsResponse>
parser()
SearchDocumentsResponse.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
MATCHING_DOCUMENTS_FIELD_NUMBER
public static final int MATCHING_DOCUMENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEXT_PAGE_TOKEN_FIELD_NUMBER
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOTAL_SIZE_FIELD_NUMBER
public static final int TOTAL_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER
public static final int HISTOGRAM_QUERY_RESULTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUESTION_ANSWER_FIELD_NUMBER
public static final int QUESTION_ANSWER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getMatchingDocumentsList
public List<SearchDocumentsResponse.MatchingDocument> getMatchingDocumentsList()
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
- Specified by:
getMatchingDocumentsList
in interfaceSearchDocumentsResponseOrBuilder
-
getMatchingDocumentsOrBuilderList
public List<? extends SearchDocumentsResponse.MatchingDocumentOrBuilder> getMatchingDocumentsOrBuilderList()
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
- Specified by:
getMatchingDocumentsOrBuilderList
in interfaceSearchDocumentsResponseOrBuilder
-
getMatchingDocumentsCount
public int getMatchingDocumentsCount()
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
- Specified by:
getMatchingDocumentsCount
in interfaceSearchDocumentsResponseOrBuilder
-
getMatchingDocuments
public SearchDocumentsResponse.MatchingDocument getMatchingDocuments(int index)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
- Specified by:
getMatchingDocuments
in interfaceSearchDocumentsResponseOrBuilder
-
getMatchingDocumentsOrBuilder
public SearchDocumentsResponse.MatchingDocumentOrBuilder getMatchingDocumentsOrBuilder(int index)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
- Specified by:
getMatchingDocumentsOrBuilder
in interfaceSearchDocumentsResponseOrBuilder
-
getNextPageToken
public String getNextPageToken()
The token that specifies the starting position of the next page of results. This field is empty if there are no more results.
string next_page_token = 2;
- Specified by:
getNextPageToken
in interfaceSearchDocumentsResponseOrBuilder
- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.ByteString getNextPageTokenBytes()
The token that specifies the starting position of the next page of results. This field is empty if there are no more results.
string next_page_token = 2;
- Specified by:
getNextPageTokenBytes
in interfaceSearchDocumentsResponseOrBuilder
- Returns:
- The bytes for nextPageToken.
-
getTotalSize
public int getTotalSize()
The total number of matched documents which is available only if the client set [SearchDocumentsRequest.require_total_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.require_total_size] to `true` or set [SearchDocumentsRequest.total_result_size][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.total_result_size] to `ESTIMATED_SIZE` or `ACTUAL_SIZE`. Otherwise, the value will be `-1`. Typically a UI would handle this condition by displaying "of many", for example: "Displaying 10 of many".
int32 total_size = 3;
- Specified by:
getTotalSize
in interfaceSearchDocumentsResponseOrBuilder
- Returns:
- The totalSize.
-
hasMetadata
public boolean hasMetadata()
Additional information for the API invocation, such as the request tracking id.
.google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
- Specified by:
hasMetadata
in interfaceSearchDocumentsResponseOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
public ResponseMetadata getMetadata()
Additional information for the API invocation, such as the request tracking id.
.google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
- Specified by:
getMetadata
in interfaceSearchDocumentsResponseOrBuilder
- Returns:
- The metadata.
-
getMetadataOrBuilder
public ResponseMetadataOrBuilder getMetadataOrBuilder()
Additional information for the API invocation, such as the request tracking id.
.google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
- Specified by:
getMetadataOrBuilder
in interfaceSearchDocumentsResponseOrBuilder
-
getHistogramQueryResultsList
public List<HistogramQueryResult> getHistogramQueryResultsList()
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6;
- Specified by:
getHistogramQueryResultsList
in interfaceSearchDocumentsResponseOrBuilder
-
getHistogramQueryResultsOrBuilderList
public List<? extends HistogramQueryResultOrBuilder> getHistogramQueryResultsOrBuilderList()
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6;
- Specified by:
getHistogramQueryResultsOrBuilderList
in interfaceSearchDocumentsResponseOrBuilder
-
getHistogramQueryResultsCount
public int getHistogramQueryResultsCount()
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6;
- Specified by:
getHistogramQueryResultsCount
in interfaceSearchDocumentsResponseOrBuilder
-
getHistogramQueryResults
public HistogramQueryResult getHistogramQueryResults(int index)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6;
- Specified by:
getHistogramQueryResults
in interfaceSearchDocumentsResponseOrBuilder
-
getHistogramQueryResultsOrBuilder
public HistogramQueryResultOrBuilder getHistogramQueryResultsOrBuilder(int index)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].
repeated .google.cloud.contentwarehouse.v1.HistogramQueryResult histogram_query_results = 6;
- Specified by:
getHistogramQueryResultsOrBuilder
in interfaceSearchDocumentsResponseOrBuilder
-
getQuestionAnswer
public String getQuestionAnswer()
Experimental. Question answer from the query against the document.
string question_answer = 7;
- Specified by:
getQuestionAnswer
in interfaceSearchDocumentsResponseOrBuilder
- Returns:
- The questionAnswer.
-
getQuestionAnswerBytes
public com.google.protobuf.ByteString getQuestionAnswerBytes()
Experimental. Question answer from the query against the document.
string question_answer = 7;
- Specified by:
getQuestionAnswerBytes
in interfaceSearchDocumentsResponseOrBuilder
- Returns:
- The bytes for questionAnswer.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SearchDocumentsResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchDocumentsResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchDocumentsResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchDocumentsResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchDocumentsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchDocumentsResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchDocumentsResponse parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SearchDocumentsResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SearchDocumentsResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SearchDocumentsResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static SearchDocumentsResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SearchDocumentsResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public SearchDocumentsResponse.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SearchDocumentsResponse.Builder newBuilder()
-
newBuilder
public static SearchDocumentsResponse.Builder newBuilder(SearchDocumentsResponse prototype)
-
toBuilder
public SearchDocumentsResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SearchDocumentsResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SearchDocumentsResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SearchDocumentsResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<SearchDocumentsResponse> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SearchDocumentsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-