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

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

Go to download

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

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

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

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

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

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

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

  public interface InfoPOrBuilder extends
      // @@protoc_insertion_point(interface_extends:ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1;
     * @return Whether the imageBehavior field is set.
     */
    boolean hasImageBehavior();
    /**
     * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1;
     * @return The imageBehavior.
     */
    com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP getImageBehavior();
    /**
     * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1;
     */
    com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorPOrBuilder getImageBehaviorOrBuilder();

    /**
     * 
     *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
     * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; * @return Whether the renderOptions field is set. */ boolean hasRenderOptions(); /** *
     *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
     * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; * @return The renderOptions. */ com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP getRenderOptions(); /** *
     *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
     * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; */ com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsPOrBuilder getRenderOptionsOrBuilder(); } /** * Protobuf type {@code ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP} */ public static final class InfoP extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP) InfoPOrBuilder { private static final long serialVersionUID = 0L; // Use InfoP.newBuilder() to construct. private InfoP(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InfoP() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InfoP(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.ironsoftware.ironpdf.internal.proto.ChromeImage.internal_static_ironpdfengineproto_ChromeImageToPdfRequestStreamP_InfoP_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.ironsoftware.ironpdf.internal.proto.ChromeImage.internal_static_ironpdfengineproto_ChromeImageToPdfRequestStreamP_InfoP_fieldAccessorTable .ensureFieldAccessorsInitialized( com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.class, com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.Builder.class); } private int bitField0_; public static final int IMAGE_BEHAVIOR_FIELD_NUMBER = 1; private com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP imageBehavior_; /** * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1; * @return Whether the imageBehavior field is set. */ @java.lang.Override public boolean hasImageBehavior() { return ((bitField0_ & 0x00000001) != 0); } /** * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1; * @return The imageBehavior. */ @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP getImageBehavior() { return imageBehavior_ == null ? com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP.getDefaultInstance() : imageBehavior_; } /** * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1; */ @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorPOrBuilder getImageBehaviorOrBuilder() { return imageBehavior_ == null ? com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP.getDefaultInstance() : imageBehavior_; } public static final int RENDER_OPTIONS_FIELD_NUMBER = 2; private com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP renderOptions_; /** *
     *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
     * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; * @return Whether the renderOptions field is set. */ @java.lang.Override public boolean hasRenderOptions() { return ((bitField0_ & 0x00000002) != 0); } /** *
     *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
     * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; * @return The renderOptions. */ @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP getRenderOptions() { return renderOptions_ == null ? com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP.getDefaultInstance() : renderOptions_; } /** *
     *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
     * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; */ @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsPOrBuilder getRenderOptionsOrBuilder() { return renderOptions_ == null ? com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP.getDefaultInstance() : renderOptions_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getImageBehavior()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getRenderOptions()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getImageBehavior()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRenderOptions()); } 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.ChromeImageToPdfRequestStreamP.InfoP)) { return super.equals(obj); } com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP other = (com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP) obj; if (hasImageBehavior() != other.hasImageBehavior()) return false; if (hasImageBehavior()) { if (!getImageBehavior() .equals(other.getImageBehavior())) return false; } if (hasRenderOptions() != other.hasRenderOptions()) return false; if (hasRenderOptions()) { if (!getRenderOptions() .equals(other.getRenderOptions())) 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 (hasImageBehavior()) { hash = (37 * hash) + IMAGE_BEHAVIOR_FIELD_NUMBER; hash = (53 * hash) + getImageBehavior().hashCode(); } if (hasRenderOptions()) { hash = (37 * hash) + RENDER_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getRenderOptions().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP 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.ChromeImageToPdfRequestStreamP.InfoP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP 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.ChromeImageToPdfRequestStreamP.InfoP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP 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.ChromeImageToPdfRequestStreamP.InfoP parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP 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.ChromeImageToPdfRequestStreamP.InfoP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP 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.ChromeImageToPdfRequestStreamP.InfoP 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.ChromeImageToPdfRequestStreamP.InfoP 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.ChromeImageToPdfRequestStreamP.InfoP 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.ChromeImageToPdfRequestStreamP.InfoP} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP) com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoPOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.ironsoftware.ironpdf.internal.proto.ChromeImage.internal_static_ironpdfengineproto_ChromeImageToPdfRequestStreamP_InfoP_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.ironsoftware.ironpdf.internal.proto.ChromeImage.internal_static_ironpdfengineproto_ChromeImageToPdfRequestStreamP_InfoP_fieldAccessorTable .ensureFieldAccessorsInitialized( com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.class, com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.Builder.class); } // Construct using com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getImageBehaviorFieldBuilder(); getRenderOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; imageBehavior_ = null; if (imageBehaviorBuilder_ != null) { imageBehaviorBuilder_.dispose(); imageBehaviorBuilder_ = null; } renderOptions_ = null; if (renderOptionsBuilder_ != null) { renderOptionsBuilder_.dispose(); renderOptionsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.ironsoftware.ironpdf.internal.proto.ChromeImage.internal_static_ironpdfengineproto_ChromeImageToPdfRequestStreamP_InfoP_descriptor; } @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP getDefaultInstanceForType() { return com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.getDefaultInstance(); } @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP build() { com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP buildPartial() { com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP result = new com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.imageBehavior_ = imageBehaviorBuilder_ == null ? imageBehavior_ : imageBehaviorBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.renderOptions_ = renderOptionsBuilder_ == null ? renderOptions_ : renderOptionsBuilder_.build(); to_bitField0_ |= 0x00000002; } 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.ChromeImageToPdfRequestStreamP.InfoP) { return mergeFrom((com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP other) { if (other == com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.getDefaultInstance()) return this; if (other.hasImageBehavior()) { mergeImageBehavior(other.getImageBehavior()); } if (other.hasRenderOptions()) { mergeRenderOptions(other.getRenderOptions()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getImageBehaviorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getRenderOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP imageBehavior_; private com.google.protobuf.SingleFieldBuilderV3< com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP, com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP.Builder, com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorPOrBuilder> imageBehaviorBuilder_; /** * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1; * @return Whether the imageBehavior field is set. */ public boolean hasImageBehavior() { return ((bitField0_ & 0x00000001) != 0); } /** * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1; * @return The imageBehavior. */ public com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP getImageBehavior() { if (imageBehaviorBuilder_ == null) { return imageBehavior_ == null ? com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP.getDefaultInstance() : imageBehavior_; } else { return imageBehaviorBuilder_.getMessage(); } } /** * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1; */ public Builder setImageBehavior(com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP value) { if (imageBehaviorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } imageBehavior_ = value; } else { imageBehaviorBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1; */ public Builder setImageBehavior( com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP.Builder builderForValue) { if (imageBehaviorBuilder_ == null) { imageBehavior_ = builderForValue.build(); } else { imageBehaviorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1; */ public Builder mergeImageBehavior(com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP value) { if (imageBehaviorBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && imageBehavior_ != null && imageBehavior_ != com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP.getDefaultInstance()) { getImageBehaviorBuilder().mergeFrom(value); } else { imageBehavior_ = value; } } else { imageBehaviorBuilder_.mergeFrom(value); } if (imageBehavior_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1; */ public Builder clearImageBehavior() { bitField0_ = (bitField0_ & ~0x00000001); imageBehavior_ = null; if (imageBehaviorBuilder_ != null) { imageBehaviorBuilder_.dispose(); imageBehaviorBuilder_ = null; } onChanged(); return this; } /** * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1; */ public com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP.Builder getImageBehaviorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getImageBehaviorFieldBuilder().getBuilder(); } /** * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1; */ public com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorPOrBuilder getImageBehaviorOrBuilder() { if (imageBehaviorBuilder_ != null) { return imageBehaviorBuilder_.getMessageOrBuilder(); } else { return imageBehavior_ == null ? com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP.getDefaultInstance() : imageBehavior_; } } /** * .ironpdfengineproto.ChromeImageBehaviorP image_behavior = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP, com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP.Builder, com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorPOrBuilder> getImageBehaviorFieldBuilder() { if (imageBehaviorBuilder_ == null) { imageBehaviorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP, com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorP.Builder, com.ironsoftware.ironpdf.internal.proto.ChromeImageBehaviorPOrBuilder>( getImageBehavior(), getParentForChildren(), isClean()); imageBehavior_ = null; } return imageBehaviorBuilder_; } private com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP renderOptions_; private com.google.protobuf.SingleFieldBuilderV3< com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP, com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP.Builder, com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsPOrBuilder> renderOptionsBuilder_; /** *
       *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
       * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; * @return Whether the renderOptions field is set. */ public boolean hasRenderOptions() { return ((bitField0_ & 0x00000002) != 0); } /** *
       *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
       * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; * @return The renderOptions. */ public com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP getRenderOptions() { if (renderOptionsBuilder_ == null) { return renderOptions_ == null ? com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP.getDefaultInstance() : renderOptions_; } else { return renderOptionsBuilder_.getMessage(); } } /** *
       *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
       * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; */ public Builder setRenderOptions(com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP value) { if (renderOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } renderOptions_ = value; } else { renderOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
       * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; */ public Builder setRenderOptions( com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP.Builder builderForValue) { if (renderOptionsBuilder_ == null) { renderOptions_ = builderForValue.build(); } else { renderOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
       * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; */ public Builder mergeRenderOptions(com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP value) { if (renderOptionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && renderOptions_ != null && renderOptions_ != com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP.getDefaultInstance()) { getRenderOptionsBuilder().mergeFrom(value); } else { renderOptions_ = value; } } else { renderOptionsBuilder_.mergeFrom(value); } if (renderOptions_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
       *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
       * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; */ public Builder clearRenderOptions() { bitField0_ = (bitField0_ & ~0x00000002); renderOptions_ = null; if (renderOptionsBuilder_ != null) { renderOptionsBuilder_.dispose(); renderOptionsBuilder_ = null; } onChanged(); return this; } /** *
       *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
       * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; */ public com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP.Builder getRenderOptionsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getRenderOptionsFieldBuilder().getBuilder(); } /** *
       *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
       * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; */ public com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsPOrBuilder getRenderOptionsOrBuilder() { if (renderOptionsBuilder_ != null) { return renderOptionsBuilder_.getMessageOrBuilder(); } else { return renderOptions_ == null ? com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP.getDefaultInstance() : renderOptions_; } } /** *
       *    optional ChromePdfPaperSizeP paper_size = 3; //duplicated with render_options
       * 
* * optional .ironpdfengineproto.ChromePdfRenderOptionsP render_options = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP, com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP.Builder, com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsPOrBuilder> getRenderOptionsFieldBuilder() { if (renderOptionsBuilder_ == null) { renderOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP, com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsP.Builder, com.ironsoftware.ironpdf.internal.proto.ChromePdfRenderOptionsPOrBuilder>( getRenderOptions(), getParentForChildren(), isClean()); renderOptions_ = null; } return renderOptionsBuilder_; } @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.ChromeImageToPdfRequestStreamP.InfoP) } // @@protoc_insertion_point(class_scope:ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP) private static final com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP(); } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InfoP 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.ChromeImageToPdfRequestStreamP.InfoP getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int requestCase_ = 0; @SuppressWarnings("serial") private java.lang.Object request_; public enum RequestCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INFO(1), RAW_IMAGES_CHUNK(2), REQUEST_NOT_SET(0); private final int value; private RequestCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RequestCase valueOf(int value) { return forNumber(value); } public static RequestCase forNumber(int value) { switch (value) { case 1: return INFO; case 2: return RAW_IMAGES_CHUNK; case 0: return REQUEST_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public static final int INFO_FIELD_NUMBER = 1; /** * .ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP info = 1; * @return Whether the info field is set. */ @java.lang.Override public boolean hasInfo() { return requestCase_ == 1; } /** * .ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP info = 1; * @return The info. */ @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP getInfo() { if (requestCase_ == 1) { return (com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP) request_; } return com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.getDefaultInstance(); } /** * .ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP info = 1; */ @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoPOrBuilder getInfoOrBuilder() { if (requestCase_ == 1) { return (com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP) request_; } return com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.getDefaultInstance(); } public static final int RAW_IMAGES_CHUNK_FIELD_NUMBER = 2; /** * .ironpdfengineproto.RawImageChunkWithIndexP raw_images_chunk = 2; * @return Whether the rawImagesChunk field is set. */ @java.lang.Override public boolean hasRawImagesChunk() { return requestCase_ == 2; } /** * .ironpdfengineproto.RawImageChunkWithIndexP raw_images_chunk = 2; * @return The rawImagesChunk. */ @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP getRawImagesChunk() { if (requestCase_ == 2) { return (com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP) request_; } return com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP.getDefaultInstance(); } /** * .ironpdfengineproto.RawImageChunkWithIndexP raw_images_chunk = 2; */ @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexPOrBuilder getRawImagesChunkOrBuilder() { if (requestCase_ == 2) { return (com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP) request_; } return com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP.getDefaultInstance(); } 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 (requestCase_ == 1) { output.writeMessage(1, (com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP) request_); } if (requestCase_ == 2) { output.writeMessage(2, (com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP) request_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requestCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP) request_); } if (requestCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP) request_); } 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.ChromeImageToPdfRequestStreamP)) { return super.equals(obj); } com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP other = (com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP) obj; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: if (!getInfo() .equals(other.getInfo())) return false; break; case 2: if (!getRawImagesChunk() .equals(other.getRawImagesChunk())) return false; break; case 0: default: } 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(); switch (requestCase_) { case 1: hash = (37 * hash) + INFO_FIELD_NUMBER; hash = (53 * hash) + getInfo().hashCode(); break; case 2: hash = (37 * hash) + RAW_IMAGES_CHUNK_FIELD_NUMBER; hash = (53 * hash) + getRawImagesChunk().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP 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.ChromeImageToPdfRequestStreamP parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP 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.ChromeImageToPdfRequestStreamP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP 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.ChromeImageToPdfRequestStreamP parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP 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.ChromeImageToPdfRequestStreamP parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP 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.ChromeImageToPdfRequestStreamP 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.ChromeImageToPdfRequestStreamP 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.ChromeImageToPdfRequestStreamP 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.ChromeImageToPdfRequestStreamP} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ironpdfengineproto.ChromeImageToPdfRequestStreamP) com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamPOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.ironsoftware.ironpdf.internal.proto.ChromeImage.internal_static_ironpdfengineproto_ChromeImageToPdfRequestStreamP_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.ironsoftware.ironpdf.internal.proto.ChromeImage.internal_static_ironpdfengineproto_ChromeImageToPdfRequestStreamP_fieldAccessorTable .ensureFieldAccessorsInitialized( com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.class, com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.Builder.class); } // Construct using com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (infoBuilder_ != null) { infoBuilder_.clear(); } if (rawImagesChunkBuilder_ != null) { rawImagesChunkBuilder_.clear(); } requestCase_ = 0; request_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.ironsoftware.ironpdf.internal.proto.ChromeImage.internal_static_ironpdfengineproto_ChromeImageToPdfRequestStreamP_descriptor; } @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP getDefaultInstanceForType() { return com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.getDefaultInstance(); } @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP build() { com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP buildPartial() { com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP result = new com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP result) { result.requestCase_ = requestCase_; result.request_ = this.request_; if (requestCase_ == 1 && infoBuilder_ != null) { result.request_ = infoBuilder_.build(); } if (requestCase_ == 2 && rawImagesChunkBuilder_ != null) { result.request_ = rawImagesChunkBuilder_.build(); } } @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.ChromeImageToPdfRequestStreamP) { return mergeFrom((com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP other) { if (other == com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.getDefaultInstance()) return this; switch (other.getRequestCase()) { case INFO: { mergeInfo(other.getInfo()); break; } case RAW_IMAGES_CHUNK: { mergeRawImagesChunk(other.getRawImagesChunk()); break; } case REQUEST_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getInfoFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 1; break; } // case 10 case 18: { input.readMessage( getRawImagesChunkFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 2; break; } // case 18 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 requestCase_ = 0; private java.lang.Object request_; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public Builder clearRequest() { requestCase_ = 0; request_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP, com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.Builder, com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoPOrBuilder> infoBuilder_; /** * .ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP info = 1; * @return Whether the info field is set. */ @java.lang.Override public boolean hasInfo() { return requestCase_ == 1; } /** * .ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP info = 1; * @return The info. */ @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP getInfo() { if (infoBuilder_ == null) { if (requestCase_ == 1) { return (com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP) request_; } return com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.getDefaultInstance(); } else { if (requestCase_ == 1) { return infoBuilder_.getMessage(); } return com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.getDefaultInstance(); } } /** * .ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP info = 1; */ public Builder setInfo(com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP value) { if (infoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { infoBuilder_.setMessage(value); } requestCase_ = 1; return this; } /** * .ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP info = 1; */ public Builder setInfo( com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.Builder builderForValue) { if (infoBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { infoBuilder_.setMessage(builderForValue.build()); } requestCase_ = 1; return this; } /** * .ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP info = 1; */ public Builder mergeInfo(com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP value) { if (infoBuilder_ == null) { if (requestCase_ == 1 && request_ != com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.getDefaultInstance()) { request_ = com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.newBuilder((com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 1) { infoBuilder_.mergeFrom(value); } else { infoBuilder_.setMessage(value); } } requestCase_ = 1; return this; } /** * .ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP info = 1; */ public Builder clearInfo() { if (infoBuilder_ == null) { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; } infoBuilder_.clear(); } return this; } /** * .ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP info = 1; */ public com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.Builder getInfoBuilder() { return getInfoFieldBuilder().getBuilder(); } /** * .ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP info = 1; */ @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoPOrBuilder getInfoOrBuilder() { if ((requestCase_ == 1) && (infoBuilder_ != null)) { return infoBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 1) { return (com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP) request_; } return com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.getDefaultInstance(); } } /** * .ironpdfengineproto.ChromeImageToPdfRequestStreamP.InfoP info = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP, com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.Builder, com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoPOrBuilder> getInfoFieldBuilder() { if (infoBuilder_ == null) { if (!(requestCase_ == 1)) { request_ = com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.getDefaultInstance(); } infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP, com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP.Builder, com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoPOrBuilder>( (com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP.InfoP) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 1; onChanged(); return infoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP, com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP.Builder, com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexPOrBuilder> rawImagesChunkBuilder_; /** * .ironpdfengineproto.RawImageChunkWithIndexP raw_images_chunk = 2; * @return Whether the rawImagesChunk field is set. */ @java.lang.Override public boolean hasRawImagesChunk() { return requestCase_ == 2; } /** * .ironpdfengineproto.RawImageChunkWithIndexP raw_images_chunk = 2; * @return The rawImagesChunk. */ @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP getRawImagesChunk() { if (rawImagesChunkBuilder_ == null) { if (requestCase_ == 2) { return (com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP) request_; } return com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP.getDefaultInstance(); } else { if (requestCase_ == 2) { return rawImagesChunkBuilder_.getMessage(); } return com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP.getDefaultInstance(); } } /** * .ironpdfengineproto.RawImageChunkWithIndexP raw_images_chunk = 2; */ public Builder setRawImagesChunk(com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP value) { if (rawImagesChunkBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { rawImagesChunkBuilder_.setMessage(value); } requestCase_ = 2; return this; } /** * .ironpdfengineproto.RawImageChunkWithIndexP raw_images_chunk = 2; */ public Builder setRawImagesChunk( com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP.Builder builderForValue) { if (rawImagesChunkBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { rawImagesChunkBuilder_.setMessage(builderForValue.build()); } requestCase_ = 2; return this; } /** * .ironpdfengineproto.RawImageChunkWithIndexP raw_images_chunk = 2; */ public Builder mergeRawImagesChunk(com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP value) { if (rawImagesChunkBuilder_ == null) { if (requestCase_ == 2 && request_ != com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP.getDefaultInstance()) { request_ = com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP.newBuilder((com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 2) { rawImagesChunkBuilder_.mergeFrom(value); } else { rawImagesChunkBuilder_.setMessage(value); } } requestCase_ = 2; return this; } /** * .ironpdfengineproto.RawImageChunkWithIndexP raw_images_chunk = 2; */ public Builder clearRawImagesChunk() { if (rawImagesChunkBuilder_ == null) { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; } rawImagesChunkBuilder_.clear(); } return this; } /** * .ironpdfengineproto.RawImageChunkWithIndexP raw_images_chunk = 2; */ public com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP.Builder getRawImagesChunkBuilder() { return getRawImagesChunkFieldBuilder().getBuilder(); } /** * .ironpdfengineproto.RawImageChunkWithIndexP raw_images_chunk = 2; */ @java.lang.Override public com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexPOrBuilder getRawImagesChunkOrBuilder() { if ((requestCase_ == 2) && (rawImagesChunkBuilder_ != null)) { return rawImagesChunkBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 2) { return (com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP) request_; } return com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP.getDefaultInstance(); } } /** * .ironpdfengineproto.RawImageChunkWithIndexP raw_images_chunk = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP, com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP.Builder, com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexPOrBuilder> getRawImagesChunkFieldBuilder() { if (rawImagesChunkBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP.getDefaultInstance(); } rawImagesChunkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP, com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP.Builder, com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexPOrBuilder>( (com.ironsoftware.ironpdf.internal.proto.RawImageChunkWithIndexP) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 2; onChanged(); return rawImagesChunkBuilder_; } @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.ChromeImageToPdfRequestStreamP) } // @@protoc_insertion_point(class_scope:ironpdfengineproto.ChromeImageToPdfRequestStreamP) private static final com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP(); } public static com.ironsoftware.ironpdf.internal.proto.ChromeImageToPdfRequestStreamP getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChromeImageToPdfRequestStreamP 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.ChromeImageToPdfRequestStreamP getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy