com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP 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: chrome_stamp.proto
// Protobuf Java Version: 3.25.0
package com.ironsoftware.ironpdf.internal.proto;
/**
* Protobuf type {@code ironpdfengineproto.ChromeTextStamperInfoP}
*/
public final class ChromeTextStamperInfoP extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ironpdfengineproto.ChromeTextStamperInfoP)
ChromeTextStamperInfoPOrBuilder {
private static final long serialVersionUID = 0L;
// Use ChromeTextStamperInfoP.newBuilder() to construct.
private ChromeTextStamperInfoP(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ChromeTextStamperInfoP() {
fontFamily_ = "";
textColor_ = "";
backgroundColor_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ChromeTextStamperInfoP();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ironsoftware.ironpdf.internal.proto.ChromeStamp.internal_static_ironpdfengineproto_ChromeTextStamperInfoP_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ironsoftware.ironpdf.internal.proto.ChromeStamp.internal_static_ironpdfengineproto_ChromeTextStamperInfoP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP.class, com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP.Builder.class);
}
private int bitField0_;
public static final int IS_BOLD_FIELD_NUMBER = 1;
private boolean isBold_ = false;
/**
* optional bool is_bold = 1;
* @return Whether the isBold field is set.
*/
@java.lang.Override
public boolean hasIsBold() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bool is_bold = 1;
* @return The isBold.
*/
@java.lang.Override
public boolean getIsBold() {
return isBold_;
}
public static final int IS_ITALIC_FIELD_NUMBER = 2;
private boolean isItalic_ = false;
/**
* optional bool is_italic = 2;
* @return Whether the isItalic field is set.
*/
@java.lang.Override
public boolean hasIsItalic() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool is_italic = 2;
* @return The isItalic.
*/
@java.lang.Override
public boolean getIsItalic() {
return isItalic_;
}
public static final int IS_UNDERLINE_FIELD_NUMBER = 3;
private boolean isUnderline_ = false;
/**
* optional bool is_underline = 3;
* @return Whether the isUnderline field is set.
*/
@java.lang.Override
public boolean hasIsUnderline() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bool is_underline = 3;
* @return The isUnderline.
*/
@java.lang.Override
public boolean getIsUnderline() {
return isUnderline_;
}
public static final int IS_STRIKETHROUGH_FIELD_NUMBER = 4;
private boolean isStrikethrough_ = false;
/**
* optional bool is_strikethrough = 4;
* @return Whether the isStrikethrough field is set.
*/
@java.lang.Override
public boolean hasIsStrikethrough() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool is_strikethrough = 4;
* @return The isStrikethrough.
*/
@java.lang.Override
public boolean getIsStrikethrough() {
return isStrikethrough_;
}
public static final int FONT_FAMILY_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object fontFamily_ = "";
/**
* optional string font_family = 5;
* @return Whether the fontFamily field is set.
*/
@java.lang.Override
public boolean hasFontFamily() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string font_family = 5;
* @return The fontFamily.
*/
@java.lang.Override
public java.lang.String getFontFamily() {
java.lang.Object ref = fontFamily_;
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();
fontFamily_ = s;
return s;
}
}
/**
* optional string font_family = 5;
* @return The bytes for fontFamily.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFontFamilyBytes() {
java.lang.Object ref = fontFamily_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fontFamily_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FONT_SIZE_FIELD_NUMBER = 6;
private int fontSize_ = 0;
/**
* optional int32 font_size = 6;
* @return Whether the fontSize field is set.
*/
@java.lang.Override
public boolean hasFontSize() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 font_size = 6;
* @return The fontSize.
*/
@java.lang.Override
public int getFontSize() {
return fontSize_;
}
public static final int USE_GOOGLE_FONT_FIELD_NUMBER = 7;
private boolean useGoogleFont_ = false;
/**
* optional bool use_google_font = 7;
* @return Whether the useGoogleFont field is set.
*/
@java.lang.Override
public boolean hasUseGoogleFont() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool use_google_font = 7;
* @return The useGoogleFont.
*/
@java.lang.Override
public boolean getUseGoogleFont() {
return useGoogleFont_;
}
public static final int TEXT_COLOR_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private volatile java.lang.Object textColor_ = "";
/**
* optional string text_color = 8;
* @return Whether the textColor field is set.
*/
@java.lang.Override
public boolean hasTextColor() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string text_color = 8;
* @return The textColor.
*/
@java.lang.Override
public java.lang.String getTextColor() {
java.lang.Object ref = textColor_;
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();
textColor_ = s;
return s;
}
}
/**
* optional string text_color = 8;
* @return The bytes for textColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextColorBytes() {
java.lang.Object ref = textColor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
textColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BACKGROUND_COLOR_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object backgroundColor_ = "";
/**
* optional string background_color = 9;
* @return Whether the backgroundColor field is set.
*/
@java.lang.Override
public boolean hasBackgroundColor() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string background_color = 9;
* @return The backgroundColor.
*/
@java.lang.Override
public java.lang.String getBackgroundColor() {
java.lang.Object ref = backgroundColor_;
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();
backgroundColor_ = s;
return s;
}
}
/**
* optional string background_color = 9;
* @return The bytes for backgroundColor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBackgroundColorBytes() {
java.lang.Object ref = backgroundColor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
backgroundColor_ = 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.writeBool(1, isBold_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, isItalic_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(3, isUnderline_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(4, isStrikethrough_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fontFamily_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt32(6, fontSize_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(7, useGoogleFont_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, textColor_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, backgroundColor_);
}
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
.computeBoolSize(1, isBold_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, isItalic_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, isUnderline_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, isStrikethrough_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, fontFamily_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, fontSize_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, useGoogleFont_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, textColor_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, backgroundColor_);
}
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.ChromeTextStamperInfoP)) {
return super.equals(obj);
}
com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP other = (com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP) obj;
if (hasIsBold() != other.hasIsBold()) return false;
if (hasIsBold()) {
if (getIsBold()
!= other.getIsBold()) return false;
}
if (hasIsItalic() != other.hasIsItalic()) return false;
if (hasIsItalic()) {
if (getIsItalic()
!= other.getIsItalic()) return false;
}
if (hasIsUnderline() != other.hasIsUnderline()) return false;
if (hasIsUnderline()) {
if (getIsUnderline()
!= other.getIsUnderline()) return false;
}
if (hasIsStrikethrough() != other.hasIsStrikethrough()) return false;
if (hasIsStrikethrough()) {
if (getIsStrikethrough()
!= other.getIsStrikethrough()) return false;
}
if (hasFontFamily() != other.hasFontFamily()) return false;
if (hasFontFamily()) {
if (!getFontFamily()
.equals(other.getFontFamily())) return false;
}
if (hasFontSize() != other.hasFontSize()) return false;
if (hasFontSize()) {
if (getFontSize()
!= other.getFontSize()) return false;
}
if (hasUseGoogleFont() != other.hasUseGoogleFont()) return false;
if (hasUseGoogleFont()) {
if (getUseGoogleFont()
!= other.getUseGoogleFont()) return false;
}
if (hasTextColor() != other.hasTextColor()) return false;
if (hasTextColor()) {
if (!getTextColor()
.equals(other.getTextColor())) return false;
}
if (hasBackgroundColor() != other.hasBackgroundColor()) return false;
if (hasBackgroundColor()) {
if (!getBackgroundColor()
.equals(other.getBackgroundColor())) 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 (hasIsBold()) {
hash = (37 * hash) + IS_BOLD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsBold());
}
if (hasIsItalic()) {
hash = (37 * hash) + IS_ITALIC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsItalic());
}
if (hasIsUnderline()) {
hash = (37 * hash) + IS_UNDERLINE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsUnderline());
}
if (hasIsStrikethrough()) {
hash = (37 * hash) + IS_STRIKETHROUGH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsStrikethrough());
}
if (hasFontFamily()) {
hash = (37 * hash) + FONT_FAMILY_FIELD_NUMBER;
hash = (53 * hash) + getFontFamily().hashCode();
}
if (hasFontSize()) {
hash = (37 * hash) + FONT_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getFontSize();
}
if (hasUseGoogleFont()) {
hash = (37 * hash) + USE_GOOGLE_FONT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUseGoogleFont());
}
if (hasTextColor()) {
hash = (37 * hash) + TEXT_COLOR_FIELD_NUMBER;
hash = (53 * hash) + getTextColor().hashCode();
}
if (hasBackgroundColor()) {
hash = (37 * hash) + BACKGROUND_COLOR_FIELD_NUMBER;
hash = (53 * hash) + getBackgroundColor().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP 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.ChromeTextStamperInfoP parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP 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.ChromeTextStamperInfoP parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP 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.ChromeTextStamperInfoP parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP 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.ChromeTextStamperInfoP parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP 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.ChromeTextStamperInfoP 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.ChromeTextStamperInfoP 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.ChromeTextStamperInfoP 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.ChromeTextStamperInfoP}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ironpdfengineproto.ChromeTextStamperInfoP)
com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoPOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.ironsoftware.ironpdf.internal.proto.ChromeStamp.internal_static_ironpdfengineproto_ChromeTextStamperInfoP_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.ironsoftware.ironpdf.internal.proto.ChromeStamp.internal_static_ironpdfengineproto_ChromeTextStamperInfoP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP.class, com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP.Builder.class);
}
// Construct using com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
isBold_ = false;
isItalic_ = false;
isUnderline_ = false;
isStrikethrough_ = false;
fontFamily_ = "";
fontSize_ = 0;
useGoogleFont_ = false;
textColor_ = "";
backgroundColor_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.ironsoftware.ironpdf.internal.proto.ChromeStamp.internal_static_ironpdfengineproto_ChromeTextStamperInfoP_descriptor;
}
@java.lang.Override
public com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP getDefaultInstanceForType() {
return com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP.getDefaultInstance();
}
@java.lang.Override
public com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP build() {
com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP buildPartial() {
com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP result = new com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.isBold_ = isBold_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.isItalic_ = isItalic_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.isUnderline_ = isUnderline_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.isStrikethrough_ = isStrikethrough_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.fontFamily_ = fontFamily_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.fontSize_ = fontSize_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.useGoogleFont_ = useGoogleFont_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.textColor_ = textColor_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.backgroundColor_ = backgroundColor_;
to_bitField0_ |= 0x00000100;
}
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.ChromeTextStamperInfoP) {
return mergeFrom((com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP other) {
if (other == com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP.getDefaultInstance()) return this;
if (other.hasIsBold()) {
setIsBold(other.getIsBold());
}
if (other.hasIsItalic()) {
setIsItalic(other.getIsItalic());
}
if (other.hasIsUnderline()) {
setIsUnderline(other.getIsUnderline());
}
if (other.hasIsStrikethrough()) {
setIsStrikethrough(other.getIsStrikethrough());
}
if (other.hasFontFamily()) {
fontFamily_ = other.fontFamily_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasFontSize()) {
setFontSize(other.getFontSize());
}
if (other.hasUseGoogleFont()) {
setUseGoogleFont(other.getUseGoogleFont());
}
if (other.hasTextColor()) {
textColor_ = other.textColor_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasBackgroundColor()) {
backgroundColor_ = other.backgroundColor_;
bitField0_ |= 0x00000100;
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 8: {
isBold_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
isItalic_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
isUnderline_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
isStrikethrough_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
fontFamily_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
fontSize_ = input.readInt32();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
useGoogleFont_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 56
case 66: {
textColor_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000080;
break;
} // case 66
case 74: {
backgroundColor_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
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 boolean isBold_ ;
/**
* optional bool is_bold = 1;
* @return Whether the isBold field is set.
*/
@java.lang.Override
public boolean hasIsBold() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bool is_bold = 1;
* @return The isBold.
*/
@java.lang.Override
public boolean getIsBold() {
return isBold_;
}
/**
* optional bool is_bold = 1;
* @param value The isBold to set.
* @return This builder for chaining.
*/
public Builder setIsBold(boolean value) {
isBold_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional bool is_bold = 1;
* @return This builder for chaining.
*/
public Builder clearIsBold() {
bitField0_ = (bitField0_ & ~0x00000001);
isBold_ = false;
onChanged();
return this;
}
private boolean isItalic_ ;
/**
* optional bool is_italic = 2;
* @return Whether the isItalic field is set.
*/
@java.lang.Override
public boolean hasIsItalic() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool is_italic = 2;
* @return The isItalic.
*/
@java.lang.Override
public boolean getIsItalic() {
return isItalic_;
}
/**
* optional bool is_italic = 2;
* @param value The isItalic to set.
* @return This builder for chaining.
*/
public Builder setIsItalic(boolean value) {
isItalic_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional bool is_italic = 2;
* @return This builder for chaining.
*/
public Builder clearIsItalic() {
bitField0_ = (bitField0_ & ~0x00000002);
isItalic_ = false;
onChanged();
return this;
}
private boolean isUnderline_ ;
/**
* optional bool is_underline = 3;
* @return Whether the isUnderline field is set.
*/
@java.lang.Override
public boolean hasIsUnderline() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bool is_underline = 3;
* @return The isUnderline.
*/
@java.lang.Override
public boolean getIsUnderline() {
return isUnderline_;
}
/**
* optional bool is_underline = 3;
* @param value The isUnderline to set.
* @return This builder for chaining.
*/
public Builder setIsUnderline(boolean value) {
isUnderline_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional bool is_underline = 3;
* @return This builder for chaining.
*/
public Builder clearIsUnderline() {
bitField0_ = (bitField0_ & ~0x00000004);
isUnderline_ = false;
onChanged();
return this;
}
private boolean isStrikethrough_ ;
/**
* optional bool is_strikethrough = 4;
* @return Whether the isStrikethrough field is set.
*/
@java.lang.Override
public boolean hasIsStrikethrough() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool is_strikethrough = 4;
* @return The isStrikethrough.
*/
@java.lang.Override
public boolean getIsStrikethrough() {
return isStrikethrough_;
}
/**
* optional bool is_strikethrough = 4;
* @param value The isStrikethrough to set.
* @return This builder for chaining.
*/
public Builder setIsStrikethrough(boolean value) {
isStrikethrough_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional bool is_strikethrough = 4;
* @return This builder for chaining.
*/
public Builder clearIsStrikethrough() {
bitField0_ = (bitField0_ & ~0x00000008);
isStrikethrough_ = false;
onChanged();
return this;
}
private java.lang.Object fontFamily_ = "";
/**
* optional string font_family = 5;
* @return Whether the fontFamily field is set.
*/
public boolean hasFontFamily() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string font_family = 5;
* @return The fontFamily.
*/
public java.lang.String getFontFamily() {
java.lang.Object ref = fontFamily_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
fontFamily_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string font_family = 5;
* @return The bytes for fontFamily.
*/
public com.google.protobuf.ByteString
getFontFamilyBytes() {
java.lang.Object ref = fontFamily_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fontFamily_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string font_family = 5;
* @param value The fontFamily to set.
* @return This builder for chaining.
*/
public Builder setFontFamily(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
fontFamily_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional string font_family = 5;
* @return This builder for chaining.
*/
public Builder clearFontFamily() {
fontFamily_ = getDefaultInstance().getFontFamily();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* optional string font_family = 5;
* @param value The bytes for fontFamily to set.
* @return This builder for chaining.
*/
public Builder setFontFamilyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
fontFamily_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private int fontSize_ ;
/**
* optional int32 font_size = 6;
* @return Whether the fontSize field is set.
*/
@java.lang.Override
public boolean hasFontSize() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 font_size = 6;
* @return The fontSize.
*/
@java.lang.Override
public int getFontSize() {
return fontSize_;
}
/**
* optional int32 font_size = 6;
* @param value The fontSize to set.
* @return This builder for chaining.
*/
public Builder setFontSize(int value) {
fontSize_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional int32 font_size = 6;
* @return This builder for chaining.
*/
public Builder clearFontSize() {
bitField0_ = (bitField0_ & ~0x00000020);
fontSize_ = 0;
onChanged();
return this;
}
private boolean useGoogleFont_ ;
/**
* optional bool use_google_font = 7;
* @return Whether the useGoogleFont field is set.
*/
@java.lang.Override
public boolean hasUseGoogleFont() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool use_google_font = 7;
* @return The useGoogleFont.
*/
@java.lang.Override
public boolean getUseGoogleFont() {
return useGoogleFont_;
}
/**
* optional bool use_google_font = 7;
* @param value The useGoogleFont to set.
* @return This builder for chaining.
*/
public Builder setUseGoogleFont(boolean value) {
useGoogleFont_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* optional bool use_google_font = 7;
* @return This builder for chaining.
*/
public Builder clearUseGoogleFont() {
bitField0_ = (bitField0_ & ~0x00000040);
useGoogleFont_ = false;
onChanged();
return this;
}
private java.lang.Object textColor_ = "";
/**
* optional string text_color = 8;
* @return Whether the textColor field is set.
*/
public boolean hasTextColor() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string text_color = 8;
* @return The textColor.
*/
public java.lang.String getTextColor() {
java.lang.Object ref = textColor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
textColor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string text_color = 8;
* @return The bytes for textColor.
*/
public com.google.protobuf.ByteString
getTextColorBytes() {
java.lang.Object ref = textColor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
textColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string text_color = 8;
* @param value The textColor to set.
* @return This builder for chaining.
*/
public Builder setTextColor(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
textColor_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* optional string text_color = 8;
* @return This builder for chaining.
*/
public Builder clearTextColor() {
textColor_ = getDefaultInstance().getTextColor();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* optional string text_color = 8;
* @param value The bytes for textColor to set.
* @return This builder for chaining.
*/
public Builder setTextColorBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
textColor_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.lang.Object backgroundColor_ = "";
/**
* optional string background_color = 9;
* @return Whether the backgroundColor field is set.
*/
public boolean hasBackgroundColor() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string background_color = 9;
* @return The backgroundColor.
*/
public java.lang.String getBackgroundColor() {
java.lang.Object ref = backgroundColor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
backgroundColor_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string background_color = 9;
* @return The bytes for backgroundColor.
*/
public com.google.protobuf.ByteString
getBackgroundColorBytes() {
java.lang.Object ref = backgroundColor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
backgroundColor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string background_color = 9;
* @param value The backgroundColor to set.
* @return This builder for chaining.
*/
public Builder setBackgroundColor(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
backgroundColor_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* optional string background_color = 9;
* @return This builder for chaining.
*/
public Builder clearBackgroundColor() {
backgroundColor_ = getDefaultInstance().getBackgroundColor();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* optional string background_color = 9;
* @param value The bytes for backgroundColor to set.
* @return This builder for chaining.
*/
public Builder setBackgroundColorBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
backgroundColor_ = value;
bitField0_ |= 0x00000100;
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.ChromeTextStamperInfoP)
}
// @@protoc_insertion_point(class_scope:ironpdfengineproto.ChromeTextStamperInfoP)
private static final com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP();
}
public static com.ironsoftware.ironpdf.internal.proto.ChromeTextStamperInfoP getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ChromeTextStamperInfoP 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.ChromeTextStamperInfoP getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}