Class SearchDocumentsRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.contentwarehouse.v1.SearchDocumentsRequest
-
- All Implemented Interfaces:
SearchDocumentsRequestOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class SearchDocumentsRequest extends com.google.protobuf.GeneratedMessageV3 implements SearchDocumentsRequestOrBuilder
Request message for DocumentService.SearchDocuments.
Protobuf typegoogle.cloud.contentwarehouse.v1.SearchDocumentsRequest
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SearchDocumentsRequest.Builder
Request message for DocumentService.SearchDocuments.static class
SearchDocumentsRequest.TotalResultSize
The total number of matching documents.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
DOCUMENT_QUERY_FIELD_NUMBER
static int
HISTOGRAM_QUERIES_FIELD_NUMBER
static int
OFFSET_FIELD_NUMBER
static int
ORDER_BY_FIELD_NUMBER
static int
PAGE_SIZE_FIELD_NUMBER
static int
PAGE_TOKEN_FIELD_NUMBER
static int
PARENT_FIELD_NUMBER
static int
QA_SIZE_LIMIT_FIELD_NUMBER
static int
REQUEST_METADATA_FIELD_NUMBER
static int
REQUIRE_TOTAL_SIZE_FIELD_NUMBER
static int
TOTAL_RESULT_SIZE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static SearchDocumentsRequest
getDefaultInstance()
SearchDocumentsRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
DocumentQuery
getDocumentQuery()
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.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.com.google.protobuf.Parser<SearchDocumentsRequest>
getParserForType()
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.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.int
getSerializedSize()
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.).int
hashCode()
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()
static SearchDocumentsRequest.Builder
newBuilder()
static SearchDocumentsRequest.Builder
newBuilder(SearchDocumentsRequest prototype)
SearchDocumentsRequest.Builder
newBuilderForType()
protected SearchDocumentsRequest.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static SearchDocumentsRequest
parseDelimitedFrom(InputStream input)
static SearchDocumentsRequest
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchDocumentsRequest
parseFrom(byte[] data)
static SearchDocumentsRequest
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchDocumentsRequest
parseFrom(com.google.protobuf.ByteString data)
static SearchDocumentsRequest
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchDocumentsRequest
parseFrom(com.google.protobuf.CodedInputStream input)
static SearchDocumentsRequest
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchDocumentsRequest
parseFrom(InputStream input)
static SearchDocumentsRequest
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SearchDocumentsRequest
parseFrom(ByteBuffer data)
static SearchDocumentsRequest
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<SearchDocumentsRequest>
parser()
SearchDocumentsRequest.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_METADATA_FIELD_NUMBER
public static final int REQUEST_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOCUMENT_QUERY_FIELD_NUMBER
public static final int DOCUMENT_QUERY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OFFSET_FIELD_NUMBER
public static final int OFFSET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAGE_SIZE_FIELD_NUMBER
public static final int PAGE_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAGE_TOKEN_FIELD_NUMBER
public static final int PAGE_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ORDER_BY_FIELD_NUMBER
public static final int ORDER_BY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HISTOGRAM_QUERIES_FIELD_NUMBER
public static final int HISTOGRAM_QUERIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUIRE_TOTAL_SIZE_FIELD_NUMBER
public static final int REQUIRE_TOTAL_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOTAL_RESULT_SIZE_FIELD_NUMBER
public static final int TOTAL_RESULT_SIZE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QA_SIZE_LIMIT_FIELD_NUMBER
public static final int QA_SIZE_LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SearchDocumentsRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchDocumentsRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchDocumentsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchDocumentsRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchDocumentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchDocumentsRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SearchDocumentsRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SearchDocumentsRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SearchDocumentsRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SearchDocumentsRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static SearchDocumentsRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SearchDocumentsRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public SearchDocumentsRequest.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SearchDocumentsRequest.Builder newBuilder()
-
newBuilder
public static SearchDocumentsRequest.Builder newBuilder(SearchDocumentsRequest prototype)
-
toBuilder
public SearchDocumentsRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SearchDocumentsRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SearchDocumentsRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SearchDocumentsRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<SearchDocumentsRequest> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SearchDocumentsRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-