Class DataSchemaDetails.SearchStrategy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataSchemaDetails.SearchStrategy.Builder>
com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.Builder
All Implemented Interfaces:
DataSchemaDetails.SearchStrategyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DataSchemaDetails.SearchStrategy

public static final class DataSchemaDetails.SearchStrategy.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataSchemaDetails.SearchStrategy.Builder> implements DataSchemaDetails.SearchStrategyOrBuilder
 The search strategy for annotations value of the `key`.
 
Protobuf type google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DataSchemaDetails.SearchStrategy.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DataSchemaDetails.SearchStrategy.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DataSchemaDetails.SearchStrategy.Builder>
    • getDefaultInstanceForType

      public DataSchemaDetails.SearchStrategy getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DataSchemaDetails.SearchStrategy buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DataSchemaDetails.SearchStrategy.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataSchemaDetails.SearchStrategy.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DataSchemaDetails.SearchStrategy.Builder>
    • mergeFrom

      public DataSchemaDetails.SearchStrategy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataSchemaDetails.SearchStrategy.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      hasSearchStrategyType in interface DataSchemaDetails.SearchStrategyOrBuilder
      Returns:
      Whether the searchStrategyType field is set.
    • 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;
      Specified by:
      getSearchStrategyTypeValue in interface DataSchemaDetails.SearchStrategyOrBuilder
      Returns:
      The enum numeric value on the wire for searchStrategyType.
    • setSearchStrategyTypeValue

      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;
      Parameters:
      value - The enum numeric value on the wire for searchStrategyType to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getSearchStrategyType in interface DataSchemaDetails.SearchStrategyOrBuilder
      Returns:
      The searchStrategyType.
    • setSearchStrategyType

       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;
      Parameters:
      value - The searchStrategyType to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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];
      Specified by:
      hasConfidenceScoreIndexConfig in interface DataSchemaDetails.SearchStrategyOrBuilder
      Returns:
      Whether the confidenceScoreIndexConfig field is set.
    • 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];
      Specified by:
      getConfidenceScoreIndexConfig in interface DataSchemaDetails.SearchStrategyOrBuilder
      Returns:
      The confidenceScoreIndexConfig.
    • setConfidenceScoreIndexConfig

       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];
    • setConfidenceScoreIndexConfig

       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];
    • mergeConfidenceScoreIndexConfig

       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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getConfidenceScoreIndexConfigOrBuilder in interface DataSchemaDetails.SearchStrategyOrBuilder