com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP 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_pdf_document.proto
// Protobuf Java Version: 3.25.0
package com.ironsoftware.ironpdf.internal.proto;
/**
* Protobuf type {@code ironpdfengineproto.PdfiumCharObjectP}
*/
public final class PdfiumCharObjectP extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ironpdfengineproto.PdfiumCharObjectP)
PdfiumCharObjectPOrBuilder {
private static final long serialVersionUID = 0L;
// Use PdfiumCharObjectP.newBuilder() to construct.
private PdfiumCharObjectP(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PdfiumCharObjectP() {
contents_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PdfiumCharObjectP();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ironsoftware.ironpdf.internal.proto.PdfiumPdfDocument.internal_static_ironpdfengineproto_PdfiumCharObjectP_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ironsoftware.ironpdf.internal.proto.PdfiumPdfDocument.internal_static_ironpdfengineproto_PdfiumCharObjectP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP.class, com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP.Builder.class);
}
public static final int LEFT_FIELD_NUMBER = 1;
private double left_ = 0D;
/**
* double left = 1;
* @return The left.
*/
@java.lang.Override
public double getLeft() {
return left_;
}
public static final int RIGHT_FIELD_NUMBER = 2;
private double right_ = 0D;
/**
* double right = 2;
* @return The right.
*/
@java.lang.Override
public double getRight() {
return right_;
}
public static final int TOP_FIELD_NUMBER = 3;
private double top_ = 0D;
/**
* double top = 3;
* @return The top.
*/
@java.lang.Override
public double getTop() {
return top_;
}
public static final int BOTTOM_FIELD_NUMBER = 4;
private double bottom_ = 0D;
/**
* double bottom = 4;
* @return The bottom.
*/
@java.lang.Override
public double getBottom() {
return bottom_;
}
public static final int LOOSELEFT_FIELD_NUMBER = 5;
private double looseleft_ = 0D;
/**
* double looseleft = 5;
* @return The looseleft.
*/
@java.lang.Override
public double getLooseleft() {
return looseleft_;
}
public static final int LOOSERIGHT_FIELD_NUMBER = 6;
private double looseright_ = 0D;
/**
* double looseright = 6;
* @return The looseright.
*/
@java.lang.Override
public double getLooseright() {
return looseright_;
}
public static final int LOOSETOP_FIELD_NUMBER = 7;
private double loosetop_ = 0D;
/**
* double loosetop = 7;
* @return The loosetop.
*/
@java.lang.Override
public double getLoosetop() {
return loosetop_;
}
public static final int LOOSEBOTTOM_FIELD_NUMBER = 8;
private double loosebottom_ = 0D;
/**
* double loosebottom = 8;
* @return The loosebottom.
*/
@java.lang.Override
public double getLoosebottom() {
return loosebottom_;
}
public static final int CONTENTS_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object contents_ = "";
/**
* string contents = 9;
* @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;
}
}
/**
* string contents = 9;
* @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 ANGLE_FIELD_NUMBER = 10;
private double angle_ = 0D;
/**
* double angle = 10;
* @return The angle.
*/
@java.lang.Override
public double getAngle() {
return angle_;
}
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 (java.lang.Double.doubleToRawLongBits(left_) != 0) {
output.writeDouble(1, left_);
}
if (java.lang.Double.doubleToRawLongBits(right_) != 0) {
output.writeDouble(2, right_);
}
if (java.lang.Double.doubleToRawLongBits(top_) != 0) {
output.writeDouble(3, top_);
}
if (java.lang.Double.doubleToRawLongBits(bottom_) != 0) {
output.writeDouble(4, bottom_);
}
if (java.lang.Double.doubleToRawLongBits(looseleft_) != 0) {
output.writeDouble(5, looseleft_);
}
if (java.lang.Double.doubleToRawLongBits(looseright_) != 0) {
output.writeDouble(6, looseright_);
}
if (java.lang.Double.doubleToRawLongBits(loosetop_) != 0) {
output.writeDouble(7, loosetop_);
}
if (java.lang.Double.doubleToRawLongBits(loosebottom_) != 0) {
output.writeDouble(8, loosebottom_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contents_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, contents_);
}
if (java.lang.Double.doubleToRawLongBits(angle_) != 0) {
output.writeDouble(10, angle_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (java.lang.Double.doubleToRawLongBits(left_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, left_);
}
if (java.lang.Double.doubleToRawLongBits(right_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, right_);
}
if (java.lang.Double.doubleToRawLongBits(top_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, top_);
}
if (java.lang.Double.doubleToRawLongBits(bottom_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, bottom_);
}
if (java.lang.Double.doubleToRawLongBits(looseleft_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, looseleft_);
}
if (java.lang.Double.doubleToRawLongBits(looseright_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, looseright_);
}
if (java.lang.Double.doubleToRawLongBits(loosetop_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, loosetop_);
}
if (java.lang.Double.doubleToRawLongBits(loosebottom_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, loosebottom_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contents_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, contents_);
}
if (java.lang.Double.doubleToRawLongBits(angle_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(10, angle_);
}
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.PdfiumCharObjectP)) {
return super.equals(obj);
}
com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP other = (com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP) obj;
if (java.lang.Double.doubleToLongBits(getLeft())
!= java.lang.Double.doubleToLongBits(
other.getLeft())) return false;
if (java.lang.Double.doubleToLongBits(getRight())
!= java.lang.Double.doubleToLongBits(
other.getRight())) return false;
if (java.lang.Double.doubleToLongBits(getTop())
!= java.lang.Double.doubleToLongBits(
other.getTop())) return false;
if (java.lang.Double.doubleToLongBits(getBottom())
!= java.lang.Double.doubleToLongBits(
other.getBottom())) return false;
if (java.lang.Double.doubleToLongBits(getLooseleft())
!= java.lang.Double.doubleToLongBits(
other.getLooseleft())) return false;
if (java.lang.Double.doubleToLongBits(getLooseright())
!= java.lang.Double.doubleToLongBits(
other.getLooseright())) return false;
if (java.lang.Double.doubleToLongBits(getLoosetop())
!= java.lang.Double.doubleToLongBits(
other.getLoosetop())) return false;
if (java.lang.Double.doubleToLongBits(getLoosebottom())
!= java.lang.Double.doubleToLongBits(
other.getLoosebottom())) return false;
if (!getContents()
.equals(other.getContents())) return false;
if (java.lang.Double.doubleToLongBits(getAngle())
!= java.lang.Double.doubleToLongBits(
other.getAngle())) 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();
hash = (37 * hash) + LEFT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLeft()));
hash = (37 * hash) + RIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRight()));
hash = (37 * hash) + TOP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTop()));
hash = (37 * hash) + BOTTOM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getBottom()));
hash = (37 * hash) + LOOSELEFT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLooseleft()));
hash = (37 * hash) + LOOSERIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLooseright()));
hash = (37 * hash) + LOOSETOP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLoosetop()));
hash = (37 * hash) + LOOSEBOTTOM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLoosebottom()));
hash = (37 * hash) + CONTENTS_FIELD_NUMBER;
hash = (53 * hash) + getContents().hashCode();
hash = (37 * hash) + ANGLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getAngle()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP 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.PdfiumCharObjectP parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP 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.PdfiumCharObjectP parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP 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.PdfiumCharObjectP parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP 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.PdfiumCharObjectP parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP 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.PdfiumCharObjectP 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.PdfiumCharObjectP 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.PdfiumCharObjectP 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.PdfiumCharObjectP}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ironpdfengineproto.PdfiumCharObjectP)
com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectPOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ironsoftware.ironpdf.internal.proto.PdfiumPdfDocument.internal_static_ironpdfengineproto_PdfiumCharObjectP_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ironsoftware.ironpdf.internal.proto.PdfiumPdfDocument.internal_static_ironpdfengineproto_PdfiumCharObjectP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP.class, com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP.Builder.class);
}
// Construct using com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
left_ = 0D;
right_ = 0D;
top_ = 0D;
bottom_ = 0D;
looseleft_ = 0D;
looseright_ = 0D;
loosetop_ = 0D;
loosebottom_ = 0D;
contents_ = "";
angle_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.ironsoftware.ironpdf.internal.proto.PdfiumPdfDocument.internal_static_ironpdfengineproto_PdfiumCharObjectP_descriptor;
}
@java.lang.Override
public com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP getDefaultInstanceForType() {
return com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP.getDefaultInstance();
}
@java.lang.Override
public com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP build() {
com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP buildPartial() {
com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP result = new com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.left_ = left_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.right_ = right_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.top_ = top_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.bottom_ = bottom_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.looseleft_ = looseleft_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.looseright_ = looseright_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.loosetop_ = loosetop_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.loosebottom_ = loosebottom_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.contents_ = contents_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.angle_ = angle_;
}
}
@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.PdfiumCharObjectP) {
return mergeFrom((com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP other) {
if (other == com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP.getDefaultInstance()) return this;
if (other.getLeft() != 0D) {
setLeft(other.getLeft());
}
if (other.getRight() != 0D) {
setRight(other.getRight());
}
if (other.getTop() != 0D) {
setTop(other.getTop());
}
if (other.getBottom() != 0D) {
setBottom(other.getBottom());
}
if (other.getLooseleft() != 0D) {
setLooseleft(other.getLooseleft());
}
if (other.getLooseright() != 0D) {
setLooseright(other.getLooseright());
}
if (other.getLoosetop() != 0D) {
setLoosetop(other.getLoosetop());
}
if (other.getLoosebottom() != 0D) {
setLoosebottom(other.getLoosebottom());
}
if (!other.getContents().isEmpty()) {
contents_ = other.contents_;
bitField0_ |= 0x00000100;
onChanged();
}
if (other.getAngle() != 0D) {
setAngle(other.getAngle());
}
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 9: {
left_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
case 17: {
right_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 25: {
top_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
case 33: {
bottom_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 33
case 41: {
looseleft_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 41
case 49: {
looseright_ = input.readDouble();
bitField0_ |= 0x00000020;
break;
} // case 49
case 57: {
loosetop_ = input.readDouble();
bitField0_ |= 0x00000040;
break;
} // case 57
case 65: {
loosebottom_ = input.readDouble();
bitField0_ |= 0x00000080;
break;
} // case 65
case 74: {
contents_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
case 81: {
angle_ = input.readDouble();
bitField0_ |= 0x00000200;
break;
} // case 81
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 double left_ ;
/**
* double left = 1;
* @return The left.
*/
@java.lang.Override
public double getLeft() {
return left_;
}
/**
* double left = 1;
* @param value The left to set.
* @return This builder for chaining.
*/
public Builder setLeft(double value) {
left_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* double left = 1;
* @return This builder for chaining.
*/
public Builder clearLeft() {
bitField0_ = (bitField0_ & ~0x00000001);
left_ = 0D;
onChanged();
return this;
}
private double right_ ;
/**
* double right = 2;
* @return The right.
*/
@java.lang.Override
public double getRight() {
return right_;
}
/**
* double right = 2;
* @param value The right to set.
* @return This builder for chaining.
*/
public Builder setRight(double value) {
right_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* double right = 2;
* @return This builder for chaining.
*/
public Builder clearRight() {
bitField0_ = (bitField0_ & ~0x00000002);
right_ = 0D;
onChanged();
return this;
}
private double top_ ;
/**
* double top = 3;
* @return The top.
*/
@java.lang.Override
public double getTop() {
return top_;
}
/**
* double top = 3;
* @param value The top to set.
* @return This builder for chaining.
*/
public Builder setTop(double value) {
top_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* double top = 3;
* @return This builder for chaining.
*/
public Builder clearTop() {
bitField0_ = (bitField0_ & ~0x00000004);
top_ = 0D;
onChanged();
return this;
}
private double bottom_ ;
/**
* double bottom = 4;
* @return The bottom.
*/
@java.lang.Override
public double getBottom() {
return bottom_;
}
/**
* double bottom = 4;
* @param value The bottom to set.
* @return This builder for chaining.
*/
public Builder setBottom(double value) {
bottom_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* double bottom = 4;
* @return This builder for chaining.
*/
public Builder clearBottom() {
bitField0_ = (bitField0_ & ~0x00000008);
bottom_ = 0D;
onChanged();
return this;
}
private double looseleft_ ;
/**
* double looseleft = 5;
* @return The looseleft.
*/
@java.lang.Override
public double getLooseleft() {
return looseleft_;
}
/**
* double looseleft = 5;
* @param value The looseleft to set.
* @return This builder for chaining.
*/
public Builder setLooseleft(double value) {
looseleft_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* double looseleft = 5;
* @return This builder for chaining.
*/
public Builder clearLooseleft() {
bitField0_ = (bitField0_ & ~0x00000010);
looseleft_ = 0D;
onChanged();
return this;
}
private double looseright_ ;
/**
* double looseright = 6;
* @return The looseright.
*/
@java.lang.Override
public double getLooseright() {
return looseright_;
}
/**
* double looseright = 6;
* @param value The looseright to set.
* @return This builder for chaining.
*/
public Builder setLooseright(double value) {
looseright_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* double looseright = 6;
* @return This builder for chaining.
*/
public Builder clearLooseright() {
bitField0_ = (bitField0_ & ~0x00000020);
looseright_ = 0D;
onChanged();
return this;
}
private double loosetop_ ;
/**
* double loosetop = 7;
* @return The loosetop.
*/
@java.lang.Override
public double getLoosetop() {
return loosetop_;
}
/**
* double loosetop = 7;
* @param value The loosetop to set.
* @return This builder for chaining.
*/
public Builder setLoosetop(double value) {
loosetop_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* double loosetop = 7;
* @return This builder for chaining.
*/
public Builder clearLoosetop() {
bitField0_ = (bitField0_ & ~0x00000040);
loosetop_ = 0D;
onChanged();
return this;
}
private double loosebottom_ ;
/**
* double loosebottom = 8;
* @return The loosebottom.
*/
@java.lang.Override
public double getLoosebottom() {
return loosebottom_;
}
/**
* double loosebottom = 8;
* @param value The loosebottom to set.
* @return This builder for chaining.
*/
public Builder setLoosebottom(double value) {
loosebottom_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* double loosebottom = 8;
* @return This builder for chaining.
*/
public Builder clearLoosebottom() {
bitField0_ = (bitField0_ & ~0x00000080);
loosebottom_ = 0D;
onChanged();
return this;
}
private java.lang.Object contents_ = "";
/**
* string contents = 9;
* @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;
}
}
/**
* string contents = 9;
* @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;
}
}
/**
* string contents = 9;
* @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_ |= 0x00000100;
onChanged();
return this;
}
/**
* string contents = 9;
* @return This builder for chaining.
*/
public Builder clearContents() {
contents_ = getDefaultInstance().getContents();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* string contents = 9;
* @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_ |= 0x00000100;
onChanged();
return this;
}
private double angle_ ;
/**
* double angle = 10;
* @return The angle.
*/
@java.lang.Override
public double getAngle() {
return angle_;
}
/**
* double angle = 10;
* @param value The angle to set.
* @return This builder for chaining.
*/
public Builder setAngle(double value) {
angle_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* double angle = 10;
* @return This builder for chaining.
*/
public Builder clearAngle() {
bitField0_ = (bitField0_ & ~0x00000200);
angle_ = 0D;
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.PdfiumCharObjectP)
}
// @@protoc_insertion_point(class_scope:ironpdfengineproto.PdfiumCharObjectP)
private static final com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP();
}
public static com.ironsoftware.ironpdf.internal.proto.PdfiumCharObjectP getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PdfiumCharObjectP 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.PdfiumCharObjectP getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}