Class DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder (0.4.0)

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

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder
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];

Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder
Overrides

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.

clone()

public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder clone()
Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder
Overrides

getDefaultInstanceForType()

public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig getDefaultInstanceForType()
Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder
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.

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 ByteString

The bytes for fieldPath to set.

Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder
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.

Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder
Overrides