Class TextExtractionAnnotation.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<TextExtractionAnnotation.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<TextExtractionAnnotation.Builder>
      • getDefaultInstanceForType

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

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

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

        public TextExtractionAnnotation.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<TextExtractionAnnotation.Builder>
      • addRepeatedField

        public TextExtractionAnnotation.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<TextExtractionAnnotation.Builder>
      • isInitialized

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

        public TextExtractionAnnotation.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<TextExtractionAnnotation.Builder>
        Throws:
        IOException
      • hasTextSegment

        public boolean hasTextSegment()
         An entity annotation will set this, which is the part of the original
         text to which the annotation pertains.
         
        .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
        Specified by:
        hasTextSegment in interface TextExtractionAnnotationOrBuilder
        Returns:
        Whether the textSegment field is set.
      • getTextSegment

        public TextSegment getTextSegment()
         An entity annotation will set this, which is the part of the original
         text to which the annotation pertains.
         
        .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
        Specified by:
        getTextSegment in interface TextExtractionAnnotationOrBuilder
        Returns:
        The textSegment.
      • setTextSegment

        public TextExtractionAnnotation.Builder setTextSegment​(TextSegment value)
         An entity annotation will set this, which is the part of the original
         text to which the annotation pertains.
         
        .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
      • setTextSegment

        public TextExtractionAnnotation.Builder setTextSegment​(TextSegment.Builder builderForValue)
         An entity annotation will set this, which is the part of the original
         text to which the annotation pertains.
         
        .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
      • mergeTextSegment

        public TextExtractionAnnotation.Builder mergeTextSegment​(TextSegment value)
         An entity annotation will set this, which is the part of the original
         text to which the annotation pertains.
         
        .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
      • clearTextSegment

        public TextExtractionAnnotation.Builder clearTextSegment()
         An entity annotation will set this, which is the part of the original
         text to which the annotation pertains.
         
        .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
      • getTextSegmentBuilder

        public TextSegment.Builder getTextSegmentBuilder()
         An entity annotation will set this, which is the part of the original
         text to which the annotation pertains.
         
        .google.cloud.automl.v1beta1.TextSegment text_segment = 3;
      • getScore

        public float getScore()
         Output only. A confidence estimate between 0.0 and 1.0. A higher value
         means greater confidence in correctness of the annotation.
         
        float score = 1;
        Specified by:
        getScore in interface TextExtractionAnnotationOrBuilder
        Returns:
        The score.
      • setScore

        public TextExtractionAnnotation.Builder setScore​(float value)
         Output only. A confidence estimate between 0.0 and 1.0. A higher value
         means greater confidence in correctness of the annotation.
         
        float score = 1;
        Parameters:
        value - The score to set.
        Returns:
        This builder for chaining.
      • clearScore

        public TextExtractionAnnotation.Builder clearScore()
         Output only. A confidence estimate between 0.0 and 1.0. A higher value
         means greater confidence in correctness of the annotation.
         
        float score = 1;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final TextExtractionAnnotation.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<TextExtractionAnnotation.Builder>
      • mergeUnknownFields

        public final TextExtractionAnnotation.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<TextExtractionAnnotation.Builder>