Class DataSchemaDetails.SearchStrategy.Builder (0.12.0)

public static final class DataSchemaDetails.SearchStrategy.Builder extends GeneratedMessageV3.Builder<DataSchemaDetails.SearchStrategy.Builder> implements DataSchemaDetails.SearchStrategyOrBuilder

The search strategy for annotations value of the key.

Protobuf type google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataSchemaDetails.SearchStrategy build()
Returns
Type Description
DataSchemaDetails.SearchStrategy

buildPartial()

public DataSchemaDetails.SearchStrategy buildPartial()
Returns
Type Description
DataSchemaDetails.SearchStrategy

clear()

public DataSchemaDetails.SearchStrategy.Builder clear()
Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder
Overrides

clearConfidenceScoreIndexConfig()

public DataSchemaDetails.SearchStrategy.Builder clearConfidenceScoreIndexConfig()

Optional. Configs the path to the confidence score, and the threshold. Only if the score is greater than the threshold, current field will be built into the index. Only applies to leaf nodes using EXACT_SEARCH or SMART_SEARCH.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder

clearField(Descriptors.FieldDescriptor field)

public DataSchemaDetails.SearchStrategy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSearchStrategyType()

public DataSchemaDetails.SearchStrategy.Builder clearSearchStrategyType()

The type of search strategy to be applied on the key above. The allowed search_strategy_type is different for different data types, which is documented in the DataSchemaDetails.DataType. Specifying unsupported search_strategy_type for data types will result in INVALID_ARGUMENT error.

optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1;

Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder

This builder for chaining.

clone()

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

getConfidenceScoreIndexConfig()

public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig getConfidenceScoreIndexConfig()

Optional. Configs the path to the confidence score, and the threshold. Only if the score is greater than the threshold, current field will be built into the index. Only applies to leaf nodes using EXACT_SEARCH or SMART_SEARCH.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig

The confidenceScoreIndexConfig.

getConfidenceScoreIndexConfigBuilder()

public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder getConfidenceScoreIndexConfigBuilder()

Optional. Configs the path to the confidence score, and the threshold. Only if the score is greater than the threshold, current field will be built into the index. Only applies to leaf nodes using EXACT_SEARCH or SMART_SEARCH.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder

getConfidenceScoreIndexConfigOrBuilder()

public DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfigOrBuilder getConfidenceScoreIndexConfigOrBuilder()

Optional. Configs the path to the confidence score, and the threshold. Only if the score is greater than the threshold, current field will be built into the index. Only applies to leaf nodes using EXACT_SEARCH or SMART_SEARCH.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfigOrBuilder

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSearchStrategyType()

public DataSchemaDetails.SearchStrategy.SearchStrategyType getSearchStrategyType()

The type of search strategy to be applied on the key above. The allowed search_strategy_type is different for different data types, which is documented in the DataSchemaDetails.DataType. Specifying unsupported search_strategy_type for data types will result in INVALID_ARGUMENT error.

optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1;

Returns
Type Description
DataSchemaDetails.SearchStrategy.SearchStrategyType

The searchStrategyType.

getSearchStrategyTypeValue()

public int getSearchStrategyTypeValue()

The type of search strategy to be applied on the key above. The allowed search_strategy_type is different for different data types, which is documented in the DataSchemaDetails.DataType. Specifying unsupported search_strategy_type for data types will result in INVALID_ARGUMENT error.

optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for searchStrategyType.

hasConfidenceScoreIndexConfig()

public boolean hasConfidenceScoreIndexConfig()

Optional. Configs the path to the confidence score, and the threshold. Only if the score is greater than the threshold, current field will be built into the index. Only applies to leaf nodes using EXACT_SEARCH or SMART_SEARCH.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the confidenceScoreIndexConfig field is set.

hasSearchStrategyType()

public boolean hasSearchStrategyType()

The type of search strategy to be applied on the key above. The allowed search_strategy_type is different for different data types, which is documented in the DataSchemaDetails.DataType. Specifying unsupported search_strategy_type for data types will result in INVALID_ARGUMENT error.

optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1;

Returns
Type Description
boolean

Whether the searchStrategyType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConfidenceScoreIndexConfig(DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig value)

public DataSchemaDetails.SearchStrategy.Builder mergeConfidenceScoreIndexConfig(DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig value)

Optional. Configs the path to the confidence score, and the threshold. Only if the score is greater than the threshold, current field will be built into the index. Only applies to leaf nodes using EXACT_SEARCH or SMART_SEARCH.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig
Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder

mergeFrom(DataSchemaDetails.SearchStrategy other)

public DataSchemaDetails.SearchStrategy.Builder mergeFrom(DataSchemaDetails.SearchStrategy other)
Parameter
Name Description
other DataSchemaDetails.SearchStrategy
Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataSchemaDetails.SearchStrategy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataSchemaDetails.SearchStrategy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfidenceScoreIndexConfig(DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig value)

public DataSchemaDetails.SearchStrategy.Builder setConfidenceScoreIndexConfig(DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig value)

Optional. Configs the path to the confidence score, and the threshold. Only if the score is greater than the threshold, current field will be built into the index. Only applies to leaf nodes using EXACT_SEARCH or SMART_SEARCH.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig
Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder

setConfidenceScoreIndexConfig(DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder builderForValue)

public DataSchemaDetails.SearchStrategy.Builder setConfidenceScoreIndexConfig(DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder builderForValue)

Optional. Configs the path to the confidence score, and the threshold. Only if the score is greater than the threshold, current field will be built into the index. Only applies to leaf nodes using EXACT_SEARCH or SMART_SEARCH.

.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig confidence_score_index_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder
Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public DataSchemaDetails.SearchStrategy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder
Overrides

setSearchStrategyType(DataSchemaDetails.SearchStrategy.SearchStrategyType value)

public DataSchemaDetails.SearchStrategy.Builder setSearchStrategyType(DataSchemaDetails.SearchStrategy.SearchStrategyType value)

The type of search strategy to be applied on the key above. The allowed search_strategy_type is different for different data types, which is documented in the DataSchemaDetails.DataType. Specifying unsupported search_strategy_type for data types will result in INVALID_ARGUMENT error.

optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1;

Parameter
Name Description
value DataSchemaDetails.SearchStrategy.SearchStrategyType

The searchStrategyType to set.

Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder

This builder for chaining.

setSearchStrategyTypeValue(int value)

public DataSchemaDetails.SearchStrategy.Builder setSearchStrategyTypeValue(int value)

The type of search strategy to be applied on the key above. The allowed search_strategy_type is different for different data types, which is documented in the DataSchemaDetails.DataType. Specifying unsupported search_strategy_type for data types will result in INVALID_ARGUMENT error.

optional .google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.SearchStrategyType search_strategy_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for searchStrategyType to set.

Returns
Type Description
DataSchemaDetails.SearchStrategy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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