Class SearchDocumentsRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsRequest.Builder>
-
- com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.Builder
-
- All Implemented Interfaces:
SearchDocumentsRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SearchDocumentsRequest
public static final class SearchDocumentsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsRequest.Builder> implements SearchDocumentsRequestOrBuilder
Request message for DocumentService.SearchDocuments.
Protobuf typegoogle.cloud.contentwarehouse.v1.SearchDocumentsRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchDocumentsRequest.Builder
addAllHistogramQueries(Iterable<? extends HistogramQuery> values)
An expression specifying a histogram request against matching documents.SearchDocumentsRequest.Builder
addHistogramQueries(int index, HistogramQuery value)
An expression specifying a histogram request against matching documents.SearchDocumentsRequest.Builder
addHistogramQueries(int index, HistogramQuery.Builder builderForValue)
An expression specifying a histogram request against matching documents.SearchDocumentsRequest.Builder
addHistogramQueries(HistogramQuery value)
An expression specifying a histogram request against matching documents.SearchDocumentsRequest.Builder
addHistogramQueries(HistogramQuery.Builder builderForValue)
An expression specifying a histogram request against matching documents.HistogramQuery.Builder
addHistogramQueriesBuilder()
An expression specifying a histogram request against matching documents.HistogramQuery.Builder
addHistogramQueriesBuilder(int index)
An expression specifying a histogram request against matching documents.SearchDocumentsRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SearchDocumentsRequest
build()
SearchDocumentsRequest
buildPartial()
SearchDocumentsRequest.Builder
clear()
SearchDocumentsRequest.Builder
clearDocumentQuery()
Query used to search against documents (keyword, filters, etc.).SearchDocumentsRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SearchDocumentsRequest.Builder
clearHistogramQueries()
An expression specifying a histogram request against matching documents.SearchDocumentsRequest.Builder
clearOffset()
An integer that specifies the current offset (that is, starting result location, amongst the documents deemed by the API as relevant) in search results.SearchDocumentsRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SearchDocumentsRequest.Builder
clearOrderBy()
The criteria determining how search results are sorted.SearchDocumentsRequest.Builder
clearPageSize()
A limit on the number of documents returned in the search results.SearchDocumentsRequest.Builder
clearPageToken()
The token specifying the current offset within search results.SearchDocumentsRequest.Builder
clearParent()
Required.SearchDocumentsRequest.Builder
clearQaSizeLimit()
Experimental, do not use.SearchDocumentsRequest.Builder
clearRequestMetadata()
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.SearchDocumentsRequest.Builder
clearRequireTotalSize()
Controls if the search document request requires the return of a total size of matched documents.SearchDocumentsRequest.Builder
clearTotalResultSize()
Controls if the search document request requires the return of a total size of matched documents.SearchDocumentsRequest.Builder
clone()
SearchDocumentsRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
DocumentQuery
getDocumentQuery()
Query used to search against documents (keyword, filters, etc.).DocumentQuery.Builder
getDocumentQueryBuilder()
Query used to search against documents (keyword, filters, etc.).DocumentQueryOrBuilder
getDocumentQueryOrBuilder()
Query used to search against documents (keyword, filters, etc.).HistogramQuery
getHistogramQueries(int index)
An expression specifying a histogram request against matching documents.HistogramQuery.Builder
getHistogramQueriesBuilder(int index)
An expression specifying a histogram request against matching documents.List<HistogramQuery.Builder>
getHistogramQueriesBuilderList()
An expression specifying a histogram request against matching documents.int
getHistogramQueriesCount()
An expression specifying a histogram request against matching documents.List<HistogramQuery>
getHistogramQueriesList()
An expression specifying a histogram request against matching documents.HistogramQueryOrBuilder
getHistogramQueriesOrBuilder(int index)
An expression specifying a histogram request against matching documents.List<? extends HistogramQueryOrBuilder>
getHistogramQueriesOrBuilderList()
An expression specifying a histogram request against matching documents.int
getOffset()
An integer that specifies the current offset (that is, starting result location, amongst the documents deemed by the API as relevant) in search results.String
getOrderBy()
The criteria determining how search results are sorted.com.google.protobuf.ByteString
getOrderByBytes()
The criteria determining how search results are sorted.int
getPageSize()
A limit on the number of documents returned in the search results.String
getPageToken()
The token specifying the current offset within search results.com.google.protobuf.ByteString
getPageTokenBytes()
The token specifying the current offset within search results.String
getParent()
Required.com.google.protobuf.ByteString
getParentBytes()
Required.int
getQaSizeLimit()
Experimental, do not use.RequestMetadata
getRequestMetadata()
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.RequestMetadata.Builder
getRequestMetadataBuilder()
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.RequestMetadataOrBuilder
getRequestMetadataOrBuilder()
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.boolean
getRequireTotalSize()
Controls if the search document request requires the return of a total size of matched documents.SearchDocumentsRequest.TotalResultSize
getTotalResultSize()
Controls if the search document request requires the return of a total size of matched documents.int
getTotalResultSizeValue()
Controls if the search document request requires the return of a total size of matched documents.boolean
hasDocumentQuery()
Query used to search against documents (keyword, filters, etc.).boolean
hasRequestMetadata()
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SearchDocumentsRequest.Builder
mergeDocumentQuery(DocumentQuery value)
Query used to search against documents (keyword, filters, etc.).SearchDocumentsRequest.Builder
mergeFrom(SearchDocumentsRequest other)
SearchDocumentsRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SearchDocumentsRequest.Builder
mergeFrom(com.google.protobuf.Message other)
SearchDocumentsRequest.Builder
mergeRequestMetadata(RequestMetadata value)
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.SearchDocumentsRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SearchDocumentsRequest.Builder
removeHistogramQueries(int index)
An expression specifying a histogram request against matching documents.SearchDocumentsRequest.Builder
setDocumentQuery(DocumentQuery value)
Query used to search against documents (keyword, filters, etc.).SearchDocumentsRequest.Builder
setDocumentQuery(DocumentQuery.Builder builderForValue)
Query used to search against documents (keyword, filters, etc.).SearchDocumentsRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SearchDocumentsRequest.Builder
setHistogramQueries(int index, HistogramQuery value)
An expression specifying a histogram request against matching documents.SearchDocumentsRequest.Builder
setHistogramQueries(int index, HistogramQuery.Builder builderForValue)
An expression specifying a histogram request against matching documents.SearchDocumentsRequest.Builder
setOffset(int value)
An integer that specifies the current offset (that is, starting result location, amongst the documents deemed by the API as relevant) in search results.SearchDocumentsRequest.Builder
setOrderBy(String value)
The criteria determining how search results are sorted.SearchDocumentsRequest.Builder
setOrderByBytes(com.google.protobuf.ByteString value)
The criteria determining how search results are sorted.SearchDocumentsRequest.Builder
setPageSize(int value)
A limit on the number of documents returned in the search results.SearchDocumentsRequest.Builder
setPageToken(String value)
The token specifying the current offset within search results.SearchDocumentsRequest.Builder
setPageTokenBytes(com.google.protobuf.ByteString value)
The token specifying the current offset within search results.SearchDocumentsRequest.Builder
setParent(String value)
Required.SearchDocumentsRequest.Builder
setParentBytes(com.google.protobuf.ByteString value)
Required.SearchDocumentsRequest.Builder
setQaSizeLimit(int value)
Experimental, do not use.SearchDocumentsRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SearchDocumentsRequest.Builder
setRequestMetadata(RequestMetadata value)
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.SearchDocumentsRequest.Builder
setRequestMetadata(RequestMetadata.Builder builderForValue)
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.SearchDocumentsRequest.Builder
setRequireTotalSize(boolean value)
Controls if the search document request requires the return of a total size of matched documents.SearchDocumentsRequest.Builder
setTotalResultSize(SearchDocumentsRequest.TotalResultSize value)
Controls if the search document request requires the return of a total size of matched documents.SearchDocumentsRequest.Builder
setTotalResultSizeValue(int value)
Controls if the search document request requires the return of a total size of matched documents.SearchDocumentsRequest.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<SearchDocumentsRequest.Builder>
-
clear
public SearchDocumentsRequest.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<SearchDocumentsRequest.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<SearchDocumentsRequest.Builder>
-
getDefaultInstanceForType
public SearchDocumentsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SearchDocumentsRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SearchDocumentsRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SearchDocumentsRequest.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<SearchDocumentsRequest.Builder>
-
setField
public SearchDocumentsRequest.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<SearchDocumentsRequest.Builder>
-
clearField
public SearchDocumentsRequest.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<SearchDocumentsRequest.Builder>
-
clearOneof
public SearchDocumentsRequest.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<SearchDocumentsRequest.Builder>
-
setRepeatedField
public SearchDocumentsRequest.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<SearchDocumentsRequest.Builder>
-
addRepeatedField
public SearchDocumentsRequest.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<SearchDocumentsRequest.Builder>
-
mergeFrom
public SearchDocumentsRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SearchDocumentsRequest.Builder>
-
mergeFrom
public SearchDocumentsRequest.Builder mergeFrom(SearchDocumentsRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsRequest.Builder>
-
mergeFrom
public SearchDocumentsRequest.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<SearchDocumentsRequest.Builder>
- Throws:
IOException
-
getParent
public String getParent()
Required. The parent, which owns this collection of documents. Format: projects/{project_number}/locations/{location}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getParent
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Required. The parent, which owns this collection of documents. Format: projects/{project_number}/locations/{location}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Specified by:
getParentBytes
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The bytes for parent.
-
setParent
public SearchDocumentsRequest.Builder setParent(String value)
Required. The parent, which owns this collection of documents. Format: projects/{project_number}/locations/{location}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public SearchDocumentsRequest.Builder clearParent()
Required. The parent, which owns this collection of documents. Format: projects/{project_number}/locations/{location}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setParentBytes
public SearchDocumentsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
Required. The parent, which owns this collection of documents. Format: projects/{project_number}/locations/{location}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasRequestMetadata
public boolean hasRequestMetadata()
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
- Specified by:
hasRequestMetadata
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- Whether the requestMetadata field is set.
-
getRequestMetadata
public RequestMetadata getRequestMetadata()
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
- Specified by:
getRequestMetadata
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The requestMetadata.
-
setRequestMetadata
public SearchDocumentsRequest.Builder setRequestMetadata(RequestMetadata value)
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
-
setRequestMetadata
public SearchDocumentsRequest.Builder setRequestMetadata(RequestMetadata.Builder builderForValue)
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
-
mergeRequestMetadata
public SearchDocumentsRequest.Builder mergeRequestMetadata(RequestMetadata value)
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
-
clearRequestMetadata
public SearchDocumentsRequest.Builder clearRequestMetadata()
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
-
getRequestMetadataBuilder
public RequestMetadata.Builder getRequestMetadataBuilder()
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
-
getRequestMetadataOrBuilder
public RequestMetadataOrBuilder getRequestMetadataOrBuilder()
The meta information collected about the end user, used to enforce access control and improve the search quality of the service.
.google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
- Specified by:
getRequestMetadataOrBuilder
in interfaceSearchDocumentsRequestOrBuilder
-
hasDocumentQuery
public boolean hasDocumentQuery()
Query used to search against documents (keyword, filters, etc.).
.google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4;
- Specified by:
hasDocumentQuery
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- Whether the documentQuery field is set.
-
getDocumentQuery
public DocumentQuery getDocumentQuery()
Query used to search against documents (keyword, filters, etc.).
.google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4;
- Specified by:
getDocumentQuery
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The documentQuery.
-
setDocumentQuery
public SearchDocumentsRequest.Builder setDocumentQuery(DocumentQuery value)
Query used to search against documents (keyword, filters, etc.).
.google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4;
-
setDocumentQuery
public SearchDocumentsRequest.Builder setDocumentQuery(DocumentQuery.Builder builderForValue)
Query used to search against documents (keyword, filters, etc.).
.google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4;
-
mergeDocumentQuery
public SearchDocumentsRequest.Builder mergeDocumentQuery(DocumentQuery value)
Query used to search against documents (keyword, filters, etc.).
.google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4;
-
clearDocumentQuery
public SearchDocumentsRequest.Builder clearDocumentQuery()
Query used to search against documents (keyword, filters, etc.).
.google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4;
-
getDocumentQueryBuilder
public DocumentQuery.Builder getDocumentQueryBuilder()
Query used to search against documents (keyword, filters, etc.).
.google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4;
-
getDocumentQueryOrBuilder
public DocumentQueryOrBuilder getDocumentQueryOrBuilder()
Query used to search against documents (keyword, filters, etc.).
.google.cloud.contentwarehouse.v1.DocumentQuery document_query = 4;
- Specified by:
getDocumentQueryOrBuilder
in interfaceSearchDocumentsRequestOrBuilder
-
getOffset
public int getOffset()
An integer that specifies the current offset (that is, starting result location, amongst the documents deemed by the API as relevant) in search results. This field is only considered if [page_token][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.page_token] is unset. The maximum allowed value is 5000. Otherwise an error is thrown. For example, 0 means to return results starting from the first matching document, and 10 means to return from the 11th document. This can be used for pagination, (for example, pageSize = 10 and offset = 10 means to return from the second page).
int32 offset = 5;
- Specified by:
getOffset
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The offset.
-
setOffset
public SearchDocumentsRequest.Builder setOffset(int value)
An integer that specifies the current offset (that is, starting result location, amongst the documents deemed by the API as relevant) in search results. This field is only considered if [page_token][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.page_token] is unset. The maximum allowed value is 5000. Otherwise an error is thrown. For example, 0 means to return results starting from the first matching document, and 10 means to return from the 11th document. This can be used for pagination, (for example, pageSize = 10 and offset = 10 means to return from the second page).
int32 offset = 5;
- Parameters:
value
- The offset to set.- Returns:
- This builder for chaining.
-
clearOffset
public SearchDocumentsRequest.Builder clearOffset()
An integer that specifies the current offset (that is, starting result location, amongst the documents deemed by the API as relevant) in search results. This field is only considered if [page_token][google.cloud.contentwarehouse.v1.SearchDocumentsRequest.page_token] is unset. The maximum allowed value is 5000. Otherwise an error is thrown. For example, 0 means to return results starting from the first matching document, and 10 means to return from the 11th document. This can be used for pagination, (for example, pageSize = 10 and offset = 10 means to return from the second page).
int32 offset = 5;
- Returns:
- This builder for chaining.
-
getPageSize
public int getPageSize()
A limit on the number of documents returned in the search results. Increasing this value above the default value of 10 can increase search response time. The value can be between 1 and 100.
int32 page_size = 6;
- Specified by:
getPageSize
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The pageSize.
-
setPageSize
public SearchDocumentsRequest.Builder setPageSize(int value)
A limit on the number of documents returned in the search results. Increasing this value above the default value of 10 can increase search response time. The value can be between 1 and 100.
int32 page_size = 6;
- Parameters:
value
- The pageSize to set.- Returns:
- This builder for chaining.
-
clearPageSize
public SearchDocumentsRequest.Builder clearPageSize()
A limit on the number of documents returned in the search results. Increasing this value above the default value of 10 can increase search response time. The value can be between 1 and 100.
int32 page_size = 6;
- Returns:
- This builder for chaining.
-
getPageToken
public String getPageToken()
The token specifying the current offset within search results. See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how to obtain the next set of query results.
string page_token = 7;
- Specified by:
getPageToken
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The pageToken.
-
getPageTokenBytes
public com.google.protobuf.ByteString getPageTokenBytes()
The token specifying the current offset within search results. See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how to obtain the next set of query results.
string page_token = 7;
- Specified by:
getPageTokenBytes
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The bytes for pageToken.
-
setPageToken
public SearchDocumentsRequest.Builder setPageToken(String value)
The token specifying the current offset within search results. See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how to obtain the next set of query results.
string page_token = 7;
- Parameters:
value
- The pageToken to set.- Returns:
- This builder for chaining.
-
clearPageToken
public SearchDocumentsRequest.Builder clearPageToken()
The token specifying the current offset within search results. See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how to obtain the next set of query results.
string page_token = 7;
- Returns:
- This builder for chaining.
-
setPageTokenBytes
public SearchDocumentsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
The token specifying the current offset within search results. See [SearchDocumentsResponse.next_page_token][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.next_page_token] for an explanation of how to obtain the next set of query results.
string page_token = 7;
- Parameters:
value
- The bytes for pageToken to set.- Returns:
- This builder for chaining.
-
getOrderBy
public String getOrderBy()
The criteria determining how search results are sorted. For non-empty query, default is `"relevance desc"`. For empty query, default is `"upload_date desc"`. Supported options are: * `"relevance desc"`: By relevance descending, as determined by the API algorithms. * `"upload_date desc"`: By upload date descending. * `"upload_date"`: By upload date ascending. * `"update_date desc"`: By last updated date descending. * `"update_date"`: By last updated date ascending. * `"retrieval_importance desc"`: By retrieval importance of properties descending. This feature is still under development, please do not use unless otherwise instructed to do so.
string order_by = 8;
- Specified by:
getOrderBy
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The orderBy.
-
getOrderByBytes
public com.google.protobuf.ByteString getOrderByBytes()
The criteria determining how search results are sorted. For non-empty query, default is `"relevance desc"`. For empty query, default is `"upload_date desc"`. Supported options are: * `"relevance desc"`: By relevance descending, as determined by the API algorithms. * `"upload_date desc"`: By upload date descending. * `"upload_date"`: By upload date ascending. * `"update_date desc"`: By last updated date descending. * `"update_date"`: By last updated date ascending. * `"retrieval_importance desc"`: By retrieval importance of properties descending. This feature is still under development, please do not use unless otherwise instructed to do so.
string order_by = 8;
- Specified by:
getOrderByBytes
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The bytes for orderBy.
-
setOrderBy
public SearchDocumentsRequest.Builder setOrderBy(String value)
The criteria determining how search results are sorted. For non-empty query, default is `"relevance desc"`. For empty query, default is `"upload_date desc"`. Supported options are: * `"relevance desc"`: By relevance descending, as determined by the API algorithms. * `"upload_date desc"`: By upload date descending. * `"upload_date"`: By upload date ascending. * `"update_date desc"`: By last updated date descending. * `"update_date"`: By last updated date ascending. * `"retrieval_importance desc"`: By retrieval importance of properties descending. This feature is still under development, please do not use unless otherwise instructed to do so.
string order_by = 8;
- Parameters:
value
- The orderBy to set.- Returns:
- This builder for chaining.
-
clearOrderBy
public SearchDocumentsRequest.Builder clearOrderBy()
The criteria determining how search results are sorted. For non-empty query, default is `"relevance desc"`. For empty query, default is `"upload_date desc"`. Supported options are: * `"relevance desc"`: By relevance descending, as determined by the API algorithms. * `"upload_date desc"`: By upload date descending. * `"upload_date"`: By upload date ascending. * `"update_date desc"`: By last updated date descending. * `"update_date"`: By last updated date ascending. * `"retrieval_importance desc"`: By retrieval importance of properties descending. This feature is still under development, please do not use unless otherwise instructed to do so.
string order_by = 8;
- Returns:
- This builder for chaining.
-
setOrderByBytes
public SearchDocumentsRequest.Builder setOrderByBytes(com.google.protobuf.ByteString value)
The criteria determining how search results are sorted. For non-empty query, default is `"relevance desc"`. For empty query, default is `"upload_date desc"`. Supported options are: * `"relevance desc"`: By relevance descending, as determined by the API algorithms. * `"upload_date desc"`: By upload date descending. * `"upload_date"`: By upload date ascending. * `"update_date desc"`: By last updated date descending. * `"update_date"`: By last updated date ascending. * `"retrieval_importance desc"`: By retrieval importance of properties descending. This feature is still under development, please do not use unless otherwise instructed to do so.
string order_by = 8;
- Parameters:
value
- The bytes for orderBy to set.- Returns:
- This builder for chaining.
-
getHistogramQueriesList
public List<HistogramQuery> getHistogramQueriesList()
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
- Specified by:
getHistogramQueriesList
in interfaceSearchDocumentsRequestOrBuilder
-
getHistogramQueriesCount
public int getHistogramQueriesCount()
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
- Specified by:
getHistogramQueriesCount
in interfaceSearchDocumentsRequestOrBuilder
-
getHistogramQueries
public HistogramQuery getHistogramQueries(int index)
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
- Specified by:
getHistogramQueries
in interfaceSearchDocumentsRequestOrBuilder
-
setHistogramQueries
public SearchDocumentsRequest.Builder setHistogramQueries(int index, HistogramQuery value)
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
-
setHistogramQueries
public SearchDocumentsRequest.Builder setHistogramQueries(int index, HistogramQuery.Builder builderForValue)
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
-
addHistogramQueries
public SearchDocumentsRequest.Builder addHistogramQueries(HistogramQuery value)
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
-
addHistogramQueries
public SearchDocumentsRequest.Builder addHistogramQueries(int index, HistogramQuery value)
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
-
addHistogramQueries
public SearchDocumentsRequest.Builder addHistogramQueries(HistogramQuery.Builder builderForValue)
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
-
addHistogramQueries
public SearchDocumentsRequest.Builder addHistogramQueries(int index, HistogramQuery.Builder builderForValue)
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
-
addAllHistogramQueries
public SearchDocumentsRequest.Builder addAllHistogramQueries(Iterable<? extends HistogramQuery> values)
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
-
clearHistogramQueries
public SearchDocumentsRequest.Builder clearHistogramQueries()
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
-
removeHistogramQueries
public SearchDocumentsRequest.Builder removeHistogramQueries(int index)
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
-
getHistogramQueriesBuilder
public HistogramQuery.Builder getHistogramQueriesBuilder(int index)
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
-
getHistogramQueriesOrBuilder
public HistogramQueryOrBuilder getHistogramQueriesOrBuilder(int index)
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
- Specified by:
getHistogramQueriesOrBuilder
in interfaceSearchDocumentsRequestOrBuilder
-
getHistogramQueriesOrBuilderList
public List<? extends HistogramQueryOrBuilder> getHistogramQueriesOrBuilderList()
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
- Specified by:
getHistogramQueriesOrBuilderList
in interfaceSearchDocumentsRequestOrBuilder
-
addHistogramQueriesBuilder
public HistogramQuery.Builder addHistogramQueriesBuilder()
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
-
addHistogramQueriesBuilder
public HistogramQuery.Builder addHistogramQueriesBuilder(int index)
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
-
getHistogramQueriesBuilderList
public List<HistogramQuery.Builder> getHistogramQueriesBuilderList()
An expression specifying a histogram request against matching documents. Expression syntax is an aggregation function call with histogram facets and other options. The following aggregation functions are supported: * `count(string_histogram_facet)`: Count the number of matching entities for each distinct attribute value. Data types: * Histogram facet (aka filterable properties): Facet names with format <schema id>.<facet>. Facets will have the format of: `[a-zA-Z][a-zA-Z0-9_:/-.]`. If the facet is a child facet, then the parent hierarchy needs to be specified separated by dots in the prefix after the schema id. Thus, the format for a multi- level facet is: <schema id>.<parent facet name>. <child facet name>. Example: schema123.root_parent_facet.middle_facet.child_facet * DocumentSchemaId: (with no schema id prefix) to get histograms for each document type (returns the schema id path, e.g. projects/12345/locations/us-west/documentSchemas/abc123). Example expression: * Document type counts: count('DocumentSchemaId') * For schema id, abc123, get the counts for MORTGAGE_TYPE: count('abc123.MORTGAGE_TYPE')
repeated .google.cloud.contentwarehouse.v1.HistogramQuery histogram_queries = 9;
-
getRequireTotalSize
public boolean getRequireTotalSize()
Controls if the search document request requires the return of a total size of matched documents. See [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size]. Enabling this flag may adversely impact performance. Hint: If this is used with pagination, set this flag on the initial query but set this to false on subsequent page calls (keep the total count locally). Defaults to false.
bool require_total_size = 10;
- Specified by:
getRequireTotalSize
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The requireTotalSize.
-
setRequireTotalSize
public SearchDocumentsRequest.Builder setRequireTotalSize(boolean value)
Controls if the search document request requires the return of a total size of matched documents. See [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size]. Enabling this flag may adversely impact performance. Hint: If this is used with pagination, set this flag on the initial query but set this to false on subsequent page calls (keep the total count locally). Defaults to false.
bool require_total_size = 10;
- Parameters:
value
- The requireTotalSize to set.- Returns:
- This builder for chaining.
-
clearRequireTotalSize
public SearchDocumentsRequest.Builder clearRequireTotalSize()
Controls if the search document request requires the return of a total size of matched documents. See [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size]. Enabling this flag may adversely impact performance. Hint: If this is used with pagination, set this flag on the initial query but set this to false on subsequent page calls (keep the total count locally). Defaults to false.
bool require_total_size = 10;
- Returns:
- This builder for chaining.
-
getTotalResultSizeValue
public int getTotalResultSizeValue()
Controls if the search document request requires the return of a total size of matched documents. See [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12;
- Specified by:
getTotalResultSizeValue
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The enum numeric value on the wire for totalResultSize.
-
setTotalResultSizeValue
public SearchDocumentsRequest.Builder setTotalResultSizeValue(int value)
Controls if the search document request requires the return of a total size of matched documents. See [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12;
- Parameters:
value
- The enum numeric value on the wire for totalResultSize to set.- Returns:
- This builder for chaining.
-
getTotalResultSize
public SearchDocumentsRequest.TotalResultSize getTotalResultSize()
Controls if the search document request requires the return of a total size of matched documents. See [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12;
- Specified by:
getTotalResultSize
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The totalResultSize.
-
setTotalResultSize
public SearchDocumentsRequest.Builder setTotalResultSize(SearchDocumentsRequest.TotalResultSize value)
Controls if the search document request requires the return of a total size of matched documents. See [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12;
- Parameters:
value
- The totalResultSize to set.- Returns:
- This builder for chaining.
-
clearTotalResultSize
public SearchDocumentsRequest.Builder clearTotalResultSize()
Controls if the search document request requires the return of a total size of matched documents. See [SearchDocumentsResponse.total_size][google.cloud.contentwarehouse.v1.SearchDocumentsResponse.total_size].
.google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize total_result_size = 12;
- Returns:
- This builder for chaining.
-
getQaSizeLimit
public int getQaSizeLimit()
Experimental, do not use. The limit on the number of documents returned for the question-answering feature. To enable the question-answering feature, set [DocumentQuery].[is_nl_query][] to true.
int32 qa_size_limit = 11;
- Specified by:
getQaSizeLimit
in interfaceSearchDocumentsRequestOrBuilder
- Returns:
- The qaSizeLimit.
-
setQaSizeLimit
public SearchDocumentsRequest.Builder setQaSizeLimit(int value)
Experimental, do not use. The limit on the number of documents returned for the question-answering feature. To enable the question-answering feature, set [DocumentQuery].[is_nl_query][] to true.
int32 qa_size_limit = 11;
- Parameters:
value
- The qaSizeLimit to set.- Returns:
- This builder for chaining.
-
clearQaSizeLimit
public SearchDocumentsRequest.Builder clearQaSizeLimit()
Experimental, do not use. The limit on the number of documents returned for the question-answering feature. To enable the question-answering feature, set [DocumentQuery].[is_nl_query][] to true.
int32 qa_size_limit = 11;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final SearchDocumentsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsRequest.Builder>
-
mergeUnknownFields
public final SearchDocumentsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SearchDocumentsRequest.Builder>
-
-