Class TextAnnotation.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TextAnnotationOrBuilder, Cloneable
    Enclosing class:
    TextAnnotation

    public static final class TextAnnotation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>
    implements TextAnnotationOrBuilder
    Protobuf type IronPdfEngine.Proto.TextAnnotation
    • 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<TextAnnotation.Builder>
      • clear

        public TextAnnotation.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.GeneratedMessageV3.Builder<TextAnnotation.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<TextAnnotation.Builder>
      • getDefaultInstanceForType

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

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

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

        public TextAnnotation.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>
      • setField

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

        public TextAnnotation.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>
      • clearOneof

        public TextAnnotation.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TextAnnotation.Builder>
      • setRepeatedField

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

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

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

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

        public TextAnnotation.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<TextAnnotation.Builder>
        Throws:
        IOException
      • hasColorCode

        public boolean hasColorCode()
        optional string color_code = 1;
        Specified by:
        hasColorCode in interface TextAnnotationOrBuilder
        Returns:
        Whether the colorCode field is set.
      • getColorCodeBytes

        public com.google.protobuf.ByteString getColorCodeBytes()
        optional string color_code = 1;
        Specified by:
        getColorCodeBytes in interface TextAnnotationOrBuilder
        Returns:
        The bytes for colorCode.
      • setColorCode

        public TextAnnotation.Builder setColorCode​(String value)
        optional string color_code = 1;
        Parameters:
        value - The colorCode to set.
        Returns:
        This builder for chaining.
      • clearColorCode

        public TextAnnotation.Builder clearColorCode()
        optional string color_code = 1;
        Returns:
        This builder for chaining.
      • setColorCodeBytes

        public TextAnnotation.Builder setColorCodeBytes​(com.google.protobuf.ByteString value)
        optional string color_code = 1;
        Parameters:
        value - The bytes for colorCode to set.
        Returns:
        This builder for chaining.
      • hasContents

        public boolean hasContents()
        optional string contents = 2;
        Specified by:
        hasContents in interface TextAnnotationOrBuilder
        Returns:
        Whether the contents field is set.
      • getContentsBytes

        public com.google.protobuf.ByteString getContentsBytes()
        optional string contents = 2;
        Specified by:
        getContentsBytes in interface TextAnnotationOrBuilder
        Returns:
        The bytes for contents.
      • setContents

        public TextAnnotation.Builder setContents​(String value)
        optional string contents = 2;
        Parameters:
        value - The contents to set.
        Returns:
        This builder for chaining.
      • clearContents

        public TextAnnotation.Builder clearContents()
        optional string contents = 2;
        Returns:
        This builder for chaining.
      • setContentsBytes

        public TextAnnotation.Builder setContentsBytes​(com.google.protobuf.ByteString value)
        optional string contents = 2;
        Parameters:
        value - The bytes for contents to set.
        Returns:
        This builder for chaining.
      • hasHidden

        public boolean hasHidden()
        optional bool hidden = 3;
        Specified by:
        hasHidden in interface TextAnnotationOrBuilder
        Returns:
        Whether the hidden field is set.
      • setHidden

        public TextAnnotation.Builder setHidden​(boolean value)
        optional bool hidden = 3;
        Parameters:
        value - The hidden to set.
        Returns:
        This builder for chaining.
      • clearHidden

        public TextAnnotation.Builder clearHidden()
        optional bool hidden = 3;
        Returns:
        This builder for chaining.
      • hasOpacity

        public boolean hasOpacity()
        optional double opacity = 4;
        Specified by:
        hasOpacity in interface TextAnnotationOrBuilder
        Returns:
        Whether the opacity field is set.
      • setOpacity

        public TextAnnotation.Builder setOpacity​(double value)
        optional double opacity = 4;
        Parameters:
        value - The opacity to set.
        Returns:
        This builder for chaining.
      • clearOpacity

        public TextAnnotation.Builder clearOpacity()
        optional double opacity = 4;
        Returns:
        This builder for chaining.
      • hasOpenByDefault

        public boolean hasOpenByDefault()
        optional bool open_by_default = 5;
        Specified by:
        hasOpenByDefault in interface TextAnnotationOrBuilder
        Returns:
        Whether the openByDefault field is set.
      • setOpenByDefault

        public TextAnnotation.Builder setOpenByDefault​(boolean value)
        optional bool open_by_default = 5;
        Parameters:
        value - The openByDefault to set.
        Returns:
        This builder for chaining.
      • clearOpenByDefault

        public TextAnnotation.Builder clearOpenByDefault()
        optional bool open_by_default = 5;
        Returns:
        This builder for chaining.
      • hasPrintable

        public boolean hasPrintable()
        optional bool printable = 6;
        Specified by:
        hasPrintable in interface TextAnnotationOrBuilder
        Returns:
        Whether the printable field is set.
      • setPrintable

        public TextAnnotation.Builder setPrintable​(boolean value)
        optional bool printable = 6;
        Parameters:
        value - The printable to set.
        Returns:
        This builder for chaining.
      • clearPrintable

        public TextAnnotation.Builder clearPrintable()
        optional bool printable = 6;
        Returns:
        This builder for chaining.
      • hasReadOnly

        public boolean hasReadOnly()
        optional bool read_only = 7;
        Specified by:
        hasReadOnly in interface TextAnnotationOrBuilder
        Returns:
        Whether the readOnly field is set.
      • setReadOnly

        public TextAnnotation.Builder setReadOnly​(boolean value)
        optional bool read_only = 7;
        Parameters:
        value - The readOnly to set.
        Returns:
        This builder for chaining.
      • clearReadOnly

        public TextAnnotation.Builder clearReadOnly()
        optional bool read_only = 7;
        Returns:
        This builder for chaining.
      • hasRotateable

        public boolean hasRotateable()
        optional bool rotateable = 8;
        Specified by:
        hasRotateable in interface TextAnnotationOrBuilder
        Returns:
        Whether the rotateable field is set.
      • setRotateable

        public TextAnnotation.Builder setRotateable​(boolean value)
        optional bool rotateable = 8;
        Parameters:
        value - The rotateable to set.
        Returns:
        This builder for chaining.
      • clearRotateable

        public TextAnnotation.Builder clearRotateable()
        optional bool rotateable = 8;
        Returns:
        This builder for chaining.
      • hasSubject

        public boolean hasSubject()
        optional string subject = 9;
        Specified by:
        hasSubject in interface TextAnnotationOrBuilder
        Returns:
        Whether the subject field is set.
      • getSubjectBytes

        public com.google.protobuf.ByteString getSubjectBytes()
        optional string subject = 9;
        Specified by:
        getSubjectBytes in interface TextAnnotationOrBuilder
        Returns:
        The bytes for subject.
      • setSubject

        public TextAnnotation.Builder setSubject​(String value)
        optional string subject = 9;
        Parameters:
        value - The subject to set.
        Returns:
        This builder for chaining.
      • clearSubject

        public TextAnnotation.Builder clearSubject()
        optional string subject = 9;
        Returns:
        This builder for chaining.
      • setSubjectBytes

        public TextAnnotation.Builder setSubjectBytes​(com.google.protobuf.ByteString value)
        optional string subject = 9;
        Parameters:
        value - The bytes for subject to set.
        Returns:
        This builder for chaining.
      • hasTitle

        public boolean hasTitle()
        optional string title = 10;
        Specified by:
        hasTitle in interface TextAnnotationOrBuilder
        Returns:
        Whether the title field is set.
      • getTitleBytes

        public com.google.protobuf.ByteString getTitleBytes()
        optional string title = 10;
        Specified by:
        getTitleBytes in interface TextAnnotationOrBuilder
        Returns:
        The bytes for title.
      • setTitle

        public TextAnnotation.Builder setTitle​(String value)
        optional string title = 10;
        Parameters:
        value - The title to set.
        Returns:
        This builder for chaining.
      • clearTitle

        public TextAnnotation.Builder clearTitle()
        optional string title = 10;
        Returns:
        This builder for chaining.
      • setTitleBytes

        public TextAnnotation.Builder setTitleBytes​(com.google.protobuf.ByteString value)
        optional string title = 10;
        Parameters:
        value - The bytes for title to set.
        Returns:
        This builder for chaining.
      • hasIcon

        public boolean hasIcon()
        optional .IronPdfEngine.Proto.AnnotationIcon icon = 11;
        Specified by:
        hasIcon in interface TextAnnotationOrBuilder
        Returns:
        Whether the icon field is set.
      • clearIcon

        public TextAnnotation.Builder clearIcon()
        optional .IronPdfEngine.Proto.AnnotationIcon icon = 11;
      • getIconBuilder

        public AnnotationIcon.Builder getIconBuilder()
        optional .IronPdfEngine.Proto.AnnotationIcon icon = 11;
      • setUnknownFields

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

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