- 0.49.0 (latest)
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public final class PropertyFilter extends GeneratedMessageV3 implements PropertyFilterOrBuilder
Protobuf type google.cloud.contentwarehouse.v1.PropertyFilter
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PropertyFilterImplements
PropertyFilterOrBuilderStatic Fields
CONDITION_FIELD_NUMBER
public static final int CONDITION_FIELD_NUMBER
Type | Description |
int |
DOCUMENT_SCHEMA_NAME_FIELD_NUMBER
public static final int DOCUMENT_SCHEMA_NAME_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static PropertyFilter getDefaultInstance()
Type | Description |
PropertyFilter |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static PropertyFilter.Builder newBuilder()
Type | Description |
PropertyFilter.Builder |
newBuilder(PropertyFilter prototype)
public static PropertyFilter.Builder newBuilder(PropertyFilter prototype)
Name | Description |
prototype | PropertyFilter |
Type | Description |
PropertyFilter.Builder |
parseDelimitedFrom(InputStream input)
public static PropertyFilter parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PropertyFilter |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PropertyFilter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PropertyFilter |
Type | Description |
IOException |
parseFrom(byte[] data)
public static PropertyFilter parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
PropertyFilter |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PropertyFilter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PropertyFilter |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static PropertyFilter parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
PropertyFilter |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PropertyFilter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PropertyFilter |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static PropertyFilter parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
PropertyFilter |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PropertyFilter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PropertyFilter |
Type | Description |
IOException |
parseFrom(InputStream input)
public static PropertyFilter parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
PropertyFilter |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static PropertyFilter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PropertyFilter |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static PropertyFilter parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
PropertyFilter |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PropertyFilter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
PropertyFilter |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<PropertyFilter> parser()
Type | Description |
Parser<PropertyFilter> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getCondition()
public String getCondition()
The filter condition.
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.
is the LIKE operator. The right of the operator must be a string. The
only supported property data type for LIKE is text_values. It provides
semantic search functionality by parsing, stemming and doing synonyms
expansion against the input query. It matches if the property contains
semantic similar content to the query. It is not regex matching or wildcard
matching. For example, "property.company ~~ \"google\"" will match records
whose property
property.compnay
have values like "Google Inc.", "Google
LLC" or "Google Company".
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.
Only properties that are marked filterable are allowed
(PropertyDefinition.is_filterable). Property names do not need to be
prefixed by the document schema id (as is the case with histograms),
however property names will need to be prefixed by its parent hierarchy, if
any. For example: top_property_name.sub_property_name.
Sample Query:
(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
driving_years > 10
CMEK compliant deployment only supports:
- Operators:
=
,<
,<=
,>
, and>=
. - Boolean expressions: AND and OR.
string condition = 2;
Type | Description |
String | The condition. |
getConditionBytes()
public ByteString getConditionBytes()
The filter condition.
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.
is the LIKE operator. The right of the operator must be a string. The
only supported property data type for LIKE is text_values. It provides
semantic search functionality by parsing, stemming and doing synonyms
expansion against the input query. It matches if the property contains
semantic similar content to the query. It is not regex matching or wildcard
matching. For example, "property.company ~~ \"google\"" will match records
whose property
property.compnay
have values like "Google Inc.", "Google
LLC" or "Google Company".
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.
Only properties that are marked filterable are allowed
(PropertyDefinition.is_filterable). Property names do not need to be
prefixed by the document schema id (as is the case with histograms),
however property names will need to be prefixed by its parent hierarchy, if
any. For example: top_property_name.sub_property_name.
Sample Query:
(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
driving_years > 10
CMEK compliant deployment only supports:
- Operators:
=
,<
,<=
,>
, and>=
. - Boolean expressions: AND and OR.
string condition = 2;
Type | Description |
ByteString | The bytes for condition. |
getDefaultInstanceForType()
public PropertyFilter getDefaultInstanceForType()
Type | Description |
PropertyFilter |
getDocumentSchemaName()
public String getDocumentSchemaName()
The Document schema name Document.document_schema_name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
string document_schema_name = 1 [(.google.api.resource_reference) = { ... }
Type | Description |
String | The documentSchemaName. |
getDocumentSchemaNameBytes()
public ByteString getDocumentSchemaNameBytes()
The Document schema name Document.document_schema_name. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}.
string document_schema_name = 1 [(.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for documentSchemaName. |
getParserForType()
public Parser<PropertyFilter> getParserForType()
Type | Description |
Parser<PropertyFilter> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public PropertyFilter.Builder newBuilderForType()
Type | Description |
PropertyFilter.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PropertyFilter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
PropertyFilter.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public PropertyFilter.Builder toBuilder()
Type | Description |
PropertyFilter.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |