Class SearchDocumentsResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.Builder>
-
- com.google.cloud.contentwarehouse.v1.SearchDocumentsResponse.Builder
-
- All Implemented Interfaces:
SearchDocumentsResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SearchDocumentsResponse
public static final class SearchDocumentsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.Builder> implements SearchDocumentsResponseOrBuilder
Response message for DocumentService.SearchDocuments.
Protobuf typegoogle.cloud.contentwarehouse.v1.SearchDocumentsResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchDocumentsResponse.Builder
addAllHistogramQueryResults(Iterable<? extends HistogramQueryResult> values)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].SearchDocumentsResponse.Builder
addAllMatchingDocuments(Iterable<? extends SearchDocumentsResponse.MatchingDocument> values)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.Builder
addHistogramQueryResults(int index, HistogramQueryResult value)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].SearchDocumentsResponse.Builder
addHistogramQueryResults(int index, HistogramQueryResult.Builder builderForValue)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].SearchDocumentsResponse.Builder
addHistogramQueryResults(HistogramQueryResult value)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].SearchDocumentsResponse.Builder
addHistogramQueryResults(HistogramQueryResult.Builder builderForValue)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].HistogramQueryResult.Builder
addHistogramQueryResultsBuilder()
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].HistogramQueryResult.Builder
addHistogramQueryResultsBuilder(int index)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].SearchDocumentsResponse.Builder
addMatchingDocuments(int index, SearchDocumentsResponse.MatchingDocument value)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.Builder
addMatchingDocuments(int index, SearchDocumentsResponse.MatchingDocument.Builder builderForValue)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.Builder
addMatchingDocuments(SearchDocumentsResponse.MatchingDocument value)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.Builder
addMatchingDocuments(SearchDocumentsResponse.MatchingDocument.Builder builderForValue)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.MatchingDocument.Builder
addMatchingDocumentsBuilder()
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.MatchingDocument.Builder
addMatchingDocumentsBuilder(int index)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SearchDocumentsResponse
build()
SearchDocumentsResponse
buildPartial()
SearchDocumentsResponse.Builder
clear()
SearchDocumentsResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SearchDocumentsResponse.Builder
clearHistogramQueryResults()
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].SearchDocumentsResponse.Builder
clearMatchingDocuments()
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.Builder
clearMetadata()
Additional information for the API invocation, such as the request tracking id.SearchDocumentsResponse.Builder
clearNextPageToken()
The token that specifies the starting position of the next page of results.SearchDocumentsResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SearchDocumentsResponse.Builder
clearQuestionAnswer()
Experimental.SearchDocumentsResponse.Builder
clearTotalSize()
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`.SearchDocumentsResponse.Builder
clone()
SearchDocumentsResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
HistogramQueryResult
getHistogramQueryResults(int index)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].HistogramQueryResult.Builder
getHistogramQueryResultsBuilder(int index)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].List<HistogramQueryResult.Builder>
getHistogramQueryResultsBuilderList()
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].SearchDocumentsResponse.MatchingDocument.Builder
getMatchingDocumentsBuilder(int index)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].List<SearchDocumentsResponse.MatchingDocument.Builder>
getMatchingDocumentsBuilderList()
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.ResponseMetadata.Builder
getMetadataBuilder()
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.String
getQuestionAnswer()
Experimental.com.google.protobuf.ByteString
getQuestionAnswerBytes()
Experimental.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`.boolean
hasMetadata()
Additional information for the API invocation, such as the request tracking id.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SearchDocumentsResponse.Builder
mergeFrom(SearchDocumentsResponse other)
SearchDocumentsResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SearchDocumentsResponse.Builder
mergeFrom(com.google.protobuf.Message other)
SearchDocumentsResponse.Builder
mergeMetadata(ResponseMetadata value)
Additional information for the API invocation, such as the request tracking id.SearchDocumentsResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SearchDocumentsResponse.Builder
removeHistogramQueryResults(int index)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].SearchDocumentsResponse.Builder
removeMatchingDocuments(int index)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SearchDocumentsResponse.Builder
setHistogramQueryResults(int index, HistogramQueryResult value)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].SearchDocumentsResponse.Builder
setHistogramQueryResults(int index, HistogramQueryResult.Builder builderForValue)
The histogram results that match with the specified [SearchDocumentsRequest.histogram_queries][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.histogram_queries].SearchDocumentsResponse.Builder
setMatchingDocuments(int index, SearchDocumentsResponse.MatchingDocument value)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.Builder
setMatchingDocuments(int index, SearchDocumentsResponse.MatchingDocument.Builder builderForValue)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].SearchDocumentsResponse.Builder
setMetadata(ResponseMetadata value)
Additional information for the API invocation, such as the request tracking id.SearchDocumentsResponse.Builder
setMetadata(ResponseMetadata.Builder builderForValue)
Additional information for the API invocation, such as the request tracking id.SearchDocumentsResponse.Builder
setNextPageToken(String value)
The token that specifies the starting position of the next page of results.SearchDocumentsResponse.Builder
setNextPageTokenBytes(com.google.protobuf.ByteString value)
The token that specifies the starting position of the next page of results.SearchDocumentsResponse.Builder
setQuestionAnswer(String value)
Experimental.SearchDocumentsResponse.Builder
setQuestionAnswerBytes(com.google.protobuf.ByteString value)
Experimental.SearchDocumentsResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SearchDocumentsResponse.Builder
setTotalSize(int value)
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`.SearchDocumentsResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<SearchDocumentsResponse.Builder>
-
clear
public SearchDocumentsResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.Builder>
-
getDefaultInstanceForType
public SearchDocumentsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SearchDocumentsResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SearchDocumentsResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SearchDocumentsResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.Builder>
-
setField
public SearchDocumentsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.Builder>
-
clearField
public SearchDocumentsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.Builder>
-
clearOneof
public SearchDocumentsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.Builder>
-
setRepeatedField
public SearchDocumentsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.Builder>
-
addRepeatedField
public SearchDocumentsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.Builder>
-
mergeFrom
public SearchDocumentsResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SearchDocumentsResponse.Builder>
-
mergeFrom
public SearchDocumentsResponse.Builder mergeFrom(SearchDocumentsResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.Builder>
-
mergeFrom
public SearchDocumentsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SearchDocumentsResponse.Builder>
- Throws:
IOException
-
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
-
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
-
setMatchingDocuments
public SearchDocumentsResponse.Builder setMatchingDocuments(int index, SearchDocumentsResponse.MatchingDocument value)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
-
setMatchingDocuments
public SearchDocumentsResponse.Builder setMatchingDocuments(int index, SearchDocumentsResponse.MatchingDocument.Builder builderForValue)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
-
addMatchingDocuments
public SearchDocumentsResponse.Builder addMatchingDocuments(SearchDocumentsResponse.MatchingDocument value)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
-
addMatchingDocuments
public SearchDocumentsResponse.Builder addMatchingDocuments(int index, SearchDocumentsResponse.MatchingDocument value)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
-
addMatchingDocuments
public SearchDocumentsResponse.Builder addMatchingDocuments(SearchDocumentsResponse.MatchingDocument.Builder builderForValue)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
-
addMatchingDocuments
public SearchDocumentsResponse.Builder addMatchingDocuments(int index, SearchDocumentsResponse.MatchingDocument.Builder builderForValue)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
-
addAllMatchingDocuments
public SearchDocumentsResponse.Builder addAllMatchingDocuments(Iterable<? extends SearchDocumentsResponse.MatchingDocument> values)
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
-
clearMatchingDocuments
public SearchDocumentsResponse.Builder clearMatchingDocuments()
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
-
removeMatchingDocuments
public SearchDocumentsResponse.Builder removeMatchingDocuments(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;
-
getMatchingDocumentsBuilder
public SearchDocumentsResponse.MatchingDocument.Builder getMatchingDocumentsBuilder(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;
-
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
-
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
-
addMatchingDocumentsBuilder
public SearchDocumentsResponse.MatchingDocument.Builder addMatchingDocumentsBuilder()
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
-
addMatchingDocumentsBuilder
public SearchDocumentsResponse.MatchingDocument.Builder addMatchingDocumentsBuilder(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;
-
getMatchingDocumentsBuilderList
public List<SearchDocumentsResponse.MatchingDocument.Builder> getMatchingDocumentsBuilderList()
The document entities that match the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest].
repeated .google.cloud.contentwarehouse.v1.SearchDocumentsResponse.MatchingDocument matching_documents = 1;
-
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.
-
setNextPageToken
public SearchDocumentsResponse.Builder setNextPageToken(String value)
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;
- Parameters:
value
- The nextPageToken to set.- Returns:
- This builder for chaining.
-
clearNextPageToken
public SearchDocumentsResponse.Builder clearNextPageToken()
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;
- Returns:
- This builder for chaining.
-
setNextPageTokenBytes
public SearchDocumentsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
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.
-
setTotalSize
public SearchDocumentsResponse.Builder setTotalSize(int value)
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;
- Parameters:
value
- The totalSize to set.- Returns:
- This builder for chaining.
-
clearTotalSize
public SearchDocumentsResponse.Builder clearTotalSize()
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;
- Returns:
- This builder for chaining.
-
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.
-
setMetadata
public SearchDocumentsResponse.Builder setMetadata(ResponseMetadata value)
Additional information for the API invocation, such as the request tracking id.
.google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
-
setMetadata
public SearchDocumentsResponse.Builder setMetadata(ResponseMetadata.Builder builderForValue)
Additional information for the API invocation, such as the request tracking id.
.google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
-
mergeMetadata
public SearchDocumentsResponse.Builder mergeMetadata(ResponseMetadata value)
Additional information for the API invocation, such as the request tracking id.
.google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
-
clearMetadata
public SearchDocumentsResponse.Builder clearMetadata()
Additional information for the API invocation, such as the request tracking id.
.google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
-
getMetadataBuilder
public ResponseMetadata.Builder getMetadataBuilder()
Additional information for the API invocation, such as the request tracking id.
.google.cloud.contentwarehouse.v1.ResponseMetadata metadata = 4;
-
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
-
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
-
setHistogramQueryResults
public SearchDocumentsResponse.Builder setHistogramQueryResults(int index, HistogramQueryResult value)
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;
-
setHistogramQueryResults
public SearchDocumentsResponse.Builder setHistogramQueryResults(int index, HistogramQueryResult.Builder builderForValue)
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;
-
addHistogramQueryResults
public SearchDocumentsResponse.Builder addHistogramQueryResults(HistogramQueryResult value)
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;
-
addHistogramQueryResults
public SearchDocumentsResponse.Builder addHistogramQueryResults(int index, HistogramQueryResult value)
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;
-
addHistogramQueryResults
public SearchDocumentsResponse.Builder addHistogramQueryResults(HistogramQueryResult.Builder builderForValue)
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;
-
addHistogramQueryResults
public SearchDocumentsResponse.Builder addHistogramQueryResults(int index, HistogramQueryResult.Builder builderForValue)
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;
-
addAllHistogramQueryResults
public SearchDocumentsResponse.Builder addAllHistogramQueryResults(Iterable<? extends HistogramQueryResult> values)
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;
-
clearHistogramQueryResults
public SearchDocumentsResponse.Builder clearHistogramQueryResults()
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;
-
removeHistogramQueryResults
public SearchDocumentsResponse.Builder removeHistogramQueryResults(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;
-
getHistogramQueryResultsBuilder
public HistogramQueryResult.Builder getHistogramQueryResultsBuilder(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;
-
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
-
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
-
addHistogramQueryResultsBuilder
public HistogramQueryResult.Builder addHistogramQueryResultsBuilder()
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;
-
addHistogramQueryResultsBuilder
public HistogramQueryResult.Builder addHistogramQueryResultsBuilder(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;
-
getHistogramQueryResultsBuilderList
public List<HistogramQueryResult.Builder> getHistogramQueryResultsBuilderList()
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;
-
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.
-
setQuestionAnswer
public SearchDocumentsResponse.Builder setQuestionAnswer(String value)
Experimental. Question answer from the query against the document.
string question_answer = 7;
- Parameters:
value
- The questionAnswer to set.- Returns:
- This builder for chaining.
-
clearQuestionAnswer
public SearchDocumentsResponse.Builder clearQuestionAnswer()
Experimental. Question answer from the query against the document.
string question_answer = 7;
- Returns:
- This builder for chaining.
-
setQuestionAnswerBytes
public SearchDocumentsResponse.Builder setQuestionAnswerBytes(com.google.protobuf.ByteString value)
Experimental. Question answer from the query against the document.
string question_answer = 7;
- Parameters:
value
- The bytes for questionAnswer to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SearchDocumentsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.Builder>
-
mergeUnknownFields
public final SearchDocumentsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsResponse.Builder>
-
-