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

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

Go to download

IronPDF Java library offers an extensive compatibility range, making it a go-to solution for a wide array of developers. It fully supports JVM languages like Java, Scala, and Kotlin, making it incredibly versatile. This Java PDF library is also compatible with Java 8 and above, providing optimum performance across multiple platforms. It's been designed with a wide range of users in mind Here's a look at what it supports: JVM Languages: Java, Scala, Kotlin.Platforms: Java 8 and above.Operating Systems: Microsoft Windows, Linux, Docker, Azure, AWS.IDEs: Jetbrains IntelliJ IDEA, Eclipse. You can deploy IronPDF Java across various platforms, including Microsoft Windows, Linux, Docker, Azure, and AWS. It is also fully compatible with popular IDEs like Jetbrains IntelliJ IDEA and Eclipse, facilitating smooth project development and management. Your pom.xml file is essentially the backbone of your project when you're using Maven. It's here where you introduce new dependencies that you wish to include. To make IronPDF Java package a part of your Maven project, you simply need to add the following snippets to your pom.xml: Remember to replace '20xx.xx.xxxx' with the latest version of IronPDF. IronPDF Java simplifies the process of creating PDF files. Convert HTML files, HTML strings, or URLs directly to new PDF documents in a few lines of code. The variety of file formats it handles is vast, as it can even transform images into PDF documents and vice versa. Need to use base 64 encoding, base URLs, or custom file paths? No problem! IronPDF Java has got you coveredFor more detail about installing and using IronPDF Java. When you run your project for the first time post-integration, IronPDF's engine binaries will automatically be downloaded. The engine starts its journey when you call any IronPDF function for the first time and takes a breather when your application is either closed or enters an idle state. It is not an open source java PDF library but here's the best part - IronPDF Java is offering a 30-day free trial. So, why wait? Give it a go and boost your PDF operations today.

There is a newer version: 2024.10.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: pdfium_text.proto

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

/**
 * Protobuf type {@code ironpdfengineproto.PdfiumDrawTextRequestP}
 */
