com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ironpdf Show documentation
Show all versions of ironpdf Show documentation
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.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pdfium_annotation.proto
package com.ironsoftware.ironpdf.internal.proto;
/**
* Protobuf type {@code ironpdfengineproto.PdfiumTextAnnotationP}
*/
public final class PdfiumTextAnnotationP extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ironpdfengineproto.PdfiumTextAnnotationP)
PdfiumTextAnnotationPOrBuilder {
private static final long serialVersionUID = 0L;
// Use PdfiumTextAnnotationP.newBuilder() to construct.
private PdfiumTextAnnotationP(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PdfiumTextAnnotationP() {
colorCode_ = "";
contents_ = "";
subject_ = "";
title_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PdfiumTextAnnotationP();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotation.internal_static_ironpdfengineproto_PdfiumTextAnnotationP_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotation.internal_static_ironpdfengineproto_PdfiumTextAnnotationP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP.class, com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP.Builder.class);
}
private int bitField0_;
public static final int PAGE_INDEX_FIELD_NUMBER = 2;
private int pageIndex_ = 0;
/**
* optional int32 page_index = 2;
* @return Whether the pageIndex field is set.
*/
@java.lang.Override
public boolean hasPageIndex() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 page_index = 2;
* @return The pageIndex.
*/
@java.lang.Override
public int getPageIndex() {
return pageIndex_;
}
public static final int ANNOT_INDEX_FIELD_NUMBER = 3;
private int annotIndex_ = 0;
/**
* optional int32 annot_index = 3;
* @return Whether the annotIndex field is set.
*/
@java.lang.Override
public boolean hasAnnotIndex() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 annot_index = 3;
* @return The annotIndex.
*/
@java.lang.Override
public int getAnnotIndex() {
return annotIndex_;
}
public static final int COLOR_CODE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object colorCode_ = "";
/**
* optional string color_code = 4;
* @return Whether the colorCode field is set.
*/
@java.lang.Override
public boolean hasColorCode() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string color_code = 4;
* @return The colorCode.
*/
@java.lang.Override
public java.lang.String getColorCode() {
java.lang.Object ref = colorCode_;
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();
colorCode_ = s;
return s;
}
}
/**
* optional string color_code = 4;
* @return The bytes for colorCode.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getColorCodeBytes() {
java.lang.Object ref = colorCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
colorCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CONTENTS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object contents_ = "";
/**
* optional string contents = 5;
* @return Whether the contents field is set.
*/
@java.lang.Override
public boolean hasContents() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string contents = 5;
* @return The contents.
*/
@java.lang.Override
public java.lang.String getContents() {
java.lang.Object ref = contents_;
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();
contents_ = s;
return s;
}
}
/**
* optional string contents = 5;
* @return The bytes for contents.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContentsBytes() {
java.lang.Object ref = contents_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contents_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HIDDEN_FIELD_NUMBER = 6;
private boolean hidden_ = false;
/**
* optional bool hidden = 6;
* @return Whether the hidden field is set.
*/
@java.lang.Override
public boolean hasHidden() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bool hidden = 6;
* @return The hidden.
*/
@java.lang.Override
public boolean getHidden() {
return hidden_;
}
public static final int OPACITY_FIELD_NUMBER = 7;
private double opacity_ = 0D;
/**
* optional double opacity = 7;
* @return Whether the opacity field is set.
*/
@java.lang.Override
public boolean hasOpacity() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional double opacity = 7;
* @return The opacity.
*/
@java.lang.Override
public double getOpacity() {
return opacity_;
}
public static final int OPEN_BY_DEFAULT_FIELD_NUMBER = 8;
private boolean openByDefault_ = false;
/**
* optional bool open_by_default = 8;
* @return Whether the openByDefault field is set.
*/
@java.lang.Override
public boolean hasOpenByDefault() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool open_by_default = 8;
* @return The openByDefault.
*/
@java.lang.Override
public boolean getOpenByDefault() {
return openByDefault_;
}
public static final int PRINTABLE_FIELD_NUMBER = 9;
private boolean printable_ = false;
/**
* optional bool printable = 9;
* @return Whether the printable field is set.
*/
@java.lang.Override
public boolean hasPrintable() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional bool printable = 9;
* @return The printable.
*/
@java.lang.Override
public boolean getPrintable() {
return printable_;
}
public static final int READ_ONLY_FIELD_NUMBER = 10;
private boolean readOnly_ = false;
/**
* optional bool read_only = 10;
* @return Whether the readOnly field is set.
*/
@java.lang.Override
public boolean hasReadOnly() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional bool read_only = 10;
* @return The readOnly.
*/
@java.lang.Override
public boolean getReadOnly() {
return readOnly_;
}
public static final int ROTATABLE_FIELD_NUMBER = 11;
private boolean rotatable_ = false;
/**
* optional bool rotatable = 11;
* @return Whether the rotatable field is set.
*/
@java.lang.Override
public boolean hasRotatable() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional bool rotatable = 11;
* @return The rotatable.
*/
@java.lang.Override
public boolean getRotatable() {
return rotatable_;
}
public static final int SUBJECT_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object subject_ = "";
/**
* optional string subject = 12;
* @return Whether the subject field is set.
*/
@java.lang.Override
public boolean hasSubject() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string subject = 12;
* @return The subject.
*/
@java.lang.Override
public java.lang.String getSubject() {
java.lang.Object ref = subject_;
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();
subject_ = s;
return s;
}
}
/**
* optional string subject = 12;
* @return The bytes for subject.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubjectBytes() {
java.lang.Object ref = subject_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subject_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TITLE_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object title_ = "";
/**
* optional string title = 13;
* @return Whether the title field is set.
*/
@java.lang.Override
public boolean hasTitle() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional string title = 13;
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
java.lang.Object ref = title_;
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();
title_ = s;
return s;
}
}
/**
* optional string title = 13;
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ICON_FIELD_NUMBER = 14;
private com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP icon_;
/**
* optional .ironpdfengineproto.PdfiumAnnotationIconP icon = 14;
* @return Whether the icon field is set.
*/
@java.lang.Override
public boolean hasIcon() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional .ironpdfengineproto.PdfiumAnnotationIconP icon = 14;
* @return The icon.
*/
@java.lang.Override
public com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP getIcon() {
return icon_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP.getDefaultInstance() : icon_;
}
/**
* optional .ironpdfengineproto.PdfiumAnnotationIconP icon = 14;
*/
@java.lang.Override
public com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconPOrBuilder getIconOrBuilder() {
return icon_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP.getDefaultInstance() : icon_;
}
public static final int X_FIELD_NUMBER = 15;
private int x_ = 0;
/**
* optional int32 x = 15;
* @return Whether the x field is set.
*/
@java.lang.Override
public boolean hasX() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional int32 x = 15;
* @return The x.
*/
@java.lang.Override
public int getX() {
return x_;
}
public static final int Y_FIELD_NUMBER = 16;
private int y_ = 0;
/**
* optional int32 y = 16;
* @return Whether the y field is set.
*/
@java.lang.Override
public boolean hasY() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional int32 y = 16;
* @return The y.
*/
@java.lang.Override
public int getY() {
return y_;
}
public static final int WIDTH_FIELD_NUMBER = 17;
private int width_ = 0;
/**
* optional int32 width = 17;
* @return Whether the width field is set.
*/
@java.lang.Override
public boolean hasWidth() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional int32 width = 17;
* @return The width.
*/
@java.lang.Override
public int getWidth() {
return width_;
}
public static final int HEIGHT_FIELD_NUMBER = 18;
private int height_ = 0;
/**
* optional int32 height = 18;
* @return Whether the height field is set.
*/
@java.lang.Override
public boolean hasHeight() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional int32 height = 18;
* @return The height.
*/
@java.lang.Override
public int getHeight() {
return height_;
}
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.writeInt32(2, pageIndex_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(3, annotIndex_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, colorCode_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, contents_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(6, hidden_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeDouble(7, opacity_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(8, openByDefault_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBool(9, printable_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeBool(10, readOnly_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeBool(11, rotatable_);
}
if (((bitField0_ & 0x00000400) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, subject_);
}
if (((bitField0_ & 0x00000800) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, title_);
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeMessage(14, getIcon());
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeInt32(15, x_);
}
if (((bitField0_ & 0x00004000) != 0)) {
output.writeInt32(16, y_);
}
if (((bitField0_ & 0x00008000) != 0)) {
output.writeInt32(17, width_);
}
if (((bitField0_ & 0x00010000) != 0)) {
output.writeInt32(18, height_);
}
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
.computeInt32Size(2, pageIndex_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, annotIndex_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, colorCode_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, contents_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, hidden_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, opacity_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, openByDefault_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, printable_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, readOnly_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(11, rotatable_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, subject_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, title_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getIcon());
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(15, x_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(16, y_);
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(17, width_);
}
if (((bitField0_ & 0x00010000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(18, height_);
}
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.PdfiumTextAnnotationP)) {
return super.equals(obj);
}
com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP other = (com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP) obj;
if (hasPageIndex() != other.hasPageIndex()) return false;
if (hasPageIndex()) {
if (getPageIndex()
!= other.getPageIndex()) return false;
}
if (hasAnnotIndex() != other.hasAnnotIndex()) return false;
if (hasAnnotIndex()) {
if (getAnnotIndex()
!= other.getAnnotIndex()) return false;
}
if (hasColorCode() != other.hasColorCode()) return false;
if (hasColorCode()) {
if (!getColorCode()
.equals(other.getColorCode())) return false;
}
if (hasContents() != other.hasContents()) return false;
if (hasContents()) {
if (!getContents()
.equals(other.getContents())) return false;
}
if (hasHidden() != other.hasHidden()) return false;
if (hasHidden()) {
if (getHidden()
!= other.getHidden()) return false;
}
if (hasOpacity() != other.hasOpacity()) return false;
if (hasOpacity()) {
if (java.lang.Double.doubleToLongBits(getOpacity())
!= java.lang.Double.doubleToLongBits(
other.getOpacity())) return false;
}
if (hasOpenByDefault() != other.hasOpenByDefault()) return false;
if (hasOpenByDefault()) {
if (getOpenByDefault()
!= other.getOpenByDefault()) return false;
}
if (hasPrintable() != other.hasPrintable()) return false;
if (hasPrintable()) {
if (getPrintable()
!= other.getPrintable()) return false;
}
if (hasReadOnly() != other.hasReadOnly()) return false;
if (hasReadOnly()) {
if (getReadOnly()
!= other.getReadOnly()) return false;
}
if (hasRotatable() != other.hasRotatable()) return false;
if (hasRotatable()) {
if (getRotatable()
!= other.getRotatable()) return false;
}
if (hasSubject() != other.hasSubject()) return false;
if (hasSubject()) {
if (!getSubject()
.equals(other.getSubject())) return false;
}
if (hasTitle() != other.hasTitle()) return false;
if (hasTitle()) {
if (!getTitle()
.equals(other.getTitle())) return false;
}
if (hasIcon() != other.hasIcon()) return false;
if (hasIcon()) {
if (!getIcon()
.equals(other.getIcon())) return false;
}
if (hasX() != other.hasX()) return false;
if (hasX()) {
if (getX()
!= other.getX()) return false;
}
if (hasY() != other.hasY()) return false;
if (hasY()) {
if (getY()
!= other.getY()) return false;
}
if (hasWidth() != other.hasWidth()) return false;
if (hasWidth()) {
if (getWidth()
!= other.getWidth()) return false;
}
if (hasHeight() != other.hasHeight()) return false;
if (hasHeight()) {
if (getHeight()
!= other.getHeight()) 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 (hasPageIndex()) {
hash = (37 * hash) + PAGE_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getPageIndex();
}
if (hasAnnotIndex()) {
hash = (37 * hash) + ANNOT_INDEX_FIELD_NUMBER;
hash = (53 * hash) + getAnnotIndex();
}
if (hasColorCode()) {
hash = (37 * hash) + COLOR_CODE_FIELD_NUMBER;
hash = (53 * hash) + getColorCode().hashCode();
}
if (hasContents()) {
hash = (37 * hash) + CONTENTS_FIELD_NUMBER;
hash = (53 * hash) + getContents().hashCode();
}
if (hasHidden()) {
hash = (37 * hash) + HIDDEN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHidden());
}
if (hasOpacity()) {
hash = (37 * hash) + OPACITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOpacity()));
}
if (hasOpenByDefault()) {
hash = (37 * hash) + OPEN_BY_DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOpenByDefault());
}
if (hasPrintable()) {
hash = (37 * hash) + PRINTABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPrintable());
}
if (hasReadOnly()) {
hash = (37 * hash) + READ_ONLY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReadOnly());
}
if (hasRotatable()) {
hash = (37 * hash) + ROTATABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRotatable());
}
if (hasSubject()) {
hash = (37 * hash) + SUBJECT_FIELD_NUMBER;
hash = (53 * hash) + getSubject().hashCode();
}
if (hasTitle()) {
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
}
if (hasIcon()) {
hash = (37 * hash) + ICON_FIELD_NUMBER;
hash = (53 * hash) + getIcon().hashCode();
}
if (hasX()) {
hash = (37 * hash) + X_FIELD_NUMBER;
hash = (53 * hash) + getX();
}
if (hasY()) {
hash = (37 * hash) + Y_FIELD_NUMBER;
hash = (53 * hash) + getY();
}
if (hasWidth()) {
hash = (37 * hash) + WIDTH_FIELD_NUMBER;
hash = (53 * hash) + getWidth();
}
if (hasHeight()) {
hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + getHeight();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP 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.PdfiumTextAnnotationP parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP 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.PdfiumTextAnnotationP parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP 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.PdfiumTextAnnotationP parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP 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.PdfiumTextAnnotationP parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP 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.PdfiumTextAnnotationP 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.PdfiumTextAnnotationP 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.PdfiumTextAnnotationP 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.PdfiumTextAnnotationP}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ironpdfengineproto.PdfiumTextAnnotationP)
com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationPOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotation.internal_static_ironpdfengineproto_PdfiumTextAnnotationP_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotation.internal_static_ironpdfengineproto_PdfiumTextAnnotationP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP.class, com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP.Builder.class);
}
// Construct using com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIconFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
pageIndex_ = 0;
annotIndex_ = 0;
colorCode_ = "";
contents_ = "";
hidden_ = false;
opacity_ = 0D;
openByDefault_ = false;
printable_ = false;
readOnly_ = false;
rotatable_ = false;
subject_ = "";
title_ = "";
icon_ = null;
if (iconBuilder_ != null) {
iconBuilder_.dispose();
iconBuilder_ = null;
}
x_ = 0;
y_ = 0;
width_ = 0;
height_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotation.internal_static_ironpdfengineproto_PdfiumTextAnnotationP_descriptor;
}
@java.lang.Override
public com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP getDefaultInstanceForType() {
return com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP.getDefaultInstance();
}
@java.lang.Override
public com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP build() {
com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP buildPartial() {
com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP result = new com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.pageIndex_ = pageIndex_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.annotIndex_ = annotIndex_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.colorCode_ = colorCode_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.contents_ = contents_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.hidden_ = hidden_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.opacity_ = opacity_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.openByDefault_ = openByDefault_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.printable_ = printable_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.readOnly_ = readOnly_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.rotatable_ = rotatable_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.subject_ = subject_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.title_ = title_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.icon_ = iconBuilder_ == null
? icon_
: iconBuilder_.build();
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.x_ = x_;
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.y_ = y_;
to_bitField0_ |= 0x00004000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.width_ = width_;
to_bitField0_ |= 0x00008000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.height_ = height_;
to_bitField0_ |= 0x00010000;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP) {
return mergeFrom((com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP other) {
if (other == com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP.getDefaultInstance()) return this;
if (other.hasPageIndex()) {
setPageIndex(other.getPageIndex());
}
if (other.hasAnnotIndex()) {
setAnnotIndex(other.getAnnotIndex());
}
if (other.hasColorCode()) {
colorCode_ = other.colorCode_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasContents()) {
contents_ = other.contents_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasHidden()) {
setHidden(other.getHidden());
}
if (other.hasOpacity()) {
setOpacity(other.getOpacity());
}
if (other.hasOpenByDefault()) {
setOpenByDefault(other.getOpenByDefault());
}
if (other.hasPrintable()) {
setPrintable(other.getPrintable());
}
if (other.hasReadOnly()) {
setReadOnly(other.getReadOnly());
}
if (other.hasRotatable()) {
setRotatable(other.getRotatable());
}
if (other.hasSubject()) {
subject_ = other.subject_;
bitField0_ |= 0x00000400;
onChanged();
}
if (other.hasTitle()) {
title_ = other.title_;
bitField0_ |= 0x00000800;
onChanged();
}
if (other.hasIcon()) {
mergeIcon(other.getIcon());
}
if (other.hasX()) {
setX(other.getX());
}
if (other.hasY()) {
setY(other.getY());
}
if (other.hasWidth()) {
setWidth(other.getWidth());
}
if (other.hasHeight()) {
setHeight(other.getHeight());
}
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 16: {
pageIndex_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 16
case 24: {
annotIndex_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 24
case 34: {
colorCode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 34
case 42: {
contents_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 42
case 48: {
hidden_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 48
case 57: {
opacity_ = input.readDouble();
bitField0_ |= 0x00000020;
break;
} // case 57
case 64: {
openByDefault_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 64
case 72: {
printable_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 72
case 80: {
readOnly_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 80
case 88: {
rotatable_ = input.readBool();
bitField0_ |= 0x00000200;
break;
} // case 88
case 98: {
subject_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 98
case 106: {
title_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 106
case 114: {
input.readMessage(
getIconFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 114
case 120: {
x_ = input.readInt32();
bitField0_ |= 0x00002000;
break;
} // case 120
case 128: {
y_ = input.readInt32();
bitField0_ |= 0x00004000;
break;
} // case 128
case 136: {
width_ = input.readInt32();
bitField0_ |= 0x00008000;
break;
} // case 136
case 144: {
height_ = input.readInt32();
bitField0_ |= 0x00010000;
break;
} // case 144
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 int pageIndex_ ;
/**
* optional int32 page_index = 2;
* @return Whether the pageIndex field is set.
*/
@java.lang.Override
public boolean hasPageIndex() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 page_index = 2;
* @return The pageIndex.
*/
@java.lang.Override
public int getPageIndex() {
return pageIndex_;
}
/**
* optional int32 page_index = 2;
* @param value The pageIndex to set.
* @return This builder for chaining.
*/
public Builder setPageIndex(int value) {
pageIndex_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional int32 page_index = 2;
* @return This builder for chaining.
*/
public Builder clearPageIndex() {
bitField0_ = (bitField0_ & ~0x00000001);
pageIndex_ = 0;
onChanged();
return this;
}
private int annotIndex_ ;
/**
* optional int32 annot_index = 3;
* @return Whether the annotIndex field is set.
*/
@java.lang.Override
public boolean hasAnnotIndex() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 annot_index = 3;
* @return The annotIndex.
*/
@java.lang.Override
public int getAnnotIndex() {
return annotIndex_;
}
/**
* optional int32 annot_index = 3;
* @param value The annotIndex to set.
* @return This builder for chaining.
*/
public Builder setAnnotIndex(int value) {
annotIndex_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional int32 annot_index = 3;
* @return This builder for chaining.
*/
public Builder clearAnnotIndex() {
bitField0_ = (bitField0_ & ~0x00000002);
annotIndex_ = 0;
onChanged();
return this;
}
private java.lang.Object colorCode_ = "";
/**
* optional string color_code = 4;
* @return Whether the colorCode field is set.
*/
public boolean hasColorCode() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string color_code = 4;
* @return The colorCode.
*/
public java.lang.String getColorCode() {
java.lang.Object ref = colorCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
colorCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string color_code = 4;
* @return The bytes for colorCode.
*/
public com.google.protobuf.ByteString
getColorCodeBytes() {
java.lang.Object ref = colorCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
colorCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string color_code = 4;
* @param value The colorCode to set.
* @return This builder for chaining.
*/
public Builder setColorCode(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
colorCode_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string color_code = 4;
* @return This builder for chaining.
*/
public Builder clearColorCode() {
colorCode_ = getDefaultInstance().getColorCode();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string color_code = 4;
* @param value The bytes for colorCode to set.
* @return This builder for chaining.
*/
public Builder setColorCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
colorCode_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object contents_ = "";
/**
* optional string contents = 5;
* @return Whether the contents field is set.
*/
public boolean hasContents() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string contents = 5;
* @return The contents.
*/
public java.lang.String getContents() {
java.lang.Object ref = contents_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
contents_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string contents = 5;
* @return The bytes for contents.
*/
public com.google.protobuf.ByteString
getContentsBytes() {
java.lang.Object ref = contents_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contents_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string contents = 5;
* @param value The contents to set.
* @return This builder for chaining.
*/
public Builder setContents(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
contents_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional string contents = 5;
* @return This builder for chaining.
*/
public Builder clearContents() {
contents_ = getDefaultInstance().getContents();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* optional string contents = 5;
* @param value The bytes for contents to set.
* @return This builder for chaining.
*/
public Builder setContentsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
contents_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private boolean hidden_ ;
/**
* optional bool hidden = 6;
* @return Whether the hidden field is set.
*/
@java.lang.Override
public boolean hasHidden() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bool hidden = 6;
* @return The hidden.
*/
@java.lang.Override
public boolean getHidden() {
return hidden_;
}
/**
* optional bool hidden = 6;
* @param value The hidden to set.
* @return This builder for chaining.
*/
public Builder setHidden(boolean value) {
hidden_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional bool hidden = 6;
* @return This builder for chaining.
*/
public Builder clearHidden() {
bitField0_ = (bitField0_ & ~0x00000010);
hidden_ = false;
onChanged();
return this;
}
private double opacity_ ;
/**
* optional double opacity = 7;
* @return Whether the opacity field is set.
*/
@java.lang.Override
public boolean hasOpacity() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional double opacity = 7;
* @return The opacity.
*/
@java.lang.Override
public double getOpacity() {
return opacity_;
}
/**
* optional double opacity = 7;
* @param value The opacity to set.
* @return This builder for chaining.
*/
public Builder setOpacity(double value) {
opacity_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional double opacity = 7;
* @return This builder for chaining.
*/
public Builder clearOpacity() {
bitField0_ = (bitField0_ & ~0x00000020);
opacity_ = 0D;
onChanged();
return this;
}
private boolean openByDefault_ ;
/**
* optional bool open_by_default = 8;
* @return Whether the openByDefault field is set.
*/
@java.lang.Override
public boolean hasOpenByDefault() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool open_by_default = 8;
* @return The openByDefault.
*/
@java.lang.Override
public boolean getOpenByDefault() {
return openByDefault_;
}
/**
* optional bool open_by_default = 8;
* @param value The openByDefault to set.
* @return This builder for chaining.
*/
public Builder setOpenByDefault(boolean value) {
openByDefault_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* optional bool open_by_default = 8;
* @return This builder for chaining.
*/
public Builder clearOpenByDefault() {
bitField0_ = (bitField0_ & ~0x00000040);
openByDefault_ = false;
onChanged();
return this;
}
private boolean printable_ ;
/**
* optional bool printable = 9;
* @return Whether the printable field is set.
*/
@java.lang.Override
public boolean hasPrintable() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional bool printable = 9;
* @return The printable.
*/
@java.lang.Override
public boolean getPrintable() {
return printable_;
}
/**
* optional bool printable = 9;
* @param value The printable to set.
* @return This builder for chaining.
*/
public Builder setPrintable(boolean value) {
printable_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* optional bool printable = 9;
* @return This builder for chaining.
*/
public Builder clearPrintable() {
bitField0_ = (bitField0_ & ~0x00000080);
printable_ = false;
onChanged();
return this;
}
private boolean readOnly_ ;
/**
* optional bool read_only = 10;
* @return Whether the readOnly field is set.
*/
@java.lang.Override
public boolean hasReadOnly() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional bool read_only = 10;
* @return The readOnly.
*/
@java.lang.Override
public boolean getReadOnly() {
return readOnly_;
}
/**
* optional bool read_only = 10;
* @param value The readOnly to set.
* @return This builder for chaining.
*/
public Builder setReadOnly(boolean value) {
readOnly_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* optional bool read_only = 10;
* @return This builder for chaining.
*/
public Builder clearReadOnly() {
bitField0_ = (bitField0_ & ~0x00000100);
readOnly_ = false;
onChanged();
return this;
}
private boolean rotatable_ ;
/**
* optional bool rotatable = 11;
* @return Whether the rotatable field is set.
*/
@java.lang.Override
public boolean hasRotatable() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional bool rotatable = 11;
* @return The rotatable.
*/
@java.lang.Override
public boolean getRotatable() {
return rotatable_;
}
/**
* optional bool rotatable = 11;
* @param value The rotatable to set.
* @return This builder for chaining.
*/
public Builder setRotatable(boolean value) {
rotatable_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* optional bool rotatable = 11;
* @return This builder for chaining.
*/
public Builder clearRotatable() {
bitField0_ = (bitField0_ & ~0x00000200);
rotatable_ = false;
onChanged();
return this;
}
private java.lang.Object subject_ = "";
/**
* optional string subject = 12;
* @return Whether the subject field is set.
*/
public boolean hasSubject() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string subject = 12;
* @return The subject.
*/
public java.lang.String getSubject() {
java.lang.Object ref = subject_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subject_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string subject = 12;
* @return The bytes for subject.
*/
public com.google.protobuf.ByteString
getSubjectBytes() {
java.lang.Object ref = subject_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subject_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string subject = 12;
* @param value The subject to set.
* @return This builder for chaining.
*/
public Builder setSubject(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
subject_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* optional string subject = 12;
* @return This builder for chaining.
*/
public Builder clearSubject() {
subject_ = getDefaultInstance().getSubject();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
* optional string subject = 12;
* @param value The bytes for subject to set.
* @return This builder for chaining.
*/
public Builder setSubjectBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
subject_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private java.lang.Object title_ = "";
/**
* optional string title = 13;
* @return Whether the title field is set.
*/
public boolean hasTitle() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional string title = 13;
* @return The title.
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
title_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string title = 13;
* @return The bytes for title.
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string title = 13;
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
title_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* optional string title = 13;
* @return This builder for chaining.
*/
public Builder clearTitle() {
title_ = getDefaultInstance().getTitle();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
* optional string title = 13;
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
title_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP icon_;
private com.google.protobuf.SingleFieldBuilderV3<
com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP, com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconPOrBuilder> iconBuilder_;
/**
* optional .ironpdfengineproto.PdfiumAnnotationIconP icon = 14;
* @return Whether the icon field is set.
*/
public boolean hasIcon() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional .ironpdfengineproto.PdfiumAnnotationIconP icon = 14;
* @return The icon.
*/
public com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP getIcon() {
if (iconBuilder_ == null) {
return icon_ == null ? com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP.getDefaultInstance() : icon_;
} else {
return iconBuilder_.getMessage();
}
}
/**
* optional .ironpdfengineproto.PdfiumAnnotationIconP icon = 14;
*/
public Builder setIcon(com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP value) {
if (iconBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
icon_ = value;
} else {
iconBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* optional .ironpdfengineproto.PdfiumAnnotationIconP icon = 14;
*/
public Builder setIcon(
com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP.Builder builderForValue) {
if (iconBuilder_ == null) {
icon_ = builderForValue.build();
} else {
iconBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* optional .ironpdfengineproto.PdfiumAnnotationIconP icon = 14;
*/
public Builder mergeIcon(com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP value) {
if (iconBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0) &&
icon_ != null &&
icon_ != com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP.getDefaultInstance()) {
getIconBuilder().mergeFrom(value);
} else {
icon_ = value;
}
} else {
iconBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* optional .ironpdfengineproto.PdfiumAnnotationIconP icon = 14;
*/
public Builder clearIcon() {
bitField0_ = (bitField0_ & ~0x00001000);
icon_ = null;
if (iconBuilder_ != null) {
iconBuilder_.dispose();
iconBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .ironpdfengineproto.PdfiumAnnotationIconP icon = 14;
*/
public com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP.Builder getIconBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getIconFieldBuilder().getBuilder();
}
/**
* optional .ironpdfengineproto.PdfiumAnnotationIconP icon = 14;
*/
public com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconPOrBuilder getIconOrBuilder() {
if (iconBuilder_ != null) {
return iconBuilder_.getMessageOrBuilder();
} else {
return icon_ == null ?
com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP.getDefaultInstance() : icon_;
}
}
/**
* optional .ironpdfengineproto.PdfiumAnnotationIconP icon = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP, com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconPOrBuilder>
getIconFieldBuilder() {
if (iconBuilder_ == null) {
iconBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP, com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconP.Builder, com.ironsoftware.ironpdf.internal.proto.PdfiumAnnotationIconPOrBuilder>(
getIcon(),
getParentForChildren(),
isClean());
icon_ = null;
}
return iconBuilder_;
}
private int x_ ;
/**
* optional int32 x = 15;
* @return Whether the x field is set.
*/
@java.lang.Override
public boolean hasX() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional int32 x = 15;
* @return The x.
*/
@java.lang.Override
public int getX() {
return x_;
}
/**
* optional int32 x = 15;
* @param value The x to set.
* @return This builder for chaining.
*/
public Builder setX(int value) {
x_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
* optional int32 x = 15;
* @return This builder for chaining.
*/
public Builder clearX() {
bitField0_ = (bitField0_ & ~0x00002000);
x_ = 0;
onChanged();
return this;
}
private int y_ ;
/**
* optional int32 y = 16;
* @return Whether the y field is set.
*/
@java.lang.Override
public boolean hasY() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional int32 y = 16;
* @return The y.
*/
@java.lang.Override
public int getY() {
return y_;
}
/**
* optional int32 y = 16;
* @param value The y to set.
* @return This builder for chaining.
*/
public Builder setY(int value) {
y_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* optional int32 y = 16;
* @return This builder for chaining.
*/
public Builder clearY() {
bitField0_ = (bitField0_ & ~0x00004000);
y_ = 0;
onChanged();
return this;
}
private int width_ ;
/**
* optional int32 width = 17;
* @return Whether the width field is set.
*/
@java.lang.Override
public boolean hasWidth() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional int32 width = 17;
* @return The width.
*/
@java.lang.Override
public int getWidth() {
return width_;
}
/**
* optional int32 width = 17;
* @param value The width to set.
* @return This builder for chaining.
*/
public Builder setWidth(int value) {
width_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
* optional int32 width = 17;
* @return This builder for chaining.
*/
public Builder clearWidth() {
bitField0_ = (bitField0_ & ~0x00008000);
width_ = 0;
onChanged();
return this;
}
private int height_ ;
/**
* optional int32 height = 18;
* @return Whether the height field is set.
*/
@java.lang.Override
public boolean hasHeight() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional int32 height = 18;
* @return The height.
*/
@java.lang.Override
public int getHeight() {
return height_;
}
/**
* optional int32 height = 18;
* @param value The height to set.
* @return This builder for chaining.
*/
public Builder setHeight(int value) {
height_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
* optional int32 height = 18;
* @return This builder for chaining.
*/
public Builder clearHeight() {
bitField0_ = (bitField0_ & ~0x00010000);
height_ = 0;
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.PdfiumTextAnnotationP)
}
// @@protoc_insertion_point(class_scope:ironpdfengineproto.PdfiumTextAnnotationP)
private static final com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP();
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumTextAnnotationP getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PdfiumTextAnnotationP 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.PdfiumTextAnnotationP getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}