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

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

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

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

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private MapTest(
      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 18: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              map1_ = com.google.protobuf.MapField.newMapField(
                  Map1DefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000002;
            }
            com.google.protobuf.MapEntry
            map1__ = input.readMessage(
                Map1DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            map1_.getMutableMap().put(
                map1__.getKey(), map1__.getValue());
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              map2_ = com.google.protobuf.MapField.newMapField(
                  Map2DefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000004;
            }
            com.google.protobuf.MapEntry
            map2__ = input.readMessage(
                Map2DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            map2_.getMutableMap().put(
                map2__.getKey(), map2__.getValue());
            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.MapTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_MapTest_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 2:
        return internalGetMap1();
      case 3:
        return internalGetMap2();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.apache.flink.formats.protobuf.testproto.MapTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_MapTest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.apache.flink.formats.protobuf.testproto.MapTest.class, org.apache.flink.formats.protobuf.testproto.MapTest.Builder.class);
  }

  public interface InnerMessageTestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional int32 a = 1;
     * @return Whether the a field is set.
     */
    boolean hasA();
    /**
     * optional int32 a = 1;
     * @return The a.
     */
    int getA();

    /**
     * optional int64 b = 2;
     * @return Whether the b field is set.
     */
    boolean hasB();
    /**
     * optional int64 b = 2;
     * @return The b.
     */
    long getB();
  }
  /**
   * Protobuf type {@code org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest}
   */
  public  static final class InnerMessageTest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest)
      InnerMessageTestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use InnerMessageTest.newBuilder() to construct.
    private InnerMessageTest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private InnerMessageTest() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private InnerMessageTest(
        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;
            }
            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.MapTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_MapTest_InnerMessageTest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.flink.formats.protobuf.testproto.MapTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_MapTest_InnerMessageTest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest.class, org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest.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 long b_;
    /**
     * optional int64 b = 2;
     * @return Whether the b field is set.
     */
    public boolean hasB() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional int64 b = 2;
     * @return The b.
     */
    public long getB() {
      return b_;
    }

    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_);
      }
      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_);
      }
      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.MapTest.InnerMessageTest)) {
        return super.equals(obj);
      }
      org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest other = (org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest) 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 (!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());
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.apache.flink.formats.protobuf.testproto.MapTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_MapTest_InnerMessageTest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest.class, org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest.Builder.class);
      }

      // Construct using org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest.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_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

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

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

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

      @java.lang.Override
      public org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest buildPartial() {
        org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest result = new org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.a_ = a_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.b_ = b_;
          to_bitField0_ |= 0x00000002;
        }
        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.MapTest.InnerMessageTest) {
          return mergeFrom((org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest other) {
        if (other == org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest.getDefaultInstance()) return this;
        if (other.hasA()) {
          setA(other.getA());
        }
        if (other.hasB()) {
          setB(other.getB());
        }
        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.MapTest.InnerMessageTest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest) 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 long b_ ;
      /**
       * optional int64 b = 2;
       * @return Whether the b field is set.
       */
      public boolean hasB() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * optional int64 b = 2;
       * @return The b.
       */
      public long getB() {
        return b_;
      }
      /**
       * optional int64 b = 2;
       * @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;
       * @return This builder for chaining.
       */
      public Builder clearB() {
        bitField0_ = (bitField0_ & ~0x00000002);
        b_ = 0L;
        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.MapTest.InnerMessageTest)
    }

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

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

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

  }

  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 MAP1_FIELD_NUMBER = 2;
  private static final class Map1DefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, java.lang.String> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                org.apache.flink.formats.protobuf.testproto.MapTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_MapTest_Map1Entry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.STRING,
                "");
  }
  private com.google.protobuf.MapField<
      java.lang.String, java.lang.String> map1_;
  private com.google.protobuf.MapField
  internalGetMap1() {
    if (map1_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          Map1DefaultEntryHolder.defaultEntry);
    }
    return map1_;
  }

  public int getMap1Count() {
    return internalGetMap1().getMap().size();
  }
  /**
   * map<string, string> map1 = 2;
   */

  public boolean containsMap1(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    return internalGetMap1().getMap().containsKey(key);
  }
  /**
   * Use {@link #getMap1Map()} instead.
   */
  @java.lang.Deprecated
  public java.util.Map getMap1() {
    return getMap1Map();
  }
  /**
   * map<string, string> map1 = 2;
   */

  public java.util.Map getMap1Map() {
    return internalGetMap1().getMap();
  }
  /**
   * map<string, string> map1 = 2;
   */

  public java.lang.String getMap1OrDefault(
      java.lang.String key,
      java.lang.String defaultValue) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map map =
        internalGetMap1().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * map<string, string> map1 = 2;
   */

  public java.lang.String getMap1OrThrow(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map map =
        internalGetMap1().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int MAP2_FIELD_NUMBER = 3;
  private static final class Map2DefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                org.apache.flink.formats.protobuf.testproto.MapTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_MapTest_Map2Entry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest.getDefaultInstance());
  }
  private com.google.protobuf.MapField<
      java.lang.String, org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> map2_;
  private com.google.protobuf.MapField
  internalGetMap2() {
    if (map2_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          Map2DefaultEntryHolder.defaultEntry);
    }
    return map2_;
  }

  public int getMap2Count() {
    return internalGetMap2().getMap().size();
  }
  /**
   * map<string, .org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> map2 = 3;
   */

  public boolean containsMap2(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    return internalGetMap2().getMap().containsKey(key);
  }
  /**
   * Use {@link #getMap2Map()} instead.
   */
  @java.lang.Deprecated
  public java.util.Map getMap2() {
    return getMap2Map();
  }
  /**
   * map<string, .org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> map2 = 3;
   */

  public java.util.Map getMap2Map() {
    return internalGetMap2().getMap();
  }
  /**
   * map<string, .org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> map2 = 3;
   */

  public org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest getMap2OrDefault(
      java.lang.String key,
      org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest defaultValue) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map map =
        internalGetMap2().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * map<string, .org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> map2 = 3;
   */

  public org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest getMap2OrThrow(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map map =
        internalGetMap2().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  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_);
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetMap1(),
        Map1DefaultEntryHolder.defaultEntry,
        2);
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetMap2(),
        Map2DefaultEntryHolder.defaultEntry,
        3);
    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_);
    }
    for (java.util.Map.Entry entry
         : internalGetMap1().getMap().entrySet()) {
      com.google.protobuf.MapEntry
      map1__ = Map1DefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, map1__);
    }
    for (java.util.Map.Entry entry
         : internalGetMap2().getMap().entrySet()) {
      com.google.protobuf.MapEntry
      map2__ = Map2DefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, map2__);
    }
    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.MapTest)) {
      return super.equals(obj);
    }
    org.apache.flink.formats.protobuf.testproto.MapTest other = (org.apache.flink.formats.protobuf.testproto.MapTest) obj;

    if (hasA() != other.hasA()) return false;
    if (hasA()) {
      if (getA()
          != other.getA()) return false;
    }
    if (!internalGetMap1().equals(
        other.internalGetMap1())) return false;
    if (!internalGetMap2().equals(
        other.internalGetMap2())) 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 (!internalGetMap1().getMap().isEmpty()) {
      hash = (37 * hash) + MAP1_FIELD_NUMBER;
      hash = (53 * hash) + internalGetMap1().hashCode();
    }
    if (!internalGetMap2().getMap().isEmpty()) {
      hash = (37 * hash) + MAP2_FIELD_NUMBER;
      hash = (53 * hash) + internalGetMap2().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetMap1();
        case 3:
          return internalGetMap2();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetMutableMap1();
        case 3:
          return internalGetMutableMap2();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.apache.flink.formats.protobuf.testproto.MapTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_MapTest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.apache.flink.formats.protobuf.testproto.MapTest.class, org.apache.flink.formats.protobuf.testproto.MapTest.Builder.class);
    }

    // Construct using org.apache.flink.formats.protobuf.testproto.MapTest.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);
      internalGetMutableMap1().clear();
      internalGetMutableMap2().clear();
      return this;
    }

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

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

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

    @java.lang.Override
    public org.apache.flink.formats.protobuf.testproto.MapTest buildPartial() {
      org.apache.flink.formats.protobuf.testproto.MapTest result = new org.apache.flink.formats.protobuf.testproto.MapTest(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.a_ = a_;
        to_bitField0_ |= 0x00000001;
      }
      result.map1_ = internalGetMap1();
      result.map1_.makeImmutable();
      result.map2_ = internalGetMap2();
      result.map2_.makeImmutable();
      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.MapTest) {
        return mergeFrom((org.apache.flink.formats.protobuf.testproto.MapTest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.apache.flink.formats.protobuf.testproto.MapTest other) {
      if (other == org.apache.flink.formats.protobuf.testproto.MapTest.getDefaultInstance()) return this;
      if (other.hasA()) {
        setA(other.getA());
      }
      internalGetMutableMap1().mergeFrom(
          other.internalGetMap1());
      internalGetMutableMap2().mergeFrom(
          other.internalGetMap2());
      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.MapTest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.apache.flink.formats.protobuf.testproto.MapTest) 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.MapField<
        java.lang.String, java.lang.String> map1_;
    private com.google.protobuf.MapField
    internalGetMap1() {
      if (map1_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            Map1DefaultEntryHolder.defaultEntry);
      }
      return map1_;
    }
    private com.google.protobuf.MapField
    internalGetMutableMap1() {
      onChanged();;
      if (map1_ == null) {
        map1_ = com.google.protobuf.MapField.newMapField(
            Map1DefaultEntryHolder.defaultEntry);
      }
      if (!map1_.isMutable()) {
        map1_ = map1_.copy();
      }
      return map1_;
    }

    public int getMap1Count() {
      return internalGetMap1().getMap().size();
    }
    /**
     * map<string, string> map1 = 2;
     */

    public boolean containsMap1(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      return internalGetMap1().getMap().containsKey(key);
    }
    /**
     * Use {@link #getMap1Map()} instead.
     */
    @java.lang.Deprecated
    public java.util.Map getMap1() {
      return getMap1Map();
    }
    /**
     * map<string, string> map1 = 2;
     */

    public java.util.Map getMap1Map() {
      return internalGetMap1().getMap();
    }
    /**
     * map<string, string> map1 = 2;
     */

    public java.lang.String getMap1OrDefault(
        java.lang.String key,
        java.lang.String defaultValue) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map map =
          internalGetMap1().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * map<string, string> map1 = 2;
     */

    public java.lang.String getMap1OrThrow(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map map =
          internalGetMap1().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearMap1() {
      internalGetMutableMap1().getMutableMap()
          .clear();
      return this;
    }
    /**
     * map<string, string> map1 = 2;
     */

    public Builder removeMap1(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableMap1().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map
    getMutableMap1() {
      return internalGetMutableMap1().getMutableMap();
    }
    /**
     * map<string, string> map1 = 2;
     */
    public Builder putMap1(
        java.lang.String key,
        java.lang.String value) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      if (value == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableMap1().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * map<string, string> map1 = 2;
     */

    public Builder putAllMap1(
        java.util.Map values) {
      internalGetMutableMap1().getMutableMap()
          .putAll(values);
      return this;
    }

    private com.google.protobuf.MapField<
        java.lang.String, org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> map2_;
    private com.google.protobuf.MapField
    internalGetMap2() {
      if (map2_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            Map2DefaultEntryHolder.defaultEntry);
      }
      return map2_;
    }
    private com.google.protobuf.MapField
    internalGetMutableMap2() {
      onChanged();;
      if (map2_ == null) {
        map2_ = com.google.protobuf.MapField.newMapField(
            Map2DefaultEntryHolder.defaultEntry);
      }
      if (!map2_.isMutable()) {
        map2_ = map2_.copy();
      }
      return map2_;
    }

    public int getMap2Count() {
      return internalGetMap2().getMap().size();
    }
    /**
     * map<string, .org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> map2 = 3;
     */

    public boolean containsMap2(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      return internalGetMap2().getMap().containsKey(key);
    }
    /**
     * Use {@link #getMap2Map()} instead.
     */
    @java.lang.Deprecated
    public java.util.Map getMap2() {
      return getMap2Map();
    }
    /**
     * map<string, .org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> map2 = 3;
     */

    public java.util.Map getMap2Map() {
      return internalGetMap2().getMap();
    }
    /**
     * map<string, .org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> map2 = 3;
     */

    public org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest getMap2OrDefault(
        java.lang.String key,
        org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest defaultValue) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map map =
          internalGetMap2().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * map<string, .org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> map2 = 3;
     */

    public org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest getMap2OrThrow(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map map =
          internalGetMap2().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearMap2() {
      internalGetMutableMap2().getMutableMap()
          .clear();
      return this;
    }
    /**
     * map<string, .org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> map2 = 3;
     */

    public Builder removeMap2(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableMap2().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map
    getMutableMap2() {
      return internalGetMutableMap2().getMutableMap();
    }
    /**
     * map<string, .org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> map2 = 3;
     */
    public Builder putMap2(
        java.lang.String key,
        org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest value) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      if (value == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableMap2().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * map<string, .org.apache.flink.formats.protobuf.testproto.MapTest.InnerMessageTest> map2 = 3;
     */

    public Builder putAllMap2(
        java.util.Map values) {
      internalGetMutableMap2().getMutableMap()
          .putAll(values);
      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.MapTest)
  }

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

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy