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

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

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

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

/**
 * Protobuf type {@code org.apache.flink.formats.protobuf.testproto.RepeatedTest}
 */
public  final class RepeatedTest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:org.apache.flink.formats.protobuf.testproto.RepeatedTest)
    RepeatedTestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use RepeatedTest.newBuilder() to construct.
  private RepeatedTest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private RepeatedTest() {
    b_ = emptyLongList();
    f_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private RepeatedTest(
      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: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              b_ = newLongList();
              mutable_bitField0_ |= 0x00000002;
            }
            b_.addLong(input.readInt64());
            break;
          }
          case 18: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
              b_ = newLongList();
              mutable_bitField0_ |= 0x00000002;
            }
            while (input.getBytesUntilLimit() > 0) {
              b_.addLong(input.readInt64());
            }
            input.popLimit(limit);
            break;
          }
          case 24: {
            bitField0_ |= 0x00000002;
            c_ = input.readBool();
            break;
          }
          case 37: {
            bitField0_ |= 0x00000004;
            d_ = input.readFloat();
            break;
          }
          case 41: {
            bitField0_ |= 0x00000008;
            e_ = input.readDouble();
            break;
          }
          case 50: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000010;
            f_ = bs;
            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 {
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        b_.makeImmutable(); // C
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.apache.flink.formats.protobuf.testproto.RepeatedTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_RepeatedTest_descriptor;
  }

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

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

  public static final int B_FIELD_NUMBER = 2;
  private com.google.protobuf.Internal.LongList b_;
  /**
   * repeated int64 b = 2;
   * @return A list containing the b.
   */
  public java.util.List
      getBList() {
    return b_;
  }
  /**
   * repeated int64 b = 2;
   * @return The count of b.
   */
  public int getBCount() {
    return b_.size();
  }
  /**
   * repeated int64 b = 2;
   * @param index The index of the element to return.
   * @return The b at the given index.
   */
  public long getB(int index) {
    return b_.getLong(index);
  }

  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_ & 0x00000002) != 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_ & 0x00000004) != 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_ & 0x00000008) != 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;
   * @return Whether the f field is set.
   */
  public boolean hasF() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional string f = 6;
   * @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;
   * @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;
    }
  }

  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_);
    }
    for (int i = 0; i < b_.size(); i++) {
      output.writeInt64(2, b_.getLong(i));
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeBool(3, c_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeFloat(4, d_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeDouble(5, e_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, f_);
    }
    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_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < b_.size(); i++) {
        dataSize += com.google.protobuf.CodedOutputStream
          .computeInt64SizeNoTag(b_.getLong(i));
      }
      size += dataSize;
      size += 1 * getBList().size();
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(3, c_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeFloatSize(4, d_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(5, e_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, f_);
    }
    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.RepeatedTest)) {
      return super.equals(obj);
    }
    org.apache.flink.formats.protobuf.testproto.RepeatedTest other = (org.apache.flink.formats.protobuf.testproto.RepeatedTest) obj;

    if (hasA() != other.hasA()) return false;
    if (hasA()) {
      if (getA()
          != other.getA()) return false;
    }
    if (!getBList()
        .equals(other.getBList())) 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 (!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 (getBCount() > 0) {
      hash = (37 * hash) + B_FIELD_NUMBER;
      hash = (53 * hash) + getBList().hashCode();
    }
    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();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.apache.flink.formats.protobuf.testproto.RepeatedTest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.apache.flink.formats.protobuf.testproto.RepeatedTest 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.RepeatedTest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.apache.flink.formats.protobuf.testproto.RepeatedTest 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.RepeatedTest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.apache.flink.formats.protobuf.testproto.RepeatedTest 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.RepeatedTest 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.RepeatedTest 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.RepeatedTest 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.RepeatedTest 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.RepeatedTest 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.RepeatedTest 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.RepeatedTest 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.RepeatedTest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:org.apache.flink.formats.protobuf.testproto.RepeatedTest)
      org.apache.flink.formats.protobuf.testproto.RepeatedTestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.apache.flink.formats.protobuf.testproto.RepeatedTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_RepeatedTest_descriptor;
    }

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

    // Construct using org.apache.flink.formats.protobuf.testproto.RepeatedTest.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_ = 0;
      bitField0_ = (bitField0_ & ~0x00000001);
      b_ = emptyLongList();
      bitField0_ = (bitField0_ & ~0x00000002);
      c_ = false;
      bitField0_ = (bitField0_ & ~0x00000004);
      d_ = 0F;
      bitField0_ = (bitField0_ & ~0x00000008);
      e_ = 0D;
      bitField0_ = (bitField0_ & ~0x00000010);
      f_ = "";
      bitField0_ = (bitField0_ & ~0x00000020);
      return this;
    }

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

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

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

    @java.lang.Override
    public org.apache.flink.formats.protobuf.testproto.RepeatedTest buildPartial() {
      org.apache.flink.formats.protobuf.testproto.RepeatedTest result = new org.apache.flink.formats.protobuf.testproto.RepeatedTest(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.a_ = a_;
        to_bitField0_ |= 0x00000001;
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        b_.makeImmutable();
        bitField0_ = (bitField0_ & ~0x00000002);
      }
      result.b_ = b_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.c_ = c_;
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.d_ = d_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.e_ = e_;
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        to_bitField0_ |= 0x00000010;
      }
      result.f_ = f_;
      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.RepeatedTest) {
        return mergeFrom((org.apache.flink.formats.protobuf.testproto.RepeatedTest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.apache.flink.formats.protobuf.testproto.RepeatedTest other) {
      if (other == org.apache.flink.formats.protobuf.testproto.RepeatedTest.getDefaultInstance()) return this;
      if (other.hasA()) {
        setA(other.getA());
      }
      if (!other.b_.isEmpty()) {
        if (b_.isEmpty()) {
          b_ = other.b_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureBIsMutable();
          b_.addAll(other.b_);
        }
        onChanged();
      }
      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();
      }
      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.RepeatedTest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.apache.flink.formats.protobuf.testproto.RepeatedTest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int a_ ;
    /**
     * optional int32 a = 1;
     * @return Whether the a field is set.
     */
    public boolean hasA() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional int32 a = 1;
     * @return The a.
     */
    public int getA() {
      return a_;
    }
    /**
     * optional int32 a = 1;
     * @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;
     * @return This builder for chaining.
     */
    public Builder clearA() {
      bitField0_ = (bitField0_ & ~0x00000001);
      a_ = 0;
      onChanged();
      return this;
    }

    private com.google.protobuf.Internal.LongList b_ = emptyLongList();
    private void ensureBIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        b_ = mutableCopy(b_);
        bitField0_ |= 0x00000002;
       }
    }
    /**
     * repeated int64 b = 2;
     * @return A list containing the b.
     */
    public java.util.List
        getBList() {
      return ((bitField0_ & 0x00000002) != 0) ?
               java.util.Collections.unmodifiableList(b_) : b_;
    }
    /**
     * repeated int64 b = 2;
     * @return The count of b.
     */
    public int getBCount() {
      return b_.size();
    }
    /**
     * repeated int64 b = 2;
     * @param index The index of the element to return.
     * @return The b at the given index.
     */
    public long getB(int index) {
      return b_.getLong(index);
    }
    /**
     * repeated int64 b = 2;
     * @param index The index to set the value at.
     * @param value The b to set.
     * @return This builder for chaining.
     */
    public Builder setB(
        int index, long value) {
      ensureBIsMutable();
      b_.setLong(index, value);
      onChanged();
      return this;
    }
    /**
     * repeated int64 b = 2;
     * @param value The b to add.
     * @return This builder for chaining.
     */
    public Builder addB(long value) {
      ensureBIsMutable();
      b_.addLong(value);
      onChanged();
      return this;
    }
    /**
     * repeated int64 b = 2;
     * @param values The b to add.
     * @return This builder for chaining.
     */
    public Builder addAllB(
        java.lang.Iterable values) {
      ensureBIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, b_);
      onChanged();
      return this;
    }
    /**
     * repeated int64 b = 2;
     * @return This builder for chaining.
     */
    public Builder clearB() {
      b_ = emptyLongList();
      bitField0_ = (bitField0_ & ~0x00000002);
      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_ = "";
    /**
     * optional string f = 6;
     * @return Whether the f field is set.
     */
    public boolean hasF() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional string f = 6;
     * @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;
     * @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;
     * @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;
     * @return This builder for chaining.
     */
    public Builder clearF() {
      bitField0_ = (bitField0_ & ~0x00000020);
      f_ = getDefaultInstance().getF();
      onChanged();
      return this;
    }
    /**
     * optional string f = 6;
     * @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;
    }
    @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.RepeatedTest)
  }

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

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

  @java.lang.Deprecated public static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public RepeatedTest parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new RepeatedTest(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.RepeatedTest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy