public final class SearchCriteriaProperty extends GeneratedMessageV3 implements SearchCriteriaPropertyOrBuilder
Central configuration for custom search criteria.
Protobuf type google.cloud.visionai.v1.SearchCriteriaProperty
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
MAPPED_FIELDS_FIELD_NUMBER
public static final int MAPPED_FIELDS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SearchCriteriaProperty getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SearchCriteriaProperty.Builder newBuilder()
newBuilder(SearchCriteriaProperty prototype)
public static SearchCriteriaProperty.Builder newBuilder(SearchCriteriaProperty prototype)
public static SearchCriteriaProperty parseDelimitedFrom(InputStream input)
public static SearchCriteriaProperty parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SearchCriteriaProperty parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SearchCriteriaProperty parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SearchCriteriaProperty parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchCriteriaProperty parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchCriteriaProperty parseFrom(CodedInputStream input)
public static SearchCriteriaProperty parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchCriteriaProperty parseFrom(InputStream input)
public static SearchCriteriaProperty parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SearchCriteriaProperty parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SearchCriteriaProperty parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SearchCriteriaProperty> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public SearchCriteriaProperty getDefaultInstanceForType()
getMappedFields(int index)
public String getMappedFields(int index)
Each mapped_field corresponds to a UGA key. To understand how this property
works, take the following example. In the SearchConfig table, the
user adds this entry:
search_config {
name: "person"
search_criteria_property {
mapped_fields: "player"
mapped_fields: "coach"
}
}
Now, when a user issues a query like:
criteria {
field: "person"
text_array {
txt_values: "Tom Brady"
txt_values: "Bill Belichick"
}
}
MWH search will return search documents where (player=Tom Brady ||
coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
repeated string mapped_fields = 1;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The mappedFields at the given index.
|
getMappedFieldsBytes(int index)
public ByteString getMappedFieldsBytes(int index)
Each mapped_field corresponds to a UGA key. To understand how this property
works, take the following example. In the SearchConfig table, the
user adds this entry:
search_config {
name: "person"
search_criteria_property {
mapped_fields: "player"
mapped_fields: "coach"
}
}
Now, when a user issues a query like:
criteria {
field: "person"
text_array {
txt_values: "Tom Brady"
txt_values: "Bill Belichick"
}
}
MWH search will return search documents where (player=Tom Brady ||
coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
repeated string mapped_fields = 1;
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the mappedFields at the given index.
|
getMappedFieldsCount()
public int getMappedFieldsCount()
Each mapped_field corresponds to a UGA key. To understand how this property
works, take the following example. In the SearchConfig table, the
user adds this entry:
search_config {
name: "person"
search_criteria_property {
mapped_fields: "player"
mapped_fields: "coach"
}
}
Now, when a user issues a query like:
criteria {
field: "person"
text_array {
txt_values: "Tom Brady"
txt_values: "Bill Belichick"
}
}
MWH search will return search documents where (player=Tom Brady ||
coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
repeated string mapped_fields = 1;
Returns |
Type |
Description |
int |
The count of mappedFields.
|
getMappedFieldsList()
public ProtocolStringList getMappedFieldsList()
Each mapped_field corresponds to a UGA key. To understand how this property
works, take the following example. In the SearchConfig table, the
user adds this entry:
search_config {
name: "person"
search_criteria_property {
mapped_fields: "player"
mapped_fields: "coach"
}
}
Now, when a user issues a query like:
criteria {
field: "person"
text_array {
txt_values: "Tom Brady"
txt_values: "Bill Belichick"
}
}
MWH search will return search documents where (player=Tom Brady ||
coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
repeated string mapped_fields = 1;
getParserForType()
public Parser<SearchCriteriaProperty> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SearchCriteriaProperty.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SearchCriteriaProperty.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SearchCriteriaProperty.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides