Class ClassificationProto.ClassificationAnnotation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ClassificationProto.ClassificationAnnotation.Builder>
com.google.cloud.automl.v1beta1.ClassificationProto.ClassificationAnnotation.Builder
All Implemented Interfaces:
ClassificationProto.ClassificationAnnotationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ClassificationProto.ClassificationAnnotation

public static final class ClassificationProto.ClassificationAnnotation.Builder extends com.google.protobuf.GeneratedMessage.Builder<ClassificationProto.ClassificationAnnotation.Builder> implements ClassificationProto.ClassificationAnnotationOrBuilder
 Contains annotation details specific to classification.
 
Protobuf type google.cloud.automl.v1beta1.ClassificationAnnotation
  • 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<ClassificationProto.ClassificationAnnotation.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<ClassificationProto.ClassificationAnnotation.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<ClassificationProto.ClassificationAnnotation.Builder>
    • getDefaultInstanceForType

      public ClassificationProto.ClassificationAnnotation 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

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

      public ClassificationProto.ClassificationAnnotation.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<ClassificationProto.ClassificationAnnotation.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<ClassificationProto.ClassificationAnnotation.Builder>
    • mergeFrom

      public ClassificationProto.ClassificationAnnotation.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<ClassificationProto.ClassificationAnnotation.Builder>
      Throws:
      IOException
    • getScore

      public float getScore()
       Output only. A confidence estimate between 0.0 and 1.0. A higher value
       means greater confidence that the annotation is positive. If a user
       approves an annotation as negative or positive, the score value remains
       unchanged. If a user creates an annotation, the score is 0 for negative or
       1 for positive.
       
      float score = 1;
      Specified by:
      getScore in interface ClassificationProto.ClassificationAnnotationOrBuilder
      Returns:
      The score.
    • setScore

       Output only. A confidence estimate between 0.0 and 1.0. A higher value
       means greater confidence that the annotation is positive. If a user
       approves an annotation as negative or positive, the score value remains
       unchanged. If a user creates an annotation, the score is 0 for negative or
       1 for positive.
       
      float score = 1;
      Parameters:
      value - The score to set.
      Returns:
      This builder for chaining.
    • clearScore

       Output only. A confidence estimate between 0.0 and 1.0. A higher value
       means greater confidence that the annotation is positive. If a user
       approves an annotation as negative or positive, the score value remains
       unchanged. If a user creates an annotation, the score is 0 for negative or
       1 for positive.
       
      float score = 1;
      Returns:
      This builder for chaining.