Class TagParsingConfig.EntityParsingConfig.Builder

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

public static final class TagParsingConfig.EntityParsingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<TagParsingConfig.EntityParsingConfig.Builder> implements TagParsingConfig.EntityParsingConfigOrBuilder
 Configuration for parsing a tag entity class.
 
Protobuf type google.cloud.visionai.v1.TagParsingConfig.EntityParsingConfig
  • 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<TagParsingConfig.EntityParsingConfig.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<TagParsingConfig.EntityParsingConfig.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<TagParsingConfig.EntityParsingConfig.Builder>
    • getDefaultInstanceForType

      public TagParsingConfig.EntityParsingConfig 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 TagParsingConfig.EntityParsingConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TagParsingConfig.EntityParsingConfig.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<TagParsingConfig.EntityParsingConfig.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<TagParsingConfig.EntityParsingConfig.Builder>
    • mergeFrom

      public TagParsingConfig.EntityParsingConfig.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<TagParsingConfig.EntityParsingConfig.Builder>
      Throws:
      IOException
    • getEntityClass

      public String getEntityClass()
       Required. The tag entity class name. This should match the class name
       produced by the tag entity detection model.
       
      string entity_class = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntityClass in interface TagParsingConfig.EntityParsingConfigOrBuilder
      Returns:
      The entityClass.
    • getEntityClassBytes

      public com.google.protobuf.ByteString getEntityClassBytes()
       Required. The tag entity class name. This should match the class name
       produced by the tag entity detection model.
       
      string entity_class = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntityClassBytes in interface TagParsingConfig.EntityParsingConfigOrBuilder
      Returns:
      The bytes for entityClass.
    • setEntityClass

       Required. The tag entity class name. This should match the class name
       produced by the tag entity detection model.
       
      string entity_class = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The entityClass to set.
      Returns:
      This builder for chaining.
    • clearEntityClass

       Required. The tag entity class name. This should match the class name
       produced by the tag entity detection model.
       
      string entity_class = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setEntityClassBytes

      public TagParsingConfig.EntityParsingConfig.Builder setEntityClassBytes(com.google.protobuf.ByteString value)
       Required. The tag entity class name. This should match the class name
       produced by the tag entity detection model.
       
      string entity_class = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for entityClass to set.
      Returns:
      This builder for chaining.
    • getRegex

      public String getRegex()
       Optional. An regular expression hint.
       
      string regex = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRegex in interface TagParsingConfig.EntityParsingConfigOrBuilder
      Returns:
      The regex.
    • getRegexBytes

      public com.google.protobuf.ByteString getRegexBytes()
       Optional. An regular expression hint.
       
      string regex = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRegexBytes in interface TagParsingConfig.EntityParsingConfigOrBuilder
      Returns:
      The bytes for regex.
    • setRegex

       Optional. An regular expression hint.
       
      string regex = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The regex to set.
      Returns:
      This builder for chaining.
    • clearRegex

       Optional. An regular expression hint.
       
      string regex = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRegexBytes

      public TagParsingConfig.EntityParsingConfig.Builder setRegexBytes(com.google.protobuf.ByteString value)
       Optional. An regular expression hint.
       
      string regex = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for regex to set.
      Returns:
      This builder for chaining.
    • getEntityMatchingStrategyValue

      public int getEntityMatchingStrategyValue()
       Optional. Entity matching strategy.
       
      .google.cloud.visionai.v1.TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy entity_matching_strategy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEntityMatchingStrategyValue in interface TagParsingConfig.EntityParsingConfigOrBuilder
      Returns:
      The enum numeric value on the wire for entityMatchingStrategy.
    • setEntityMatchingStrategyValue

      public TagParsingConfig.EntityParsingConfig.Builder setEntityMatchingStrategyValue(int value)
       Optional. Entity matching strategy.
       
      .google.cloud.visionai.v1.TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy entity_matching_strategy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for entityMatchingStrategy to set.
      Returns:
      This builder for chaining.
    • getEntityMatchingStrategy

       Optional. Entity matching strategy.
       
      .google.cloud.visionai.v1.TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy entity_matching_strategy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEntityMatchingStrategy in interface TagParsingConfig.EntityParsingConfigOrBuilder
      Returns:
      The entityMatchingStrategy.
    • setEntityMatchingStrategy

       Optional. Entity matching strategy.
       
      .google.cloud.visionai.v1.TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy entity_matching_strategy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The entityMatchingStrategy to set.
      Returns:
      This builder for chaining.
    • clearEntityMatchingStrategy

      public TagParsingConfig.EntityParsingConfig.Builder clearEntityMatchingStrategy()
       Optional. Entity matching strategy.
       
      .google.cloud.visionai.v1.TagParsingConfig.EntityParsingConfig.EntityMatchingStrategy entity_matching_strategy = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.