public static final class DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder extends GeneratedMessage.Builder<DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder> implements DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfigOrBuilderFilter 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig build()| Returns | |
|---|---|
| Type | Description |
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig |
|
buildPartial()
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig |
|
clear()
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder |
This builder for chaining. |
clearThreshold()
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder clearThreshold()Required. The threshold.
float threshold = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig other)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder mergeFrom(DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig |
| Returns | |
|---|---|
| Type | Description |
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder |
|
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 |
StringThe fieldPath to set. |
| Returns | |
|---|---|
| Type | Description |
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder |
This builder for chaining. |
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 |
ByteStringThe bytes for fieldPath to set. |
| Returns | |
|---|---|
| Type | Description |
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder |
This builder for chaining. |
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 |
floatThe threshold to set. |
| Returns | |
|---|---|
| Type | Description |
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder |
This builder for chaining. |