public final class PdfiumDrawTextRequestP extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:ironpdfengineproto.PdfiumDrawTextRequestP)
    PdfiumDrawTextRequestPOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PdfiumDrawTextRequestP.newBuilder() to construct.
  private PdfiumDrawTextRequestP(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private PdfiumDrawTextRequestP() {
    text_ = "";
    fontName_ = "";
    color_ = "";
  }

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

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

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

  private int bitField0_;
  public static final int DOCUMENT_FIELD_NUMBER = 1;
  private com.ironsoftware.ironpdf.internal.proto.PdfDocumentP document_;
  /**
   * .ironpdfengineproto.PdfDocumentP document = 1;
   * @return Whether the document field is set.
   */
  @java.lang.Override
  public boolean hasDocument() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .ironpdfengineproto.PdfDocumentP document = 1;
   * @return The document.
   */
  @java.lang.Override
  public com.ironsoftware.ironpdf.internal.proto.PdfDocumentP getDocument() {
    return document_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfDocumentP.getDefaultInstance() : document_;
  }
  /**
   * .ironpdfengineproto.PdfDocumentP document = 1;
   */
  @java.lang.Override
  public com.ironsoftware.ironpdf.internal.proto.PdfDocumentPOrBuilder getDocumentOrBuilder() {
    return document_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfDocumentP.getDefaultInstance() : document_;
  }

  public static final int PAGE_INDEX_FIELD_NUMBER = 2;
  private int pageIndex_ = 0;
  /**
   * int32 page_index = 2;
   * @return The pageIndex.
   */
  @java.lang.Override
  public int getPageIndex() {
    return pageIndex_;
  }

  public static final int TEXT_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private volatile java.lang.Object text_ = "";
  /**
   * string text = 3;
   * @return The text.
   */
  @java.lang.Override
  public java.lang.String getText() {
    java.lang.Object ref = text_;
    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();
      text_ = s;
      return s;
    }
  }
  /**
   * string text = 3;
   * @return The bytes for text.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTextBytes() {
    java.lang.Object ref = text_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      text_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FONT_NAME_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private volatile java.lang.Object fontName_ = "";
  /**
   * string font_name = 4;
   * @return The fontName.
   */
  @java.lang.Override
  public java.lang.String getFontName() {
    java.lang.Object ref = fontName_;
    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();
      fontName_ = s;
      return s;
    }
  }
  /**
   * string font_name = 4;
   * @return The bytes for fontName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getFontNameBytes() {
    java.lang.Object ref = fontName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      fontName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int FONT_SIZE_FIELD_NUMBER = 5;
  private double fontSize_ = 0D;
  /**
   * double font_size = 5;
   * @return The fontSize.
   */
  @java.lang.Override
  public double getFontSize() {
    return fontSize_;
  }

  public static final int X_FIELD_NUMBER = 6;
  private double x_ = 0D;
  /**
   * double x = 6;
   * @return The x.
   */
  @java.lang.Override
  public double getX() {
    return x_;
  }

  public static final int Y_FIELD_NUMBER = 7;
  private double y_ = 0D;
  /**
   * double y = 7;
   * @return The y.
   */
  @java.lang.Override
  public double getY() {
    return y_;
  }

  public static final int SCALE_FIELD_NUMBER = 8;
  private double scale_ = 0D;
  /**
   * double scale = 8;
   * @return The scale.
   */
  @java.lang.Override
  public double getScale() {
    return scale_;
  }

  public static final int ROTATION_FIELD_NUMBER = 9;
  private double rotation_ = 0D;
  /**
   * double rotation = 9;
   * @return The rotation.
   */
  @java.lang.Override
  public double getRotation() {
    return rotation_;
  }

  public static final int COLOR_FIELD_NUMBER = 10;
  @SuppressWarnings("serial")
  private volatile java.lang.Object color_ = "";
  /**
   * string color = 10;
   * @return The color.
   */
  @java.lang.Override
  public java.lang.String getColor() {
    java.lang.Object ref = color_;
    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();
      color_ = s;
      return s;
    }
  }
  /**
   * string color = 10;
   * @return The bytes for color.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getColorBytes() {
    java.lang.Object ref = color_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      color_ = 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, getDocument());
    }
    if (pageIndex_ != 0) {
      output.writeInt32(2, pageIndex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, text_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fontName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, fontName_);
    }
    if (java.lang.Double.doubleToRawLongBits(fontSize_) != 0) {
      output.writeDouble(5, fontSize_);
    }
    if (java.lang.Double.doubleToRawLongBits(x_) != 0) {
      output.writeDouble(6, x_);
    }
    if (java.lang.Double.doubleToRawLongBits(y_) != 0) {
      output.writeDouble(7, y_);
    }
    if (java.lang.Double.doubleToRawLongBits(scale_) != 0) {
      output.writeDouble(8, scale_);
    }
    if (java.lang.Double.doubleToRawLongBits(rotation_) != 0) {
      output.writeDouble(9, rotation_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(color_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 10, color_);
    }
    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, getDocument());
    }
    if (pageIndex_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(2, pageIndex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fontName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, fontName_);
    }
    if (java.lang.Double.doubleToRawLongBits(fontSize_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(5, fontSize_);
    }
    if (java.lang.Double.doubleToRawLongBits(x_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(6, x_);
    }
    if (java.lang.Double.doubleToRawLongBits(y_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(7, y_);
    }
    if (java.lang.Double.doubleToRawLongBits(scale_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(8, scale_);
    }
    if (java.lang.Double.doubleToRawLongBits(rotation_) != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(9, rotation_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(color_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, color_);
    }
    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.PdfiumDrawTextRequestP)) {
      return super.equals(obj);
    }
    com.ironsoftware.ironpdf.internal.proto.PdfiumDrawTextRequestP other = (com.ironsoftware.ironpdf.internal.proto.PdfiumDrawTextRequestP) obj;

    if (hasDocument() != other.hasDocument()) return false;
    if (hasDocument()) {
      if (!getDocument()
          .equals(other.getDocument())) return false;
    }
    if (getPageIndex()
        != other.getPageIndex()) return false;
    if (!getText()
        .equals(other.getText())) return false;
    if (!getFontName()
        .equals(other.getFontName())) return false;
    if (java.lang.Double.doubleToLongBits(getFontSize())
        != java.lang.Double.doubleToLongBits(
            other.getFontSize())) return false;
    if (java.lang.Double.doubleToLongBits(getX())
        != java.lang.Double.doubleToLongBits(
            other.getX())) return false;
    if (java.lang.Double.doubleToLongBits(getY())
        != java.lang.Double.doubleToLongBits(
            other.getY())) return false;
    if (java.lang.Double.doubleToLongBits(getScale())
        != java.lang.Double.doubleToLongBits(
            other.getScale())) return false;
    if (java.lang.Double.doubleToLongBits(getRotation())
        != java.lang.Double.doubleToLongBits(
            other.getRotation())) return false;
    if (!getColor()
        .equals(other.getColor())) 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 (hasDocument()) {
      hash = (37 * hash) + DOCUMENT_FIELD_NUMBER;
      hash = (53 * hash) + getDocument().hashCode();
    }
    hash = (37 * hash) + PAGE_INDEX_FIELD_NUMBER;
    hash = (53 * hash) + getPageIndex();
    hash = (37 * hash) + TEXT_FIELD_NUMBER;
    hash = (53 * hash) + getText().hashCode();
    hash = (37 * hash) + FONT_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getFontName().hashCode();
    hash = (37 * hash) + FONT_SIZE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getFontSize()));
    hash = (37 * hash) + X_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getX()));
    hash = (37 * hash) + Y_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getY()));
    hash = (37 * hash) + SCALE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getScale()));
    hash = (37 * hash) + ROTATION_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        java.lang.Double.doubleToLongBits(getRotation()));
    hash = (37 * hash) + COLOR_FIELD_NUMBER;
    hash = (53 * hash) + getColor().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.ironsoftware.ironpdf.internal.proto.PdfiumDrawTextRequestP parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ironsoftware.ironpdf.internal.proto.PdfiumDrawTextRequestP 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.PdfiumDrawTextRequestP parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ironsoftware.ironpdf.internal.proto.PdfiumDrawTextRequestP 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.PdfiumDrawTextRequestP parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.ironsoftware.ironpdf.internal.proto.PdfiumDrawTextRequestP 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.PdfiumDrawTextRequestP parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.ironsoftware.ironpdf.internal.proto.PdfiumDrawTextRequestP 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.PdfiumDrawTextRequestP parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static com.ironsoftware.ironpdf.internal.proto.PdfiumDrawTextRequestP 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.PdfiumDrawTextRequestP 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.PdfiumDrawTextRequestP 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.PdfiumDrawTextRequestP 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.PdfiumDrawTextRequestP}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:ironpdfengineproto.PdfiumDrawTextRequestP)
      com.ironsoftware.ironpdf.internal.proto.PdfiumDrawTextRequestPOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.ironsoftware.ironpdf.internal.proto.PdfiumText.internal_static_ironpdfengineproto_PdfiumDrawTextRequestP_descriptor;
    }

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

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

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getDocumentFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      document_ = null;
      if (documentBuilder_ != null) {
        documentBuilder_.dispose();
        documentBuilder_ = null;
      }
      pageIndex_ = 0;
      text_ = "";
      fontName_ = "";
      fontSize_ = 0D;
      x_ = 0D;
      y_ = 0D;
      scale_ = 0D;
      rotation_ = 0D;
      color_ = "";
      return this;
    }

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

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

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

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

    private void buildPartial0(com.ironsoftware.ironpdf.internal.proto.PdfiumDrawTextRequestP result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.document_ = documentBuilder_ == null
            ? document_
            : documentBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.pageIndex_ = pageIndex_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.text_ = text_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.fontName_ = fontName_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.fontSize_ = fontSize_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.x_ = x_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.y_ = y_;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.scale_ = scale_;
      }
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.rotation_ = rotation_;
      }
      if (((from_bitField0_ & 0x00000200) != 0)) {
        result.color_ = color_;
      }
      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.PdfiumDrawTextRequestP) {
        return mergeFrom((com.ironsoftware.ironpdf.internal.proto.PdfiumDrawTextRequestP)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.ironsoftware.ironpdf.internal.proto.PdfiumDrawTextRequestP other) {
      if (other == com.ironsoftware.ironpdf.internal.proto.PdfiumDrawTextRequestP.getDefaultInstance()) return this;
      if (other.hasDocument()) {
        mergeDocument(other.getDocument());
      }
      if (other.getPageIndex() != 0) {
        setPageIndex(other.getPageIndex());
      }
      if (!other.getText().isEmpty()) {
        text_ = other.text_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getFontName().isEmpty()) {
        fontName_ = other.fontName_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (other.getFontSize() != 0D) {
        setFontSize(other.getFontSize());
      }
      if (other.getX() != 0D) {
        setX(other.getX());
      }
      if (other.getY() != 0D) {
        setY(other.getY());
      }
      if (other.getScale() != 0D) {
        setScale(other.getScale());
      }
      if (other.getRotation() != 0D) {
        setRotation(other.getRotation());
      }
      if (!other.getColor().isEmpty()) {
        color_ = other.color_;
        bitField0_ |= 0x00000200;
        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(
                  getDocumentFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 16: {
              pageIndex_ = input.readInt32();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 26: {
              text_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 34: {
              fontName_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            case 41: {
              fontSize_ = input.readDouble();
              bitField0_ |= 0x00000010;
              break;
            } // case 41
            case 49: {
              x_ = input.readDouble();
              bitField0_ |= 0x00000020;
              break;
            } // case 49
            case 57: {
              y_ = input.readDouble();
              bitField0_ |= 0x00000040;
              break;
            } // case 57
            case 65: {
              scale_ = input.readDouble();
              bitField0_ |= 0x00000080;
              break;
            } // case 65
            case 73: {
              rotation_ = input.readDouble();
              bitField0_ |= 0x00000100;
              break;
            } // case 73
            case 82: {
              color_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000200;
              break;
            } // case 82
            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.PdfDocumentP document_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ironsoftware.ironpdf.internal.proto.PdfDocumentP, com.ironsoftware.ironpdf.internal.proto.PdfDocumentP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfDocumentPOrBuilder> documentBuilder_;
    /**
     * .ironpdfengineproto.PdfDocumentP document = 1;
     * @return Whether the document field is set.
     */
    public boolean hasDocument() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .ironpdfengineproto.PdfDocumentP document = 1;
     * @return The document.
     */
    public com.ironsoftware.ironpdf.internal.proto.PdfDocumentP getDocument() {
      if (documentBuilder_ == null) {
        return document_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfDocumentP.getDefaultInstance() : document_;
      } else {
        return documentBuilder_.getMessage();
      }
    }
    /**
     * .ironpdfengineproto.PdfDocumentP document = 1;
     */
    public Builder setDocument(com.ironsoftware.ironpdf.internal.proto.PdfDocumentP value) {
      if (documentBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        document_ = value;
      } else {
        documentBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .ironpdfengineproto.PdfDocumentP document = 1;
     */
    public Builder setDocument(
        com.ironsoftware.ironpdf.internal.proto.PdfDocumentP.Builder builderForValue) {
      if (documentBuilder_ == null) {
        document_ = builderForValue.build();
      } else {
        documentBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .ironpdfengineproto.PdfDocumentP document = 1;
     */
    public Builder mergeDocument(com.ironsoftware.ironpdf.internal.proto.PdfDocumentP value) {
      if (documentBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          document_ != null &&
          document_ != com.ironsoftware.ironpdf.internal.proto.PdfDocumentP.getDefaultInstance()) {
          getDocumentBuilder().mergeFrom(value);
        } else {
          document_ = value;
        }
      } else {
        documentBuilder_.mergeFrom(value);
      }
      if (document_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * .ironpdfengineproto.PdfDocumentP document = 1;
     */
    public Builder clearDocument() {
      bitField0_ = (bitField0_ & ~0x00000001);
      document_ = null;
      if (documentBuilder_ != null) {
        documentBuilder_.dispose();
        documentBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .ironpdfengineproto.PdfDocumentP document = 1;
     */
    public com.ironsoftware.ironpdf.internal.proto.PdfDocumentP.Builder getDocumentBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getDocumentFieldBuilder().getBuilder();
    }
    /**
     * .ironpdfengineproto.PdfDocumentP document = 1;
     */
    public com.ironsoftware.ironpdf.internal.proto.PdfDocumentPOrBuilder getDocumentOrBuilder() {
      if (documentBuilder_ != null) {
        return documentBuilder_.getMessageOrBuilder();
      } else {
        return document_ == null ?
            com.ironsoftware.ironpdf.internal.proto.PdfDocumentP.getDefaultInstance() : document_;
      }
    }
    /**
     * .ironpdfengineproto.PdfDocumentP document = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.ironsoftware.ironpdf.internal.proto.PdfDocumentP, com.ironsoftware.ironpdf.internal.proto.PdfDocumentP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfDocumentPOrBuilder> 
        getDocumentFieldBuilder() {
      if (documentBuilder_ == null) {
        documentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.ironsoftware.ironpdf.internal.proto.PdfDocumentP, com.ironsoftware.ironpdf.internal.proto.PdfDocumentP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfDocumentPOrBuilder>(
                getDocument(),
                getParentForChildren(),
                isClean());
        document_ = null;
      }
      return documentBuilder_;
    }

    private int pageIndex_ ;
    /**
     * int32 page_index = 2;
     * @return The pageIndex.
     */
    @java.lang.Override
    public int getPageIndex() {
      return pageIndex_;
    }
    /**
     * int32 page_index = 2;
     * @param value The pageIndex to set.
     * @return This builder for chaining.
     */
    public Builder setPageIndex(int value) {

      pageIndex_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * int32 page_index = 2;
     * @return This builder for chaining.
     */
    public Builder clearPageIndex() {
      bitField0_ = (bitField0_ & ~0x00000002);
      pageIndex_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object text_ = "";
    /**
     * string text = 3;
     * @return The text.
     */
    public java.lang.String getText() {
      java.lang.Object ref = text_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        text_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string text = 3;
     * @return The bytes for text.
     */
    public com.google.protobuf.ByteString
        getTextBytes() {
      java.lang.Object ref = text_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        text_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string text = 3;
     * @param value The text to set.
     * @return This builder for chaining.
     */
    public Builder setText(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      text_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * string text = 3;
     * @return This builder for chaining.
     */
    public Builder clearText() {
      text_ = getDefaultInstance().getText();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * string text = 3;
     * @param value The bytes for text to set.
     * @return This builder for chaining.
     */
    public Builder setTextBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      text_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object fontName_ = "";
    /**
     * string font_name = 4;
     * @return The fontName.
     */
    public java.lang.String getFontName() {
      java.lang.Object ref = fontName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        fontName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string font_name = 4;
     * @return The bytes for fontName.
     */
    public com.google.protobuf.ByteString
        getFontNameBytes() {
      java.lang.Object ref = fontName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        fontName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string font_name = 4;
     * @param value The fontName to set.
     * @return This builder for chaining.
     */
    public Builder setFontName(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      fontName_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * string font_name = 4;
     * @return This builder for chaining.
     */
    public Builder clearFontName() {
      fontName_ = getDefaultInstance().getFontName();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     * string font_name = 4;
     * @param value The bytes for fontName to set.
     * @return This builder for chaining.
     */
    public Builder setFontNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      fontName_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private double fontSize_ ;
    /**
     * double font_size = 5;
     * @return The fontSize.
     */
    @java.lang.Override
    public double getFontSize() {
      return fontSize_;
    }
    /**
     * double font_size = 5;
     * @param value The fontSize to set.
     * @return This builder for chaining.
     */
    public Builder setFontSize(double value) {

      fontSize_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * double font_size = 5;
     * @return This builder for chaining.
     */
    public Builder clearFontSize() {
      bitField0_ = (bitField0_ & ~0x00000010);
      fontSize_ = 0D;
      onChanged();
      return this;
    }

    private double x_ ;
    /**
     * double x = 6;
     * @return The x.
     */
    @java.lang.Override
    public double getX() {
      return x_;
    }
    /**
     * double x = 6;
     * @param value The x to set.
     * @return This builder for chaining.
     */
    public Builder setX(double value) {

      x_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * double x = 6;
     * @return This builder for chaining.
     */
    public Builder clearX() {
      bitField0_ = (bitField0_ & ~0x00000020);
      x_ = 0D;
      onChanged();
      return this;
    }

    private double y_ ;
    /**
     * double y = 7;
     * @return The y.
     */
    @java.lang.Override
    public double getY() {
      return y_;
    }
    /**
     * double y = 7;
     * @param value The y to set.
     * @return This builder for chaining.
     */
    public Builder setY(double value) {

      y_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * double y = 7;
     * @return This builder for chaining.
     */
    public Builder clearY() {
      bitField0_ = (bitField0_ & ~0x00000040);
      y_ = 0D;
      onChanged();
      return this;
    }

    private double scale_ ;
    /**
     * double scale = 8;
     * @return The scale.
     */
    @java.lang.Override
    public double getScale() {
      return scale_;
    }
    /**
     * double scale = 8;
     * @param value The scale to set.
     * @return This builder for chaining.
     */
    public Builder setScale(double value) {

      scale_ = value;
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }
    /**
     * double scale = 8;
     * @return This builder for chaining.
     */
    public Builder clearScale() {
      bitField0_ = (bitField0_ & ~0x00000080);
      scale_ = 0D;
      onChanged();
      return this;
    }

    private double rotation_ ;
    /**
     * double rotation = 9;
     * @return The rotation.
     */
    @java.lang.Override
    public double getRotation() {
      return rotation_;
    }
    /**
     * double rotation = 9;
     * @param value The rotation to set.
     * @return This builder for chaining.
     */
    public Builder setRotation(double value) {

      rotation_ = value;
      bitField0_ |= 0x00000100;
      onChanged();
      return this;
    }
    /**
     * double rotation = 9;
     * @return This builder for chaining.
     */
    public Builder clearRotation() {
      bitField0_ = (bitField0_ & ~0x00000100);
      rotation_ = 0D;
      onChanged();
      return this;
    }

    private java.lang.Object color_ = "";
    /**
     * string color = 10;
     * @return The color.
     */
    public java.lang.String getColor() {
      java.lang.Object ref = color_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        color_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string color = 10;
     * @return The bytes for color.
     */
    public com.google.protobuf.ByteString
        getColorBytes() {
      java.lang.Object ref = color_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        color_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string color = 10;
     * @param value The color to set.
     * @return This builder for chaining.
     */
    public Builder setColor(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      color_ = value;
      bitField0_ |= 0x00000200;
      onChanged();
      return this;
    }
    /**
     * string color = 10;
     * @return This builder for chaining.
     */
    public Builder clearColor() {
      color_ = getDefaultInstance().getColor();
      bitField0_ = (bitField0_ & ~0x00000200);
      onChanged();
      return this;
    }
    /**
     * string color = 10;
     * @param value The bytes for color to set.
     * @return This builder for chaining.
     */
    public Builder setColorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      color_ = value;
      bitField0_ |= 0x00000200;
      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.PdfiumDrawTextRequestP)
  }

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

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

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public PdfiumDrawTextRequestP 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.PdfiumDrawTextRequestP getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy