Class ClassificationAnnotation.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<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.GeneratedMessageV3.Builder<ClassificationAnnotation.Builder>
      • getDefaultInstanceForType

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

        public ClassificationAnnotation build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ClassificationAnnotation buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public ClassificationAnnotation.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationAnnotation.Builder>
      • addRepeatedField

        public ClassificationAnnotation.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationAnnotation.Builder>
      • isInitialized

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

        public 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<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 ClassificationAnnotationOrBuilder
        Returns:
        The score.
      • setScore

        public ClassificationAnnotation.Builder setScore​(float value)
         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

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

        public final ClassificationAnnotation.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationAnnotation.Builder>
      • mergeUnknownFields

        public final ClassificationAnnotation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationAnnotation.Builder>