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

org.apache.flink.formats.protobuf.testproto.SimpleTest Maven / Gradle / Ivy

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

package org.apache.flink.formats.protobuf.testproto;

/**
 * Protobuf type {@code org.apache.flink.formats.protobuf.testproto.SimpleTest}
 */
public  final class SimpleTest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:org.apache.flink.formats.protobuf.testproto.SimpleTest)
    SimpleTestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SimpleTest.newBuilder() to construct.
  private SimpleTest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private SimpleTest() {
    a_ = 10;
    b_ = 100L;
    f_ = "f";
    g_ = com.google.protobuf.ByteString.EMPTY;
    h_ = 0;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private SimpleTest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {
            bitField0_ |= 0x00000001;
            a_ = input.readInt32();
            break;
          }
          case 16: {
            bitField0_ |= 0x00000002;
            b_ = input.readInt64();
            break;
          }
          case 24: {
            bitField0_ |= 0x00000004;
            c_ = input.readBool();
            break;
          }
          case 37: {
            bitField0_ |= 0x00000008;
            d_ = input.readFloat();
            break;
          }
          case 41: {
            bitField0_ |= 0x00000010;
            e_ = input.readDouble();
            break;
          }
          case 50: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000020;
            f_ = bs;
            break;
          }
          case 58: {
            bitField0_ |= 0x00000040;
            g_ = input.readBytes();
            break;
          }
          case 64: {
            int rawValue = input.readEnum();
              @SuppressWarnings("deprecation")
            org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus value = org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus.valueOf(rawValue);
            if (value == null) {
              unknownFields.mergeVarintField(8, rawValue);
            } else {
              bitField0_ |= 0x00000080;
              h_ = rawValue;
            }
            break;
          }
          case 72: {
            bitField0_ |= 0x00000100;
            fAbc7D_ = input.readInt32();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.apache.flink.formats.protobuf.testproto.SimpleTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_SimpleTest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.apache.flink.formats.protobuf.testproto.SimpleTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_SimpleTest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.apache.flink.formats.protobuf.testproto.SimpleTest.class, org.apache.flink.formats.protobuf.testproto.SimpleTest.Builder.class);
  }

  /**
   * Protobuf enum {@code org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus}
   */
  public enum Corpus
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * UNIVERSAL = 0;
     */
    UNIVERSAL(0),
    /**
     * WEB = 1;
     */
    WEB(1),
    /**
     * IMAGES = 2;
     */
    IMAGES(2),
    /**
     * LOCAL = 3;
     */
    LOCAL(3),
    /**
     * NEWS = 4;
     */
    NEWS(4),
    /**
     * PRODUCTS = 5;
     */
    PRODUCTS(5),
    /**
     * VIDEO = 7;
     */
    VIDEO(7),
    ;

    /**
     * UNIVERSAL = 0;
     */
    public static final int UNIVERSAL_VALUE = 0;
    /**
     * WEB = 1;
     */
    public static final int WEB_VALUE = 1;
    /**
     * IMAGES = 2;
     */
    public static final int IMAGES_VALUE = 2;
    /**
     * LOCAL = 3;
     */
    public static final int LOCAL_VALUE = 3;
    /**
     * NEWS = 4;
     */
    public static final int NEWS_VALUE = 4;
    /**
     * PRODUCTS = 5;
     */
    public static final int PRODUCTS_VALUE = 5;
    /**
     * VIDEO = 7;
     */
    public static final int VIDEO_VALUE = 7;


    public final int getNumber() {
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Corpus valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Corpus forNumber(int value) {
      switch (value) {
        case 0: return UNIVERSAL;
        case 1: return WEB;
        case 2: return IMAGES;
        case 3: return LOCAL;
        case 4: return NEWS;
        case 5: return PRODUCTS;
        case 7: return VIDEO;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        Corpus> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public Corpus findValueByNumber(int number) {
              return Corpus.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return org.apache.flink.formats.protobuf.testproto.SimpleTest.getDescriptor().getEnumTypes().get(0);
    }

    private static final Corpus[] VALUES = values();

    public static Corpus valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Corpus(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus)
  }

  private int bitField0_;
  public static final int A_FIELD_NUMBER = 1;
  private int a_;
  /**
   * optional int32 a = 1 [default = 10];
   * @return Whether the a field is set.
   */
  public boolean hasA() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional int32 a = 1 [default = 10];
   * @return The a.
   */
  public int getA() {
    return a_;
  }

  public static final int B_FIELD_NUMBER = 2;
  private long b_;
  /**
   * optional int64 b = 2 [default = 100];
   * @return Whether the b field is set.
   */
  public boolean hasB() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional int64 b = 2 [default = 100];
   * @return The b.
   */
  public long getB() {
    return b_;
  }

  public static final int C_FIELD_NUMBER = 3;
  private boolean c_;
  /**
   * optional bool c = 3;
   * @return Whether the c field is set.
   */
  public boolean hasC() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional bool c = 3;
   * @return The c.
   */
  public boolean getC() {
    return c_;
  }

  public static final int D_FIELD_NUMBER = 4;
  private float d_;
  /**
   * optional float d = 4;
   * @return Whether the d field is set.
   */
  public boolean hasD() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional float d = 4;
   * @return The d.
   */
  public float getD() {
    return d_;
  }

  public static final int E_FIELD_NUMBER = 5;
  private double e_;
  /**
   * optional double e = 5;
   * @return Whether the e field is set.
   */
  public boolean hasE() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional double e = 5;
   * @return The e.
   */
  public double getE() {
    return e_;
  }

  public static final int F_FIELD_NUMBER = 6;
  private volatile java.lang.Object f_;
  /**
   * optional string f = 6 [default = "f"];
   * @return Whether the f field is set.
   */
  public boolean hasF() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional string f = 6 [default = "f"];
   * @return The f.
   */
  public java.lang.String getF() {
    java.lang.Object ref = f_;
    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();
      if (bs.isValidUtf8()) {
        f_ = s;
      }
      return s;
    }
  }
  /**
   * optional string f = 6 [default = "f"];
   * @return The bytes for f.
   */
  public com.google.protobuf.ByteString
      getFBytes() {
    java.lang.Object ref = f_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      f_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int G_FIELD_NUMBER = 7;
  private com.google.protobuf.ByteString g_;
  /**
   * optional bytes g = 7;
   * @return Whether the g field is set.
   */
  public boolean hasG() {
    return ((bitField0_ & 0x00000040) != 0);
  }
  /**
   * optional bytes g = 7;
   * @return The g.
   */
  public com.google.protobuf.ByteString getG() {
    return g_;
  }

  public static final int H_FIELD_NUMBER = 8;
  private int h_;
  /**
   * optional .org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus h = 8;
   * @return Whether the h field is set.
   */
  public boolean hasH() {
    return ((bitField0_ & 0x00000080) != 0);
  }
  /**
   * optional .org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus h = 8;
   * @return The h.
   */
  public org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus getH() {
    @SuppressWarnings("deprecation")
    org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus result = org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus.valueOf(h_);
    return result == null ? org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus.UNIVERSAL : result;
  }

  public static final int F_ABC_7D_FIELD_NUMBER = 9;
  private int fAbc7D_;
  /**
   * optional int32 f_abc_7d = 9;
   * @return Whether the fAbc7d field is set.
   */
  public boolean hasFAbc7D() {
    return ((bitField0_ & 0x00000100) != 0);
  }
  /**
   * optional int32 f_abc_7d = 9;
   * @return The fAbc7d.
   */
  public int getFAbc7D() {
    return fAbc7D_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeInt32(1, a_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeInt64(2, b_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeBool(3, c_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeFloat(4, d_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeDouble(5, e_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, f_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      output.writeBytes(7, g_);
    }
    if (((bitField0_ & 0x00000080) != 0)) {
      output.writeEnum(8, h_);
    }
    if (((bitField0_ & 0x00000100) != 0)) {
      output.writeInt32(9, fAbc7D_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, a_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(2, b_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(3, c_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeFloatSize(4, d_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(5, e_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, f_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(7, g_);
    }
    if (((bitField0_ & 0x00000080) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(8, h_);
    }
    if (((bitField0_ & 0x00000100) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(9, fAbc7D_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof org.apache.flink.formats.protobuf.testproto.SimpleTest)) {
      return super.equals(obj);
    }
    org.apache.flink.formats.protobuf.testproto.SimpleTest other = (org.apache.flink.formats.protobuf.testproto.SimpleTest) obj;

    if (hasA() != other.hasA()) return false;
    if (hasA()) {
      if (getA()
          != other.getA()) return false;
    }
    if (hasB() != other.hasB()) return false;
    if (hasB()) {
      if (getB()
          != other.getB()) return false;
    }
    if (hasC() != other.hasC()) return false;
    if (hasC()) {
      if (getC()
          != other.getC()) return false;
    }
    if (hasD() != other.hasD()) return false;
    if (hasD()) {
      if (java.lang.Float.floatToIntBits(getD())
          != java.lang.Float.floatToIntBits(
              other.getD())) return false;
    }
    if (hasE() != other.hasE()) return false;
    if (hasE()) {
      if (java.lang.Double.doubleToLongBits(getE())
          != java.lang.Double.doubleToLongBits(
              other.getE())) return false;
    }
    if (hasF() != other.hasF()) return false;
    if (hasF()) {
      if (!getF()
          .equals(other.getF())) return false;
    }
    if (hasG() != other.hasG()) return false;
    if (hasG()) {
      if (!getG()
          .equals(other.getG())) return false;
    }
    if (hasH() != other.hasH()) return false;
    if (hasH()) {
      if (h_ != other.h_) return false;
    }
    if (hasFAbc7D() != other.hasFAbc7D()) return false;
    if (hasFAbc7D()) {
      if (getFAbc7D()
          != other.getFAbc7D()) return false;
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasA()) {
      hash = (37 * hash) + A_FIELD_NUMBER;
      hash = (53 * hash) + getA();
    }
    if (hasB()) {
      hash = (37 * hash) + B_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getB());
    }
    if (hasC()) {
      hash = (37 * hash) + C_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getC());
    }
    if (hasD()) {
      hash = (37 * hash) + D_FIELD_NUMBER;
      hash = (53 * hash) + java.lang.Float.floatToIntBits(
          getD());
    }
    if (hasE()) {
      hash = (37 * hash) + E_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getE()));
    }
    if (hasF()) {
      hash = (37 * hash) + F_FIELD_NUMBER;
      hash = (53 * hash) + getF().hashCode();
    }
    if (hasG()) {
      hash = (37 * hash) + G_FIELD_NUMBER;
      hash = (53 * hash) + getG().hashCode();
    }
    if (hasH()) {
      hash = (37 * hash) + H_FIELD_NUMBER;
      hash = (53 * hash) + h_;
    }
    if (hasFAbc7D()) {
      hash = (37 * hash) + F_ABC_7D_FIELD_NUMBER;
      hash = (53 * hash) + getFAbc7D();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.apache.flink.formats.protobuf.testproto.SimpleTest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.apache.flink.formats.protobuf.testproto.SimpleTest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.apache.flink.formats.protobuf.testproto.SimpleTest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.apache.flink.formats.protobuf.testproto.SimpleTest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.apache.flink.formats.protobuf.testproto.SimpleTest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.apache.flink.formats.protobuf.testproto.SimpleTest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.apache.flink.formats.protobuf.testproto.SimpleTest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.apache.flink.formats.protobuf.testproto.SimpleTest 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 org.apache.flink.formats.protobuf.testproto.SimpleTest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.apache.flink.formats.protobuf.testproto.SimpleTest 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 org.apache.flink.formats.protobuf.testproto.SimpleTest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.apache.flink.formats.protobuf.testproto.SimpleTest 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(org.apache.flink.formats.protobuf.testproto.SimpleTest 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 org.apache.flink.formats.protobuf.testproto.SimpleTest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:org.apache.flink.formats.protobuf.testproto.SimpleTest)
      org.apache.flink.formats.protobuf.testproto.SimpleTestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.flink.formats.protobuf.testproto.SimpleTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_SimpleTest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.flink.formats.protobuf.testproto.SimpleTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_SimpleTest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.flink.formats.protobuf.testproto.SimpleTest.class, org.apache.flink.formats.protobuf.testproto.SimpleTest.Builder.class);
    }

    // Construct using org.apache.flink.formats.protobuf.testproto.SimpleTest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      a_ = 10;
      bitField0_ = (bitField0_ & ~0x00000001);
      b_ = 100L;
      bitField0_ = (bitField0_ & ~0x00000002);
      c_ = false;
      bitField0_ = (bitField0_ & ~0x00000004);
      d_ = 0F;
      bitField0_ = (bitField0_ & ~0x00000008);
      e_ = 0D;
      bitField0_ = (bitField0_ & ~0x00000010);
      f_ = "f";
      bitField0_ = (bitField0_ & ~0x00000020);
      g_ = com.google.protobuf.ByteString.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000040);
      h_ = 0;
      bitField0_ = (bitField0_ & ~0x00000080);
      fAbc7D_ = 0;
      bitField0_ = (bitField0_ & ~0x00000100);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.apache.flink.formats.protobuf.testproto.SimpleTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_SimpleTest_descriptor;
    }

    @java.lang.Override
    public org.apache.flink.formats.protobuf.testproto.SimpleTest getDefaultInstanceForType() {
      return org.apache.flink.formats.protobuf.testproto.SimpleTest.getDefaultInstance();
    }

    @java.lang.Override
    public org.apache.flink.formats.protobuf.testproto.SimpleTest build() {
      org.apache.flink.formats.protobuf.testproto.SimpleTest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.apache.flink.formats.protobuf.testproto.SimpleTest buildPartial() {
      org.apache.flink.formats.protobuf.testproto.SimpleTest result = new org.apache.flink.formats.protobuf.testproto.SimpleTest(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        to_bitField0_ |= 0x00000001;
      }
      result.a_ = a_;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        to_bitField0_ |= 0x00000002;
      }
      result.b_ = b_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.c_ = c_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.d_ = d_;
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.e_ = e_;
        to_bitField0_ |= 0x00000010;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        to_bitField0_ |= 0x00000020;
      }
      result.f_ = f_;
      if (((from_bitField0_ & 0x00000040) != 0)) {
        to_bitField0_ |= 0x00000040;
      }
      result.g_ = g_;
      if (((from_bitField0_ & 0x00000080) != 0)) {
        to_bitField0_ |= 0x00000080;
      }
      result.h_ = h_;
      if (((from_bitField0_ & 0x00000100) != 0)) {
        result.fAbc7D_ = fAbc7D_;
        to_bitField0_ |= 0x00000100;
      }
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @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 org.apache.flink.formats.protobuf.testproto.SimpleTest) {
        return mergeFrom((org.apache.flink.formats.protobuf.testproto.SimpleTest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.apache.flink.formats.protobuf.testproto.SimpleTest other) {
      if (other == org.apache.flink.formats.protobuf.testproto.SimpleTest.getDefaultInstance()) return this;
      if (other.hasA()) {
        setA(other.getA());
      }
      if (other.hasB()) {
        setB(other.getB());
      }
      if (other.hasC()) {
        setC(other.getC());
      }
      if (other.hasD()) {
        setD(other.getD());
      }
      if (other.hasE()) {
        setE(other.getE());
      }
      if (other.hasF()) {
        bitField0_ |= 0x00000020;
        f_ = other.f_;
        onChanged();
      }
      if (other.hasG()) {
        setG(other.getG());
      }
      if (other.hasH()) {
        setH(other.getH());
      }
      if (other.hasFAbc7D()) {
        setFAbc7D(other.getFAbc7D());
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      org.apache.flink.formats.protobuf.testproto.SimpleTest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.apache.flink.formats.protobuf.testproto.SimpleTest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int a_ = 10;
    /**
     * optional int32 a = 1 [default = 10];
     * @return Whether the a field is set.
     */
    public boolean hasA() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional int32 a = 1 [default = 10];
     * @return The a.
     */
    public int getA() {
      return a_;
    }
    /**
     * optional int32 a = 1 [default = 10];
     * @param value The a to set.
     * @return This builder for chaining.
     */
    public Builder setA(int value) {
      bitField0_ |= 0x00000001;
      a_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 a = 1 [default = 10];
     * @return This builder for chaining.
     */
    public Builder clearA() {
      bitField0_ = (bitField0_ & ~0x00000001);
      a_ = 10;
      onChanged();
      return this;
    }

    private long b_ = 100L;
    /**
     * optional int64 b = 2 [default = 100];
     * @return Whether the b field is set.
     */
    public boolean hasB() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional int64 b = 2 [default = 100];
     * @return The b.
     */
    public long getB() {
      return b_;
    }
    /**
     * optional int64 b = 2 [default = 100];
     * @param value The b to set.
     * @return This builder for chaining.
     */
    public Builder setB(long value) {
      bitField0_ |= 0x00000002;
      b_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 b = 2 [default = 100];
     * @return This builder for chaining.
     */
    public Builder clearB() {
      bitField0_ = (bitField0_ & ~0x00000002);
      b_ = 100L;
      onChanged();
      return this;
    }

    private boolean c_ ;
    /**
     * optional bool c = 3;
     * @return Whether the c field is set.
     */
    public boolean hasC() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional bool c = 3;
     * @return The c.
     */
    public boolean getC() {
      return c_;
    }
    /**
     * optional bool c = 3;
     * @param value The c to set.
     * @return This builder for chaining.
     */
    public Builder setC(boolean value) {
      bitField0_ |= 0x00000004;
      c_ = value;
      onChanged();
      return this;
    }
    /**
     * optional bool c = 3;
     * @return This builder for chaining.
     */
    public Builder clearC() {
      bitField0_ = (bitField0_ & ~0x00000004);
      c_ = false;
      onChanged();
      return this;
    }

    private float d_ ;
    /**
     * optional float d = 4;
     * @return Whether the d field is set.
     */
    public boolean hasD() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional float d = 4;
     * @return The d.
     */
    public float getD() {
      return d_;
    }
    /**
     * optional float d = 4;
     * @param value The d to set.
     * @return This builder for chaining.
     */
    public Builder setD(float value) {
      bitField0_ |= 0x00000008;
      d_ = value;
      onChanged();
      return this;
    }
    /**
     * optional float d = 4;
     * @return This builder for chaining.
     */
    public Builder clearD() {
      bitField0_ = (bitField0_ & ~0x00000008);
      d_ = 0F;
      onChanged();
      return this;
    }

    private double e_ ;
    /**
     * optional double e = 5;
     * @return Whether the e field is set.
     */
    public boolean hasE() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional double e = 5;
     * @return The e.
     */
    public double getE() {
      return e_;
    }
    /**
     * optional double e = 5;
     * @param value The e to set.
     * @return This builder for chaining.
     */
    public Builder setE(double value) {
      bitField0_ |= 0x00000010;
      e_ = value;
      onChanged();
      return this;
    }
    /**
     * optional double e = 5;
     * @return This builder for chaining.
     */
    public Builder clearE() {
      bitField0_ = (bitField0_ & ~0x00000010);
      e_ = 0D;
      onChanged();
      return this;
    }

    private java.lang.Object f_ = "f";
    /**
     * optional string f = 6 [default = "f"];
     * @return Whether the f field is set.
     */
    public boolean hasF() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional string f = 6 [default = "f"];
     * @return The f.
     */
    public java.lang.String getF() {
      java.lang.Object ref = f_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          f_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string f = 6 [default = "f"];
     * @return The bytes for f.
     */
    public com.google.protobuf.ByteString
        getFBytes() {
      java.lang.Object ref = f_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        f_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string f = 6 [default = "f"];
     * @param value The f to set.
     * @return This builder for chaining.
     */
    public Builder setF(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
      f_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string f = 6 [default = "f"];
     * @return This builder for chaining.
     */
    public Builder clearF() {
      bitField0_ = (bitField0_ & ~0x00000020);
      f_ = getDefaultInstance().getF();
      onChanged();
      return this;
    }
    /**
     * optional string f = 6 [default = "f"];
     * @param value The bytes for f to set.
     * @return This builder for chaining.
     */
    public Builder setFBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000020;
      f_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.ByteString g_ = com.google.protobuf.ByteString.EMPTY;
    /**
     * optional bytes g = 7;
     * @return Whether the g field is set.
     */
    public boolean hasG() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * optional bytes g = 7;
     * @return The g.
     */
    public com.google.protobuf.ByteString getG() {
      return g_;
    }
    /**
     * optional bytes g = 7;
     * @param value The g to set.
     * @return This builder for chaining.
     */
    public Builder setG(com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000040;
      g_ = value;
      onChanged();
      return this;
    }
    /**
     * optional bytes g = 7;
     * @return This builder for chaining.
     */
    public Builder clearG() {
      bitField0_ = (bitField0_ & ~0x00000040);
      g_ = getDefaultInstance().getG();
      onChanged();
      return this;
    }

    private int h_ = 0;
    /**
     * optional .org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus h = 8;
     * @return Whether the h field is set.
     */
    public boolean hasH() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     * optional .org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus h = 8;
     * @return The h.
     */
    public org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus getH() {
      @SuppressWarnings("deprecation")
      org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus result = org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus.valueOf(h_);
      return result == null ? org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus.UNIVERSAL : result;
    }
    /**
     * optional .org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus h = 8;
     * @param value The h to set.
     * @return This builder for chaining.
     */
    public Builder setH(org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000080;
      h_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * optional .org.apache.flink.formats.protobuf.testproto.SimpleTest.Corpus h = 8;
     * @return This builder for chaining.
     */
    public Builder clearH() {
      bitField0_ = (bitField0_ & ~0x00000080);
      h_ = 0;
      onChanged();
      return this;
    }

    private int fAbc7D_ ;
    /**
     * optional int32 f_abc_7d = 9;
     * @return Whether the fAbc7d field is set.
     */
    public boolean hasFAbc7D() {
      return ((bitField0_ & 0x00000100) != 0);
    }
    /**
     * optional int32 f_abc_7d = 9;
     * @return The fAbc7d.
     */
    public int getFAbc7D() {
      return fAbc7D_;
    }
    /**
     * optional int32 f_abc_7d = 9;
     * @param value The fAbc7d to set.
     * @return This builder for chaining.
     */
    public Builder setFAbc7D(int value) {
      bitField0_ |= 0x00000100;
      fAbc7D_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 f_abc_7d = 9;
     * @return This builder for chaining.
     */
    public Builder clearFAbc7D() {
      bitField0_ = (bitField0_ & ~0x00000100);
      fAbc7D_ = 0;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:org.apache.flink.formats.protobuf.testproto.SimpleTest)
  }

  // @@protoc_insertion_point(class_scope:org.apache.flink.formats.protobuf.testproto.SimpleTest)
  private static final org.apache.flink.formats.protobuf.testproto.SimpleTest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.apache.flink.formats.protobuf.testproto.SimpleTest();
  }

  public static org.apache.flink.formats.protobuf.testproto.SimpleTest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  @java.lang.Deprecated public static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public SimpleTest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new SimpleTest(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public org.apache.flink.formats.protobuf.testproto.SimpleTest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy