public static final class DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder extends GeneratedMessageV3.Builder<DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder> implements DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfigOrBuilder
Filter on the confidence score. Only adds to index if the confidence
score is higher than the threshold.
Example data schema:
key: "name-confidence-pair"
type: CUSTOMIZED_STRUCT
granularity: GRANULARITY_PARTITION_LEVEL
customized_struct_config {
field_schemas {
key: "name"
type: STRING
granularity: GRANULARITY_PARTITION_LEVEL
search_strategy {
search_strategy_type: SMART_SEARCH
confidence_score_index_config {
field_path: "name-confidence-pair.score"
threshold: 0.6
}
}
}
field_schemas {
key: "score"
type: FLOAT
granularity: GRANULARITY_PARTITION_LEVEL
}
}
This means only "name" with score > 0.6 will be indexed.
Protobuf type
google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig build()
buildPartial()
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig buildPartial()
clear()
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearFieldPath()
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder clearFieldPath()
Required. The path to the confidence score field. It is a string that
concatenates all the data schema keys along the path. See the example
above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
Example data schema contains a list:
"key": "list-name-score",
"schemaDetails": {
"type": "LIST",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"listConfig": {
"valueSchema": {
"type": "CUSTOMIZED_STRUCT",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"customizedStructConfig": {
"fieldSchemas": {
"name": {
"type": "STRING",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"searchStrategy": {
"searchStrategyType": "SMART_SEARCH"
"confidence_score_index_config": {
"field_path": "list-name-score._ENTRIES.score",
"threshold": "0.9",
}
}
},
"score": {
"type": "FLOAT",
"granularity": "GRANULARITY_PARTITION_LEVEL",
}
}
}
}
}
}
string field_path = 1 [(.google.api.field_behavior) = REQUIRED];
clearOneof(Descriptors.OneofDescriptor oneof)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearThreshold()
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder clearThreshold()
Required. The threshold.
float threshold = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getFieldPath()
public String getFieldPath()
Required. The path to the confidence score field. It is a string that
concatenates all the data schema keys along the path. See the example
above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
Example data schema contains a list:
"key": "list-name-score",
"schemaDetails": {
"type": "LIST",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"listConfig": {
"valueSchema": {
"type": "CUSTOMIZED_STRUCT",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"customizedStructConfig": {
"fieldSchemas": {
"name": {
"type": "STRING",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"searchStrategy": {
"searchStrategyType": "SMART_SEARCH"
"confidence_score_index_config": {
"field_path": "list-name-score._ENTRIES.score",
"threshold": "0.9",
}
}
},
"score": {
"type": "FLOAT",
"granularity": "GRANULARITY_PARTITION_LEVEL",
}
}
}
}
}
}
string field_path = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The fieldPath.
|
getFieldPathBytes()
public ByteString getFieldPathBytes()
Required. The path to the confidence score field. It is a string that
concatenates all the data schema keys along the path. See the example
above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
Example data schema contains a list:
"key": "list-name-score",
"schemaDetails": {
"type": "LIST",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"listConfig": {
"valueSchema": {
"type": "CUSTOMIZED_STRUCT",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"customizedStructConfig": {
"fieldSchemas": {
"name": {
"type": "STRING",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"searchStrategy": {
"searchStrategyType": "SMART_SEARCH"
"confidence_score_index_config": {
"field_path": "list-name-score._ENTRIES.score",
"threshold": "0.9",
}
}
},
"score": {
"type": "FLOAT",
"granularity": "GRANULARITY_PARTITION_LEVEL",
}
}
}
}
}
}
string field_path = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for fieldPath.
|
getThreshold()
public float getThreshold()
Required. The threshold.
float threshold = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
float |
The threshold.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig other)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder mergeFrom(DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig other)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setFieldPath(String value)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder setFieldPath(String value)
Required. The path to the confidence score field. It is a string that
concatenates all the data schema keys along the path. See the example
above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
Example data schema contains a list:
"key": "list-name-score",
"schemaDetails": {
"type": "LIST",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"listConfig": {
"valueSchema": {
"type": "CUSTOMIZED_STRUCT",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"customizedStructConfig": {
"fieldSchemas": {
"name": {
"type": "STRING",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"searchStrategy": {
"searchStrategyType": "SMART_SEARCH"
"confidence_score_index_config": {
"field_path": "list-name-score._ENTRIES.score",
"threshold": "0.9",
}
}
},
"score": {
"type": "FLOAT",
"granularity": "GRANULARITY_PARTITION_LEVEL",
}
}
}
}
}
}
string field_path = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The fieldPath to set.
|
setFieldPathBytes(ByteString value)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder setFieldPathBytes(ByteString value)
Required. The path to the confidence score field. It is a string that
concatenates all the data schema keys along the path. See the example
above. If the data schema contains LIST, use '_ENTRIES' to concatenate.
Example data schema contains a list:
"key": "list-name-score",
"schemaDetails": {
"type": "LIST",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"listConfig": {
"valueSchema": {
"type": "CUSTOMIZED_STRUCT",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"customizedStructConfig": {
"fieldSchemas": {
"name": {
"type": "STRING",
"granularity": "GRANULARITY_PARTITION_LEVEL",
"searchStrategy": {
"searchStrategyType": "SMART_SEARCH"
"confidence_score_index_config": {
"field_path": "list-name-score._ENTRIES.score",
"threshold": "0.9",
}
}
},
"score": {
"type": "FLOAT",
"granularity": "GRANULARITY_PARTITION_LEVEL",
}
}
}
}
}
}
string field_path = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for fieldPath to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setThreshold(float value)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder setThreshold(float value)
Required. The threshold.
float threshold = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
float
The threshold to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides