Class DocumentQuery
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.contentwarehouse.v1.DocumentQuery
-
- All Implemented Interfaces:
DocumentQueryOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class DocumentQuery extends com.google.protobuf.GeneratedMessageV3 implements DocumentQueryOrBuilder
Protobuf typegoogle.cloud.contentwarehouse.v1.DocumentQuery- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocumentQuery.BuilderProtobuf typegoogle.cloud.contentwarehouse.v1.DocumentQuery-
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 intCUSTOM_PROPERTY_FILTER_FIELD_NUMBERstatic intCUSTOM_WEIGHTS_METADATA_FIELD_NUMBERstatic intDOCUMENT_CREATOR_FILTER_FIELD_NUMBERstatic intDOCUMENT_NAME_FILTER_FIELD_NUMBERstatic intDOCUMENT_SCHEMA_NAMES_FIELD_NUMBERstatic intFILE_TYPE_FILTER_FIELD_NUMBERstatic intFOLDER_NAME_FILTER_FIELD_NUMBERstatic intIS_NL_QUERY_FIELD_NUMBERstatic intPROPERTY_FILTER_FIELD_NUMBERstatic intQUERY_CONTEXT_FIELD_NUMBERstatic intQUERY_FIELD_NUMBERstatic intTIME_FILTERS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCustomPropertyFilter()Deprecated.google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated.com.google.protobuf.ByteStringgetCustomPropertyFilterBytes()Deprecated.google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated.CustomWeightsMetadatagetCustomWeightsMetadata()To support the custom weighting across document schemas, customers need to provide the properties to be used to boost the ranking in the search request.CustomWeightsMetadataOrBuildergetCustomWeightsMetadataOrBuilder()To support the custom weighting across document schemas, customers need to provide the properties to be used to boost the ranking in the search request.static DocumentQuerygetDefaultInstance()DocumentQuerygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDocumentCreatorFilter(int index)The exact creator(s) of the documents to search against.com.google.protobuf.ByteStringgetDocumentCreatorFilterBytes(int index)The exact creator(s) of the documents to search against.intgetDocumentCreatorFilterCount()The exact creator(s) of the documents to search against.com.google.protobuf.ProtocolStringListgetDocumentCreatorFilterList()The exact creator(s) of the documents to search against.StringgetDocumentNameFilter(int index)Search the documents in the list.com.google.protobuf.ByteStringgetDocumentNameFilterBytes(int index)Search the documents in the list.intgetDocumentNameFilterCount()Search the documents in the list.com.google.protobuf.ProtocolStringListgetDocumentNameFilterList()Search the documents in the list.StringgetDocumentSchemaNames(int index)This filter specifies the exact document schema [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.com.google.protobuf.ByteStringgetDocumentSchemaNamesBytes(int index)This filter specifies the exact document schema [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.intgetDocumentSchemaNamesCount()This filter specifies the exact document schema [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.com.google.protobuf.ProtocolStringListgetDocumentSchemaNamesList()This filter specifies the exact document schema [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against.FileTypeFiltergetFileTypeFilter()This filter specifies the types of files to return: ALL, FOLDER, or FILE.FileTypeFilterOrBuildergetFileTypeFilterOrBuilder()This filter specifies the types of files to return: ALL, FOLDER, or FILE.StringgetFolderNameFilter()Search all the documents under this specified folder.com.google.protobuf.ByteStringgetFolderNameFilterBytes()Search all the documents under this specified folder.booleangetIsNlQuery()Experimental, do not use.com.google.protobuf.Parser<DocumentQuery>getParserForType()PropertyFiltergetPropertyFilter(int index)This filter specifies a structured syntax to match against the [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`.intgetPropertyFilterCount()This filter specifies a structured syntax to match against the [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`.List<PropertyFilter>getPropertyFilterList()This filter specifies a structured syntax to match against the [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`.PropertyFilterOrBuildergetPropertyFilterOrBuilder(int index)This filter specifies a structured syntax to match against the [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`.List<? extends PropertyFilterOrBuilder>getPropertyFilterOrBuilderList()This filter specifies a structured syntax to match against the [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`.StringgetQuery()The query string that matches against the full text of the document and the searchable properties.com.google.protobuf.ByteStringgetQueryBytes()The query string that matches against the full text of the document and the searchable properties.StringgetQueryContext(int index)For custom synonyms.com.google.protobuf.ByteStringgetQueryContextBytes(int index)For custom synonyms.intgetQueryContextCount()For custom synonyms.com.google.protobuf.ProtocolStringListgetQueryContextList()For custom synonyms.intgetSerializedSize()TimeFiltergetTimeFilters(int index)Documents created/updated within a range specified by this filter are searched against.intgetTimeFiltersCount()Documents created/updated within a range specified by this filter are searched against.List<TimeFilter>getTimeFiltersList()Documents created/updated within a range specified by this filter are searched against.TimeFilterOrBuildergetTimeFiltersOrBuilder(int index)Documents created/updated within a range specified by this filter are searched against.List<? extends TimeFilterOrBuilder>getTimeFiltersOrBuilderList()Documents created/updated within a range specified by this filter are searched against.booleanhasCustomWeightsMetadata()To support the custom weighting across document schemas, customers need to provide the properties to be used to boost the ranking in the search request.booleanhasFileTypeFilter()This filter specifies the types of files to return: ALL, FOLDER, or FILE.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DocumentQuery.BuildernewBuilder()static DocumentQuery.BuildernewBuilder(DocumentQuery prototype)DocumentQuery.BuildernewBuilderForType()protected DocumentQuery.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DocumentQueryparseDelimitedFrom(InputStream input)static DocumentQueryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DocumentQueryparseFrom(byte[] data)static DocumentQueryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DocumentQueryparseFrom(com.google.protobuf.ByteString data)static DocumentQueryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DocumentQueryparseFrom(com.google.protobuf.CodedInputStream input)static DocumentQueryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DocumentQueryparseFrom(InputStream input)static DocumentQueryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DocumentQueryparseFrom(ByteBuffer data)static DocumentQueryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DocumentQuery>parser()DocumentQuery.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
QUERY_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IS_NL_QUERY_FIELD_NUMBER
public static final int IS_NL_QUERY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CUSTOM_PROPERTY_FILTER_FIELD_NUMBER
public static final int CUSTOM_PROPERTY_FILTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_FILTERS_FIELD_NUMBER
public static final int TIME_FILTERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOCUMENT_SCHEMA_NAMES_FIELD_NUMBER
public static final int DOCUMENT_SCHEMA_NAMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROPERTY_FILTER_FIELD_NUMBER
public static final int PROPERTY_FILTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILE_TYPE_FILTER_FIELD_NUMBER
public static final int FILE_TYPE_FILTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FOLDER_NAME_FILTER_FIELD_NUMBER
public static final int FOLDER_NAME_FILTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOCUMENT_NAME_FILTER_FIELD_NUMBER
public static final int DOCUMENT_NAME_FILTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUERY_CONTEXT_FIELD_NUMBER
public static final int QUERY_CONTEXT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOCUMENT_CREATOR_FILTER_FIELD_NUMBER
public static final int DOCUMENT_CREATOR_FILTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CUSTOM_WEIGHTS_METADATA_FIELD_NUMBER
public static final int CUSTOM_WEIGHTS_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getQuery
public String getQuery()
The query string that matches against the full text of the document and the searchable properties. The query partially supports [Google AIP style syntax](https://google.aip.dev/160). Specifically, the query supports literals, logical operators, negation operators, comparison operators, and functions. Literals: A bare literal value (examples: "42", "Hugo") is a value to be matched against. It searches over the full text of the document and the searchable properties. Logical operators: "AND", "and", "OR", and "or" are binary logical operators (example: "engineer OR developer"). Negation operators: "NOT" and "!" are negation operators (example: "NOT software"). Comparison operators: support the binary comparison operators =, !=, <, >, <= and >= for string, numeric, enum, boolean. Also support like operator `~~` for string. It provides semantic search functionality by parsing, stemming and doing synonyms expansion against the input query. To specify a property in the query, the left hand side expression in the comparison must be the property ID including the parent. The right hand side must be literals. For example: "\"projects/123/locations/us\".property_a < 1" matches results whose "property_a" is less than 1 in project 123 and us location. The literals and comparison expression can be connected in a single query (example: "software engineer \"projects/123/locations/us\".salary > 100"). Functions: supported functions are `LOWER([property_name])` to perform a case insensitive match and `EMPTY([property_name])` to filter on the existence of a key. Support nested expressions connected using parenthesis and logical operators. The default logical operators is `AND` if there is no operators between expressions. The query can be used with other filters e.g. `time_filters` and `folder_name_filter`. They are connected with `AND` operator under the hood. The maximum number of allowed characters is 255.
string query = 1;- Specified by:
getQueryin interfaceDocumentQueryOrBuilder- Returns:
- The query.
-
getQueryBytes
public com.google.protobuf.ByteString getQueryBytes()
The query string that matches against the full text of the document and the searchable properties. The query partially supports [Google AIP style syntax](https://google.aip.dev/160). Specifically, the query supports literals, logical operators, negation operators, comparison operators, and functions. Literals: A bare literal value (examples: "42", "Hugo") is a value to be matched against. It searches over the full text of the document and the searchable properties. Logical operators: "AND", "and", "OR", and "or" are binary logical operators (example: "engineer OR developer"). Negation operators: "NOT" and "!" are negation operators (example: "NOT software"). Comparison operators: support the binary comparison operators =, !=, <, >, <= and >= for string, numeric, enum, boolean. Also support like operator `~~` for string. It provides semantic search functionality by parsing, stemming and doing synonyms expansion against the input query. To specify a property in the query, the left hand side expression in the comparison must be the property ID including the parent. The right hand side must be literals. For example: "\"projects/123/locations/us\".property_a < 1" matches results whose "property_a" is less than 1 in project 123 and us location. The literals and comparison expression can be connected in a single query (example: "software engineer \"projects/123/locations/us\".salary > 100"). Functions: supported functions are `LOWER([property_name])` to perform a case insensitive match and `EMPTY([property_name])` to filter on the existence of a key. Support nested expressions connected using parenthesis and logical operators. The default logical operators is `AND` if there is no operators between expressions. The query can be used with other filters e.g. `time_filters` and `folder_name_filter`. They are connected with `AND` operator under the hood. The maximum number of allowed characters is 255.
string query = 1;- Specified by:
getQueryBytesin interfaceDocumentQueryOrBuilder- Returns:
- The bytes for query.
-
getIsNlQuery
public boolean getIsNlQuery()
Experimental, do not use. If the query is a natural language question. False by default. If true, then the question-answering feature will be used instead of search, and `result_count` in [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest] must be set. In addition, all other input fields related to search (pagination, histograms, etc.) will be ignored.
bool is_nl_query = 12;- Specified by:
getIsNlQueryin interfaceDocumentQueryOrBuilder- Returns:
- The isNlQuery.
-
getCustomPropertyFilter
@Deprecated public String getCustomPropertyFilter()
Deprecated.google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104This filter specifies a structured syntax to match against the [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for this expression is a subset of SQL syntax. Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the left of the operator is a property name and the right of the operator is a number or a quoted string. You must escape backslash (\\) and quote (\") characters. Supported functions are `LOWER([property_name])` to perform a case insensitive match and `EMPTY([property_name])` to filter on the existence of a key. Boolean expressions (AND/OR/NOT) are supported up to 3 levels of nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 comparisons or functions are allowed in the expression. The expression must be < 6000 bytes in length. Sample Query: `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND driving_years > 10`
string custom_property_filter = 4 [deprecated = true];- Specified by:
getCustomPropertyFilterin interfaceDocumentQueryOrBuilder- Returns:
- The customPropertyFilter.
-
getCustomPropertyFilterBytes
@Deprecated public com.google.protobuf.ByteString getCustomPropertyFilterBytes()
Deprecated.google.cloud.contentwarehouse.v1.DocumentQuery.custom_property_filter is deprecated. See google/cloud/contentwarehouse/v1/filters.proto;l=104This filter specifies a structured syntax to match against the [PropertyDefinition].[is_filterable][] marked as `true`. The syntax for this expression is a subset of SQL syntax. Supported operators are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the left of the operator is a property name and the right of the operator is a number or a quoted string. You must escape backslash (\\) and quote (\") characters. Supported functions are `LOWER([property_name])` to perform a case insensitive match and `EMPTY([property_name])` to filter on the existence of a key. Boolean expressions (AND/OR/NOT) are supported up to 3 levels of nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 comparisons or functions are allowed in the expression. The expression must be < 6000 bytes in length. Sample Query: `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND driving_years > 10`
string custom_property_filter = 4 [deprecated = true];- Specified by:
getCustomPropertyFilterBytesin interfaceDocumentQueryOrBuilder- Returns:
- The bytes for customPropertyFilter.
-
getTimeFiltersList
public List<TimeFilter> getTimeFiltersList()
Documents created/updated within a range specified by this filter are searched against.
repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;- Specified by:
getTimeFiltersListin interfaceDocumentQueryOrBuilder
-
getTimeFiltersOrBuilderList
public List<? extends TimeFilterOrBuilder> getTimeFiltersOrBuilderList()
Documents created/updated within a range specified by this filter are searched against.
repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;- Specified by:
getTimeFiltersOrBuilderListin interfaceDocumentQueryOrBuilder
-
getTimeFiltersCount
public int getTimeFiltersCount()
Documents created/updated within a range specified by this filter are searched against.
repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;- Specified by:
getTimeFiltersCountin interfaceDocumentQueryOrBuilder
-
getTimeFilters
public TimeFilter getTimeFilters(int index)
Documents created/updated within a range specified by this filter are searched against.
repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;- Specified by:
getTimeFiltersin interfaceDocumentQueryOrBuilder
-
getTimeFiltersOrBuilder
public TimeFilterOrBuilder getTimeFiltersOrBuilder(int index)
Documents created/updated within a range specified by this filter are searched against.
repeated .google.cloud.contentwarehouse.v1.TimeFilter time_filters = 5;- Specified by:
getTimeFiltersOrBuilderin interfaceDocumentQueryOrBuilder
-
getDocumentSchemaNamesList
public com.google.protobuf.ProtocolStringList getDocumentSchemaNamesList()
This filter specifies the exact document schema [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against. If a value isn't specified, documents within the search results are associated with any schema. If multiple values are specified, documents within the search results may be associated with any of the specified schemas. At most 20 document schema names are allowed.
repeated string document_schema_names = 6;- Specified by:
getDocumentSchemaNamesListin interfaceDocumentQueryOrBuilder- Returns:
- A list containing the documentSchemaNames.
-
getDocumentSchemaNamesCount
public int getDocumentSchemaNamesCount()
This filter specifies the exact document schema [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against. If a value isn't specified, documents within the search results are associated with any schema. If multiple values are specified, documents within the search results may be associated with any of the specified schemas. At most 20 document schema names are allowed.
repeated string document_schema_names = 6;- Specified by:
getDocumentSchemaNamesCountin interfaceDocumentQueryOrBuilder- Returns:
- The count of documentSchemaNames.
-
getDocumentSchemaNames
public String getDocumentSchemaNames(int index)
This filter specifies the exact document schema [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against. If a value isn't specified, documents within the search results are associated with any schema. If multiple values are specified, documents within the search results may be associated with any of the specified schemas. At most 20 document schema names are allowed.
repeated string document_schema_names = 6;- Specified by:
getDocumentSchemaNamesin interfaceDocumentQueryOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The documentSchemaNames at the given index.
-
getDocumentSchemaNamesBytes
public com.google.protobuf.ByteString getDocumentSchemaNamesBytes(int index)
This filter specifies the exact document schema [Document.document_schema_name][google.cloud.contentwarehouse.v1.Document.document_schema_name] of the documents to search against. If a value isn't specified, documents within the search results are associated with any schema. If multiple values are specified, documents within the search results may be associated with any of the specified schemas. At most 20 document schema names are allowed.
repeated string document_schema_names = 6;- Specified by:
getDocumentSchemaNamesBytesin interfaceDocumentQueryOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the documentSchemaNames at the given index.
-
getPropertyFilterList
public List<PropertyFilter> getPropertyFilterList()
This filter specifies a structured syntax to match against the [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`. The relationship between the PropertyFilters is OR.
repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;- Specified by:
getPropertyFilterListin interfaceDocumentQueryOrBuilder
-
getPropertyFilterOrBuilderList
public List<? extends PropertyFilterOrBuilder> getPropertyFilterOrBuilderList()
This filter specifies a structured syntax to match against the [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`. The relationship between the PropertyFilters is OR.
repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;- Specified by:
getPropertyFilterOrBuilderListin interfaceDocumentQueryOrBuilder
-
getPropertyFilterCount
public int getPropertyFilterCount()
This filter specifies a structured syntax to match against the [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`. The relationship between the PropertyFilters is OR.
repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;- Specified by:
getPropertyFilterCountin interfaceDocumentQueryOrBuilder
-
getPropertyFilter
public PropertyFilter getPropertyFilter(int index)
This filter specifies a structured syntax to match against the [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`. The relationship between the PropertyFilters is OR.
repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;- Specified by:
getPropertyFilterin interfaceDocumentQueryOrBuilder
-
getPropertyFilterOrBuilder
public PropertyFilterOrBuilder getPropertyFilterOrBuilder(int index)
This filter specifies a structured syntax to match against the [PropertyDefinition.is_filterable][google.cloud.contentwarehouse.v1.PropertyDefinition.is_filterable] marked as `true`. The relationship between the PropertyFilters is OR.
repeated .google.cloud.contentwarehouse.v1.PropertyFilter property_filter = 7;- Specified by:
getPropertyFilterOrBuilderin interfaceDocumentQueryOrBuilder
-
hasFileTypeFilter
public boolean hasFileTypeFilter()
This filter specifies the types of files to return: ALL, FOLDER, or FILE. If FOLDER or FILE is specified, then only either folders or files will be returned, respectively. If ALL is specified, both folders and files will be returned. If no value is specified, ALL files will be returned.
.google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8;- Specified by:
hasFileTypeFilterin interfaceDocumentQueryOrBuilder- Returns:
- Whether the fileTypeFilter field is set.
-
getFileTypeFilter
public FileTypeFilter getFileTypeFilter()
This filter specifies the types of files to return: ALL, FOLDER, or FILE. If FOLDER or FILE is specified, then only either folders or files will be returned, respectively. If ALL is specified, both folders and files will be returned. If no value is specified, ALL files will be returned.
.google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8;- Specified by:
getFileTypeFilterin interfaceDocumentQueryOrBuilder- Returns:
- The fileTypeFilter.
-
getFileTypeFilterOrBuilder
public FileTypeFilterOrBuilder getFileTypeFilterOrBuilder()
This filter specifies the types of files to return: ALL, FOLDER, or FILE. If FOLDER or FILE is specified, then only either folders or files will be returned, respectively. If ALL is specified, both folders and files will be returned. If no value is specified, ALL files will be returned.
.google.cloud.contentwarehouse.v1.FileTypeFilter file_type_filter = 8;- Specified by:
getFileTypeFilterOrBuilderin interfaceDocumentQueryOrBuilder
-
getFolderNameFilter
public String getFolderNameFilter()
Search all the documents under this specified folder. Format: projects/{project_number}/locations/{location}/documents/{document_id}.string folder_name_filter = 9;- Specified by:
getFolderNameFilterin interfaceDocumentQueryOrBuilder- Returns:
- The folderNameFilter.
-
getFolderNameFilterBytes
public com.google.protobuf.ByteString getFolderNameFilterBytes()
Search all the documents under this specified folder. Format: projects/{project_number}/locations/{location}/documents/{document_id}.string folder_name_filter = 9;- Specified by:
getFolderNameFilterBytesin interfaceDocumentQueryOrBuilder- Returns:
- The bytes for folderNameFilter.
-
getDocumentNameFilterList
public com.google.protobuf.ProtocolStringList getDocumentNameFilterList()
Search the documents in the list. Format: projects/{project_number}/locations/{location}/documents/{document_id}.repeated string document_name_filter = 14;- Specified by:
getDocumentNameFilterListin interfaceDocumentQueryOrBuilder- Returns:
- A list containing the documentNameFilter.
-
getDocumentNameFilterCount
public int getDocumentNameFilterCount()
Search the documents in the list. Format: projects/{project_number}/locations/{location}/documents/{document_id}.repeated string document_name_filter = 14;- Specified by:
getDocumentNameFilterCountin interfaceDocumentQueryOrBuilder- Returns:
- The count of documentNameFilter.
-
getDocumentNameFilter
public String getDocumentNameFilter(int index)
Search the documents in the list. Format: projects/{project_number}/locations/{location}/documents/{document_id}.repeated string document_name_filter = 14;- Specified by:
getDocumentNameFilterin interfaceDocumentQueryOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The documentNameFilter at the given index.
-
getDocumentNameFilterBytes
public com.google.protobuf.ByteString getDocumentNameFilterBytes(int index)
Search the documents in the list. Format: projects/{project_number}/locations/{location}/documents/{document_id}.repeated string document_name_filter = 14;- Specified by:
getDocumentNameFilterBytesin interfaceDocumentQueryOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the documentNameFilter at the given index.
-
getQueryContextList
public com.google.protobuf.ProtocolStringList getQueryContextList()
For custom synonyms. Customers provide the synonyms based on context. One customer can provide multiple set of synonyms based on different context. The search query will be expanded based on the custom synonyms of the query context set. By default, no custom synonyms wll be applied if no query context is provided. It is not supported for CMEK compliant deployment.
repeated string query_context = 10;- Specified by:
getQueryContextListin interfaceDocumentQueryOrBuilder- Returns:
- A list containing the queryContext.
-
getQueryContextCount
public int getQueryContextCount()
For custom synonyms. Customers provide the synonyms based on context. One customer can provide multiple set of synonyms based on different context. The search query will be expanded based on the custom synonyms of the query context set. By default, no custom synonyms wll be applied if no query context is provided. It is not supported for CMEK compliant deployment.
repeated string query_context = 10;- Specified by:
getQueryContextCountin interfaceDocumentQueryOrBuilder- Returns:
- The count of queryContext.
-
getQueryContext
public String getQueryContext(int index)
For custom synonyms. Customers provide the synonyms based on context. One customer can provide multiple set of synonyms based on different context. The search query will be expanded based on the custom synonyms of the query context set. By default, no custom synonyms wll be applied if no query context is provided. It is not supported for CMEK compliant deployment.
repeated string query_context = 10;- Specified by:
getQueryContextin interfaceDocumentQueryOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The queryContext at the given index.
-
getQueryContextBytes
public com.google.protobuf.ByteString getQueryContextBytes(int index)
For custom synonyms. Customers provide the synonyms based on context. One customer can provide multiple set of synonyms based on different context. The search query will be expanded based on the custom synonyms of the query context set. By default, no custom synonyms wll be applied if no query context is provided. It is not supported for CMEK compliant deployment.
repeated string query_context = 10;- Specified by:
getQueryContextBytesin interfaceDocumentQueryOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the queryContext at the given index.
-
getDocumentCreatorFilterList
public com.google.protobuf.ProtocolStringList getDocumentCreatorFilterList()
The exact creator(s) of the documents to search against. If a value isn't specified, documents within the search results are associated with any creator. If multiple values are specified, documents within the search results may be associated with any of the specified creators.
repeated string document_creator_filter = 11;- Specified by:
getDocumentCreatorFilterListin interfaceDocumentQueryOrBuilder- Returns:
- A list containing the documentCreatorFilter.
-
getDocumentCreatorFilterCount
public int getDocumentCreatorFilterCount()
The exact creator(s) of the documents to search against. If a value isn't specified, documents within the search results are associated with any creator. If multiple values are specified, documents within the search results may be associated with any of the specified creators.
repeated string document_creator_filter = 11;- Specified by:
getDocumentCreatorFilterCountin interfaceDocumentQueryOrBuilder- Returns:
- The count of documentCreatorFilter.
-
getDocumentCreatorFilter
public String getDocumentCreatorFilter(int index)
The exact creator(s) of the documents to search against. If a value isn't specified, documents within the search results are associated with any creator. If multiple values are specified, documents within the search results may be associated with any of the specified creators.
repeated string document_creator_filter = 11;- Specified by:
getDocumentCreatorFilterin interfaceDocumentQueryOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The documentCreatorFilter at the given index.
-
getDocumentCreatorFilterBytes
public com.google.protobuf.ByteString getDocumentCreatorFilterBytes(int index)
The exact creator(s) of the documents to search against. If a value isn't specified, documents within the search results are associated with any creator. If multiple values are specified, documents within the search results may be associated with any of the specified creators.
repeated string document_creator_filter = 11;- Specified by:
getDocumentCreatorFilterBytesin interfaceDocumentQueryOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the documentCreatorFilter at the given index.
-
hasCustomWeightsMetadata
public boolean hasCustomWeightsMetadata()
To support the custom weighting across document schemas, customers need to provide the properties to be used to boost the ranking in the search request. For a search query with CustomWeightsMetadata specified, only the RetrievalImportance for the properties in the CustomWeightsMetadata will be honored.
.google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13;- Specified by:
hasCustomWeightsMetadatain interfaceDocumentQueryOrBuilder- Returns:
- Whether the customWeightsMetadata field is set.
-
getCustomWeightsMetadata
public CustomWeightsMetadata getCustomWeightsMetadata()
To support the custom weighting across document schemas, customers need to provide the properties to be used to boost the ranking in the search request. For a search query with CustomWeightsMetadata specified, only the RetrievalImportance for the properties in the CustomWeightsMetadata will be honored.
.google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13;- Specified by:
getCustomWeightsMetadatain interfaceDocumentQueryOrBuilder- Returns:
- The customWeightsMetadata.
-
getCustomWeightsMetadataOrBuilder
public CustomWeightsMetadataOrBuilder getCustomWeightsMetadataOrBuilder()
To support the custom weighting across document schemas, customers need to provide the properties to be used to boost the ranking in the search request. For a search query with CustomWeightsMetadata specified, only the RetrievalImportance for the properties in the CustomWeightsMetadata will be honored.
.google.cloud.contentwarehouse.v1.CustomWeightsMetadata custom_weights_metadata = 13;- Specified by:
getCustomWeightsMetadataOrBuilderin interfaceDocumentQueryOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DocumentQuery parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentQuery parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentQuery parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentQuery parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentQuery parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentQuery parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DocumentQuery parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DocumentQuery parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DocumentQuery parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static DocumentQuery parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DocumentQuery parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public DocumentQuery.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DocumentQuery.Builder newBuilder()
-
newBuilder
public static DocumentQuery.Builder newBuilder(DocumentQuery prototype)
-
toBuilder
public DocumentQuery.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DocumentQuery.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DocumentQuery getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DocumentQuery> parser()
-
getParserForType
public com.google.protobuf.Parser<DocumentQuery> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DocumentQuery getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-