All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: pdfium_form.proto

// Protobuf Java Version: 3.25.0
package com.ironsoftware.ironpdf.internal.proto;

/**
 * Protobuf type {@code ironpdfengineproto.PdfiumIFormFieldAnnotationP}
 */
public final class PdfiumIFormFieldAnnotationP extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:ironpdfengineproto.PdfiumIFormFieldAnnotationP)
    PdfiumIFormFieldAnnotationPOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PdfiumIFormFieldAnnotationP.newBuilder() to construct.
  private PdfiumIFormFieldAnnotationP(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private PdfiumIFormFieldAnnotationP() {
    appearances_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    appearanceState_ = "";
    onAppearance_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new PdfiumIFormFieldAnnotationP();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.ironsoftware.ironpdf.internal.proto.PdfiumForm.internal_static_ironpdfengineproto_PdfiumIFormFieldAnnotationP_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.ironsoftware.ironpdf.internal.proto.PdfiumForm.internal_static_ironpdfengineproto_PdfiumIFormFieldAnnotationP_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP.class, com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP.Builder.class);
  }

  private int bitField0_;
  public static final int DOCUMENT_OBJECT_FIELD_NUMBER = 1;
  private com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP documentObject_;
  /**
   * .ironpdfengineproto.PdfiumIDocumentObjectP document_object = 1;
   * @return Whether the documentObject field is set.
   */
  @java.lang.Override
  public boolean hasDocumentObject() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .ironpdfengineproto.PdfiumIDocumentObjectP document_object = 1;
   * @return The documentObject.
   */
  @java.lang.Override
  public com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP getDocumentObject() {
    return documentObject_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP.getDefaultInstance() : documentObject_;
  }
  /**
   * .ironpdfengineproto.PdfiumIDocumentObjectP document_object = 1;
   */
  @java.lang.Override
  public com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectPOrBuilder getDocumentObjectOrBuilder() {
    return documentObject_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP.getDefaultInstance() : documentObject_;
  }

  public static final int ANNOTATION_OBJECT_FIELD_NUMBER = 2;
  private com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP annotationObject_;
  /**
   * .ironpdfengineproto.PdfiumIFormFieldAnnotationObjectP annotation_object = 2;
   * @return Whether the annotationObject field is set.
   */
  @java.lang.Override
  public boolean hasAnnotationObject() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * .ironpdfengineproto.PdfiumIFormFieldAnnotationObjectP annotation_object = 2;
   * @return The annotationObject.
   */
  @java.lang.Override
  public com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP getAnnotationObject() {
    return annotationObject_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP.getDefaultInstance() : annotationObject_;
  }
  /**
   * .ironpdfengineproto.PdfiumIFormFieldAnnotationObjectP annotation_object = 2;
   */
  @java.lang.Override
  public com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectPOrBuilder getAnnotationObjectOrBuilder() {
    return annotationObject_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP.getDefaultInstance() : annotationObject_;
  }

  public static final int APPEARANCES_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringArrayList appearances_ =
      com.google.protobuf.LazyStringArrayList.emptyList();
  /**
   * repeated string appearances = 3;
   * @return A list containing the appearances.
   */
  public com.google.protobuf.ProtocolStringList
      getAppearancesList() {
    return appearances_;
  }
  /**
   * repeated string appearances = 3;
   * @return The count of appearances.
   */
  public int getAppearancesCount() {
    return appearances_.size();
  }
  /**
   * repeated string appearances = 3;
   * @param index The index of the element to return.
   * @return The appearances at the given index.
   */
  public java.lang.String getAppearances(int index) {
    return appearances_.get(index);
  }
  /**
   * repeated string appearances = 3;
   * @param index The index of the value to return.
   * @return The bytes of the appearances at the given index.
   */
  public com.google.protobuf.ByteString
      getAppearancesBytes(int index) {
    return appearances_.getByteString(index);
  }

  public static final int APPEARANCE_STATE_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private volatile java.lang.Object appearanceState_ = "";
  /**
   * string appearance_state = 4;
   * @return The appearanceState.
   */
  @java.lang.Override
  public java.lang.String getAppearanceState() {
    java.lang.Object ref = appearanceState_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      appearanceState_ = s;
      return s;
    }
  }
  /**
   * string appearance_state = 4;
   * @return The bytes for appearanceState.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAppearanceStateBytes() {
    java.lang.Object ref = appearanceState_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      appearanceState_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ANNOTATION_FLAGS_FIELD_NUMBER = 5;
  private com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP annotationFlags_;
  /**
   * .ironpdfengineproto.PdfiumPdfAnnotationFlagsP annotation_flags = 5;
   * @return Whether the annotationFlags field is set.
   */
  @java.lang.Override
  public boolean hasAnnotationFlags() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * .ironpdfengineproto.PdfiumPdfAnnotationFlagsP annotation_flags = 5;
   * @return The annotationFlags.
   */
  @java.lang.Override
  public com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP getAnnotationFlags() {
    return annotationFlags_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP.getDefaultInstance() : annotationFlags_;
  }
  /**
   * .ironpdfengineproto.PdfiumPdfAnnotationFlagsP annotation_flags = 5;
   */
  @java.lang.Override
  public com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsPOrBuilder getAnnotationFlagsOrBuilder() {
    return annotationFlags_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP.getDefaultInstance() : annotationFlags_;
  }

  public static final int ON_APPEARANCE_FIELD_NUMBER = 6;
  @SuppressWarnings("serial")
  private volatile java.lang.Object onAppearance_ = "";
  /**
   * string on_appearance = 6;
   * @return The onAppearance.
   */
  @java.lang.Override
  public java.lang.String getOnAppearance() {
    java.lang.Object ref = onAppearance_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      onAppearance_ = s;
      return s;
    }
  }
  /**
   * string on_appearance = 6;
   * @return The bytes for onAppearance.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOnAppearanceBytes() {
    java.lang.Object ref = onAppearance_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      onAppearance_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getDocumentObject());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(2, getAnnotationObject());
    }
    for (int i = 0; i < appearances_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, appearances_.getRaw(i));
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appearanceState_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, appearanceState_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(5, getAnnotationFlags());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(onAppearance_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, onAppearance_);
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getDocumentObject());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getAnnotationObject());
    }
    {
      int dataSize = 0;
      for (int i = 0; i < appearances_.size(); i++) {
        dataSize += computeStringSizeNoTag(appearances_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getAppearancesList().size();
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appearanceState_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, appearanceState_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, getAnnotationFlags());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(onAppearance_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, onAppearance_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP)) {
      return super.equals(obj);
    }
    com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP other = (com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP) obj;

    if (hasDocumentObject() != other.hasDocumentObject()) return false;
    if (hasDocumentObject()) {
      if (!getDocumentObject()
          .equals(other.getDocumentObject())) return false;
    }
    if (hasAnnotationObject() != other.hasAnnotationObject()) return false;
    if (hasAnnotationObject()) {
      if (!getAnnotationObject()
          .equals(other.getAnnotationObject())) return false;
    }
    if (!getAppearancesList()
        .equals(other.getAppearancesList())) return false;
    if (!getAppearanceState()
        .equals(other.getAppearanceState())) return false;
    if (hasAnnotationFlags() != other.hasAnnotationFlags()) return false;
    if (hasAnnotationFlags()) {
      if (!getAnnotationFlags()
          .equals(other.getAnnotationFlags())) return false;
    }
    if (!getOnAppearance()
        .equals(other.getOnAppearance())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasDocumentObject()) {
      hash = (37 * hash) + DOCUMENT_OBJECT_FIELD_NUMBER;
      hash = (53 * hash) + getDocumentObject().hashCode();
    }
    if (hasAnnotationObject()) {
      hash = (37 * hash) + ANNOTATION_OBJECT_FIELD_NUMBER;
      hash = (53 * hash) + getAnnotationObject().hashCode();
    }
    if (getAppearancesCount() > 0) {
      hash = (37 * hash) + APPEARANCES_FIELD_NUMBER;
      hash = (53 * hash) + getAppearancesList().hashCode();
    }
    hash = (37 * hash) + APPEARANCE_STATE_FIELD_NUMBER;
    hash = (53 * hash) + getAppearanceState().hashCode();
    if (hasAnnotationFlags()) {
      hash = (37 * hash) + ANNOTATION_FLAGS_FIELD_NUMBER;
      hash = (53 * hash) + getAnnotationFlags().hashCode();
    }
    hash = (37 * hash) + ON_APPEARANCE_FIELD_NUMBER;
    hash = (53 * hash) + getOnAppearance().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code ironpdfengineproto.PdfiumIFormFieldAnnotationP}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:ironpdfengineproto.PdfiumIFormFieldAnnotationP)
      com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationPOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ironsoftware.ironpdf.internal.proto.PdfiumForm.internal_static_ironpdfengineproto_PdfiumIFormFieldAnnotationP_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.ironsoftware.ironpdf.internal.proto.PdfiumForm.internal_static_ironpdfengineproto_PdfiumIFormFieldAnnotationP_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP.class, com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP.Builder.class);
    }

    // Construct using com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getDocumentObjectFieldBuilder();
        getAnnotationObjectFieldBuilder();
        getAnnotationFlagsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      documentObject_ = null;
      if (documentObjectBuilder_ != null) {
        documentObjectBuilder_.dispose();
        documentObjectBuilder_ = null;
      }
      annotationObject_ = null;
      if (annotationObjectBuilder_ != null) {
        annotationObjectBuilder_.dispose();
        annotationObjectBuilder_ = null;
      }
      appearances_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      appearanceState_ = "";
      annotationFlags_ = null;
      if (annotationFlagsBuilder_ != null) {
        annotationFlagsBuilder_.dispose();
        annotationFlagsBuilder_ = null;
      }
      onAppearance_ = "";
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.ironsoftware.ironpdf.internal.proto.PdfiumForm.internal_static_ironpdfengineproto_PdfiumIFormFieldAnnotationP_descriptor;
    }

    @java.lang.Override
    public com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP getDefaultInstanceForType() {
      return com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP.getDefaultInstance();
    }

    @java.lang.Override
    public com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP build() {
      com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP buildPartial() {
      com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP result = new com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.documentObject_ = documentObjectBuilder_ == null
            ? documentObject_
            : documentObjectBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.annotationObject_ = annotationObjectBuilder_ == null
            ? annotationObject_
            : annotationObjectBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        appearances_.makeImmutable();
        result.appearances_ = appearances_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.appearanceState_ = appearanceState_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.annotationFlags_ = annotationFlagsBuilder_ == null
            ? annotationFlags_
            : annotationFlagsBuilder_.build();
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.onAppearance_ = onAppearance_;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP) {
        return mergeFrom((com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP other) {
      if (other == com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP.getDefaultInstance()) return this;
      if (other.hasDocumentObject()) {
        mergeDocumentObject(other.getDocumentObject());
      }
      if (other.hasAnnotationObject()) {
        mergeAnnotationObject(other.getAnnotationObject());
      }
      if (!other.appearances_.isEmpty()) {
        if (appearances_.isEmpty()) {
          appearances_ = other.appearances_;
          bitField0_ |= 0x00000004;
        } else {
          ensureAppearancesIsMutable();
          appearances_.addAll(other.appearances_);
        }
        onChanged();
      }
      if (!other.getAppearanceState().isEmpty()) {
        appearanceState_ = other.appearanceState_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (other.hasAnnotationFlags()) {
        mergeAnnotationFlags(other.getAnnotationFlags());
      }
      if (!other.getOnAppearance().isEmpty()) {
        onAppearance_ = other.onAppearance_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              input.readMessage(
                  getDocumentObjectFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getAnnotationObjectFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();
              ensureAppearancesIsMutable();
              appearances_.add(s);
              break;
            } // case 26
            case 34: {
              appearanceState_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            case 42: {
              input.readMessage(
                  getAnnotationFlagsFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000010;
              break;
            } // case 42
            case 50: {
              onAppearance_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000020;
              break;
            } // case 50
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP documentObject_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP, com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectPOrBuilder> documentObjectBuilder_;
    /**
     * .ironpdfengineproto.PdfiumIDocumentObjectP document_object = 1;
     * @return Whether the documentObject field is set.
     */
    public boolean hasDocumentObject() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .ironpdfengineproto.PdfiumIDocumentObjectP document_object = 1;
     * @return The documentObject.
     */
    public com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP getDocumentObject() {
      if (documentObjectBuilder_ == null) {
        return documentObject_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP.getDefaultInstance() : documentObject_;
      } else {
        return documentObjectBuilder_.getMessage();
      }
    }
    /**
     * .ironpdfengineproto.PdfiumIDocumentObjectP document_object = 1;
     */
    public Builder setDocumentObject(com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP value) {
      if (documentObjectBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        documentObject_ = value;
      } else {
        documentObjectBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .ironpdfengineproto.PdfiumIDocumentObjectP document_object = 1;
     */
    public Builder setDocumentObject(
        com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP.Builder builderForValue) {
      if (documentObjectBuilder_ == null) {
        documentObject_ = builderForValue.build();
      } else {
        documentObjectBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .ironpdfengineproto.PdfiumIDocumentObjectP document_object = 1;
     */
    public Builder mergeDocumentObject(com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP value) {
      if (documentObjectBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          documentObject_ != null &&
          documentObject_ != com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP.getDefaultInstance()) {
          getDocumentObjectBuilder().mergeFrom(value);
        } else {
          documentObject_ = value;
        }
      } else {
        documentObjectBuilder_.mergeFrom(value);
      }
      if (documentObject_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * .ironpdfengineproto.PdfiumIDocumentObjectP document_object = 1;
     */
    public Builder clearDocumentObject() {
      bitField0_ = (bitField0_ & ~0x00000001);
      documentObject_ = null;
      if (documentObjectBuilder_ != null) {
        documentObjectBuilder_.dispose();
        documentObjectBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .ironpdfengineproto.PdfiumIDocumentObjectP document_object = 1;
     */
    public com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP.Builder getDocumentObjectBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getDocumentObjectFieldBuilder().getBuilder();
    }
    /**
     * .ironpdfengineproto.PdfiumIDocumentObjectP document_object = 1;
     */
    public com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectPOrBuilder getDocumentObjectOrBuilder() {
      if (documentObjectBuilder_ != null) {
        return documentObjectBuilder_.getMessageOrBuilder();
      } else {
        return documentObject_ == null ?
            com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP.getDefaultInstance() : documentObject_;
      }
    }
    /**
     * .ironpdfengineproto.PdfiumIDocumentObjectP document_object = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP, com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectPOrBuilder> 
        getDocumentObjectFieldBuilder() {
      if (documentObjectBuilder_ == null) {
        documentObjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP, com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfiumIDocumentObjectPOrBuilder>(
                getDocumentObject(),
                getParentForChildren(),
                isClean());
        documentObject_ = null;
      }
      return documentObjectBuilder_;
    }

    private com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP annotationObject_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP, com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectPOrBuilder> annotationObjectBuilder_;
    /**
     * .ironpdfengineproto.PdfiumIFormFieldAnnotationObjectP annotation_object = 2;
     * @return Whether the annotationObject field is set.
     */
    public boolean hasAnnotationObject() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * .ironpdfengineproto.PdfiumIFormFieldAnnotationObjectP annotation_object = 2;
     * @return The annotationObject.
     */
    public com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP getAnnotationObject() {
      if (annotationObjectBuilder_ == null) {
        return annotationObject_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP.getDefaultInstance() : annotationObject_;
      } else {
        return annotationObjectBuilder_.getMessage();
      }
    }
    /**
     * .ironpdfengineproto.PdfiumIFormFieldAnnotationObjectP annotation_object = 2;
     */
    public Builder setAnnotationObject(com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP value) {
      if (annotationObjectBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        annotationObject_ = value;
      } else {
        annotationObjectBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .ironpdfengineproto.PdfiumIFormFieldAnnotationObjectP annotation_object = 2;
     */
    public Builder setAnnotationObject(
        com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP.Builder builderForValue) {
      if (annotationObjectBuilder_ == null) {
        annotationObject_ = builderForValue.build();
      } else {
        annotationObjectBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .ironpdfengineproto.PdfiumIFormFieldAnnotationObjectP annotation_object = 2;
     */
    public Builder mergeAnnotationObject(com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP value) {
      if (annotationObjectBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
          annotationObject_ != null &&
          annotationObject_ != com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP.getDefaultInstance()) {
          getAnnotationObjectBuilder().mergeFrom(value);
        } else {
          annotationObject_ = value;
        }
      } else {
        annotationObjectBuilder_.mergeFrom(value);
      }
      if (annotationObject_ != null) {
        bitField0_ |= 0x00000002;
        onChanged();
      }
      return this;
    }
    /**
     * .ironpdfengineproto.PdfiumIFormFieldAnnotationObjectP annotation_object = 2;
     */
    public Builder clearAnnotationObject() {
      bitField0_ = (bitField0_ & ~0x00000002);
      annotationObject_ = null;
      if (annotationObjectBuilder_ != null) {
        annotationObjectBuilder_.dispose();
        annotationObjectBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .ironpdfengineproto.PdfiumIFormFieldAnnotationObjectP annotation_object = 2;
     */
    public com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP.Builder getAnnotationObjectBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getAnnotationObjectFieldBuilder().getBuilder();
    }
    /**
     * .ironpdfengineproto.PdfiumIFormFieldAnnotationObjectP annotation_object = 2;
     */
    public com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectPOrBuilder getAnnotationObjectOrBuilder() {
      if (annotationObjectBuilder_ != null) {
        return annotationObjectBuilder_.getMessageOrBuilder();
      } else {
        return annotationObject_ == null ?
            com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP.getDefaultInstance() : annotationObject_;
      }
    }
    /**
     * .ironpdfengineproto.PdfiumIFormFieldAnnotationObjectP annotation_object = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP, com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectPOrBuilder> 
        getAnnotationObjectFieldBuilder() {
      if (annotationObjectBuilder_ == null) {
        annotationObjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP, com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationObjectPOrBuilder>(
                getAnnotationObject(),
                getParentForChildren(),
                isClean());
        annotationObject_ = null;
      }
      return annotationObjectBuilder_;
    }

    private com.google.protobuf.LazyStringArrayList appearances_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    private void ensureAppearancesIsMutable() {
      if (!appearances_.isModifiable()) {
        appearances_ = new com.google.protobuf.LazyStringArrayList(appearances_);
      }
      bitField0_ |= 0x00000004;
    }
    /**
     * repeated string appearances = 3;
     * @return A list containing the appearances.
     */
    public com.google.protobuf.ProtocolStringList
        getAppearancesList() {
      appearances_.makeImmutable();
      return appearances_;
    }
    /**
     * repeated string appearances = 3;
     * @return The count of appearances.
     */
    public int getAppearancesCount() {
      return appearances_.size();
    }
    /**
     * repeated string appearances = 3;
     * @param index The index of the element to return.
     * @return The appearances at the given index.
     */
    public java.lang.String getAppearances(int index) {
      return appearances_.get(index);
    }
    /**
     * repeated string appearances = 3;
     * @param index The index of the value to return.
     * @return The bytes of the appearances at the given index.
     */
    public com.google.protobuf.ByteString
        getAppearancesBytes(int index) {
      return appearances_.getByteString(index);
    }
    /**
     * repeated string appearances = 3;
     * @param index The index to set the value at.
     * @param value The appearances to set.
     * @return This builder for chaining.
     */
    public Builder setAppearances(
        int index, java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      ensureAppearancesIsMutable();
      appearances_.set(index, value);
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * repeated string appearances = 3;
     * @param value The appearances to add.
     * @return This builder for chaining.
     */
    public Builder addAppearances(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      ensureAppearancesIsMutable();
      appearances_.add(value);
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * repeated string appearances = 3;
     * @param values The appearances to add.
     * @return This builder for chaining.
     */
    public Builder addAllAppearances(
        java.lang.Iterable values) {
      ensureAppearancesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, appearances_);
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * repeated string appearances = 3;
     * @return This builder for chaining.
     */
    public Builder clearAppearances() {
      appearances_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
      bitField0_ = (bitField0_ & ~0x00000004);;
      onChanged();
      return this;
    }
    /**
     * repeated string appearances = 3;
     * @param value The bytes of the appearances to add.
     * @return This builder for chaining.
     */
    public Builder addAppearancesBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      ensureAppearancesIsMutable();
      appearances_.add(value);
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object appearanceState_ = "";
    /**
     * string appearance_state = 4;
     * @return The appearanceState.
     */
    public java.lang.String getAppearanceState() {
      java.lang.Object ref = appearanceState_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        appearanceState_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string appearance_state = 4;
     * @return The bytes for appearanceState.
     */
    public com.google.protobuf.ByteString
        getAppearanceStateBytes() {
      java.lang.Object ref = appearanceState_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        appearanceState_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string appearance_state = 4;
     * @param value The appearanceState to set.
     * @return This builder for chaining.
     */
    public Builder setAppearanceState(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      appearanceState_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * string appearance_state = 4;
     * @return This builder for chaining.
     */
    public Builder clearAppearanceState() {
      appearanceState_ = getDefaultInstance().getAppearanceState();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     * string appearance_state = 4;
     * @param value The bytes for appearanceState to set.
     * @return This builder for chaining.
     */
    public Builder setAppearanceStateBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      appearanceState_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP annotationFlags_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP, com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsPOrBuilder> annotationFlagsBuilder_;
    /**
     * .ironpdfengineproto.PdfiumPdfAnnotationFlagsP annotation_flags = 5;
     * @return Whether the annotationFlags field is set.
     */
    public boolean hasAnnotationFlags() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * .ironpdfengineproto.PdfiumPdfAnnotationFlagsP annotation_flags = 5;
     * @return The annotationFlags.
     */
    public com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP getAnnotationFlags() {
      if (annotationFlagsBuilder_ == null) {
        return annotationFlags_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP.getDefaultInstance() : annotationFlags_;
      } else {
        return annotationFlagsBuilder_.getMessage();
      }
    }
    /**
     * .ironpdfengineproto.PdfiumPdfAnnotationFlagsP annotation_flags = 5;
     */
    public Builder setAnnotationFlags(com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP value) {
      if (annotationFlagsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        annotationFlags_ = value;
      } else {
        annotationFlagsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * .ironpdfengineproto.PdfiumPdfAnnotationFlagsP annotation_flags = 5;
     */
    public Builder setAnnotationFlags(
        com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP.Builder builderForValue) {
      if (annotationFlagsBuilder_ == null) {
        annotationFlags_ = builderForValue.build();
      } else {
        annotationFlagsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * .ironpdfengineproto.PdfiumPdfAnnotationFlagsP annotation_flags = 5;
     */
    public Builder mergeAnnotationFlags(com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP value) {
      if (annotationFlagsBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0) &&
          annotationFlags_ != null &&
          annotationFlags_ != com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP.getDefaultInstance()) {
          getAnnotationFlagsBuilder().mergeFrom(value);
        } else {
          annotationFlags_ = value;
        }
      } else {
        annotationFlagsBuilder_.mergeFrom(value);
      }
      if (annotationFlags_ != null) {
        bitField0_ |= 0x00000010;
        onChanged();
      }
      return this;
    }
    /**
     * .ironpdfengineproto.PdfiumPdfAnnotationFlagsP annotation_flags = 5;
     */
    public Builder clearAnnotationFlags() {
      bitField0_ = (bitField0_ & ~0x00000010);
      annotationFlags_ = null;
      if (annotationFlagsBuilder_ != null) {
        annotationFlagsBuilder_.dispose();
        annotationFlagsBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .ironpdfengineproto.PdfiumPdfAnnotationFlagsP annotation_flags = 5;
     */
    public com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP.Builder getAnnotationFlagsBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getAnnotationFlagsFieldBuilder().getBuilder();
    }
    /**
     * .ironpdfengineproto.PdfiumPdfAnnotationFlagsP annotation_flags = 5;
     */
    public com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsPOrBuilder getAnnotationFlagsOrBuilder() {
      if (annotationFlagsBuilder_ != null) {
        return annotationFlagsBuilder_.getMessageOrBuilder();
      } else {
        return annotationFlags_ == null ?
            com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP.getDefaultInstance() : annotationFlags_;
      }
    }
    /**
     * .ironpdfengineproto.PdfiumPdfAnnotationFlagsP annotation_flags = 5;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP, com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsPOrBuilder> 
        getAnnotationFlagsFieldBuilder() {
      if (annotationFlagsBuilder_ == null) {
        annotationFlagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP, com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfiumPdfAnnotationFlagsPOrBuilder>(
                getAnnotationFlags(),
                getParentForChildren(),
                isClean());
        annotationFlags_ = null;
      }
      return annotationFlagsBuilder_;
    }

    private java.lang.Object onAppearance_ = "";
    /**
     * string on_appearance = 6;
     * @return The onAppearance.
     */
    public java.lang.String getOnAppearance() {
      java.lang.Object ref = onAppearance_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        onAppearance_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string on_appearance = 6;
     * @return The bytes for onAppearance.
     */
    public com.google.protobuf.ByteString
        getOnAppearanceBytes() {
      java.lang.Object ref = onAppearance_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        onAppearance_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string on_appearance = 6;
     * @param value The onAppearance to set.
     * @return This builder for chaining.
     */
    public Builder setOnAppearance(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      onAppearance_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * string on_appearance = 6;
     * @return This builder for chaining.
     */
    public Builder clearOnAppearance() {
      onAppearance_ = getDefaultInstance().getOnAppearance();
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     * string on_appearance = 6;
     * @param value The bytes for onAppearance to set.
     * @return This builder for chaining.
     */
    public Builder setOnAppearanceBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      onAppearance_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:ironpdfengineproto.PdfiumIFormFieldAnnotationP)
  }

  // @@protoc_insertion_point(class_scope:ironpdfengineproto.PdfiumIFormFieldAnnotationP)
  private static final com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP();
  }

  public static com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public PdfiumIFormFieldAnnotationP parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.ironsoftware.ironpdf.internal.proto.PdfiumIFormFieldAnnotationP getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy