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 classSearchDocumentsResponse.BuilderResponse message for DocumentService.SearchDocuments.static classSearchDocumentsResponse.MatchingDocumentDocument entry with metadata inside [SearchDocumentsResponse][google.cloud.contentwarehouse.v1.SearchDocumentsResponse]static interfaceSearchDocumentsResponse.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 intHISTOGRAM_QUERY_RESULTS_FIELD_NUMBERstatic intMATCHING_DOCUMENTS_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic intNEXT_PAGE_TOKEN_FIELD_NUMBERstatic intQUESTION_ANSWER_FIELD_NUMBERstatic intTOTAL_SIZE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static SearchDocumentsResponsegetDefaultInstance()SearchDocumentsResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()HistogramQueryResultgetHistogramQueryResults(int index)The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].intgetHistogramQueryResultsCount()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].HistogramQueryResultOrBuildergetHistogramQueryResultsOrBuilder(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.MatchingDocumentgetMatchingDocuments(int index)The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].intgetMatchingDocumentsCount()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.MatchingDocumentOrBuildergetMatchingDocumentsOrBuilder(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].ResponseMetadatagetMetadata()Additional information for the API invocation, such as the request tracking id.ResponseMetadataOrBuildergetMetadataOrBuilder()Additional information for the API invocation, such as the request tracking id.StringgetNextPageToken()The token that specifies the starting position of the next page of results.com.google.protobuf.ByteStringgetNextPageTokenBytes()The token that specifies the starting position of the next page of results.com.google.protobuf.Parser<SearchDocumentsResponse>getParserForType()StringgetQuestionAnswer()Experimental.com.google.protobuf.ByteStringgetQuestionAnswerBytes()Experimental.intgetSerializedSize()intgetTotalSize()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`.inthashCode()booleanhasMetadata()Additional information for the API invocation, such as the request tracking id.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static SearchDocumentsResponse.BuildernewBuilder()static SearchDocumentsResponse.BuildernewBuilder(SearchDocumentsResponse prototype)SearchDocumentsResponse.BuildernewBuilderForType()protected SearchDocumentsResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static SearchDocumentsResponseparseDelimitedFrom(InputStream input)static SearchDocumentsResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SearchDocumentsResponseparseFrom(byte[] data)static SearchDocumentsResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SearchDocumentsResponseparseFrom(com.google.protobuf.ByteString data)static SearchDocumentsResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SearchDocumentsResponseparseFrom(com.google.protobuf.CodedInputStream input)static SearchDocumentsResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SearchDocumentsResponseparseFrom(InputStream input)static SearchDocumentsResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SearchDocumentsResponseparseFrom(ByteBuffer data)static SearchDocumentsResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<SearchDocumentsResponse>parser()SearchDocumentsResponse.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
getMatchingDocumentsListin 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:
getMatchingDocumentsOrBuilderListin 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:
getMatchingDocumentsCountin 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:
getMatchingDocumentsin 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:
getMatchingDocumentsOrBuilderin 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:
getNextPageTokenin 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:
getNextPageTokenBytesin 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:
getTotalSizein 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:
hasMetadatain 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:
getMetadatain 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:
getMetadataOrBuilderin 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:
getHistogramQueryResultsListin 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:
getHistogramQueryResultsOrBuilderListin 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:
getHistogramQueryResultsCountin 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:
getHistogramQueryResultsin 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:
getHistogramQueryResultsOrBuilderin interfaceSearchDocumentsResponseOrBuilder
-
getQuestionAnswer
public String getQuestionAnswer()
Experimental. Question answer from the query against the document.
string question_answer = 7;- Specified by:
getQuestionAnswerin 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:
getQuestionAnswerBytesin interfaceSearchDocumentsResponseOrBuilder- Returns:
- The bytes for questionAnswer.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SearchDocumentsResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SearchDocumentsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-