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

com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages Maven / Gradle / Ivy

Go to download

Google Cloud Dataflow Java SDK provides a simple, Java-based interface for processing virtually any size data using Google cloud resources. This artifact includes all generated Java Protocol Buffer libraries.

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto2_coder_test_messages.proto

package com.google.cloud.dataflow.sdk.coders;

public final class Proto2CoderTestMessages {
  private Proto2CoderTestMessages() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registry.add(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.field1);
    registry.add(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.field2);
  }
  public interface MessageAOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto2_coder_test_messages.MessageA)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional string field1 = 1;
     */
    boolean hasField1();
    /**
     * optional string field1 = 1;
     */
    java.lang.String getField1();
    /**
     * optional string field1 = 1;
     */
    com.google.protobuf.ByteString
        getField1Bytes();

    /**
     * repeated .proto2_coder_test_messages.MessageB field2 = 2;
     */
    java.util.List 
        getField2List();
    /**
     * repeated .proto2_coder_test_messages.MessageB field2 = 2;
     */
    com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB getField2(int index);
    /**
     * repeated .proto2_coder_test_messages.MessageB field2 = 2;
     */
    int getField2Count();
    /**
     * repeated .proto2_coder_test_messages.MessageB field2 = 2;
     */
    java.util.List 
        getField2OrBuilderList();
    /**
     * repeated .proto2_coder_test_messages.MessageB field2 = 2;
     */
    com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageBOrBuilder getField2OrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code proto2_coder_test_messages.MessageA}
   */
  public  static final class MessageA extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:proto2_coder_test_messages.MessageA)
      MessageAOrBuilder {
    // Use MessageA.newBuilder() to construct.
    private MessageA(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
    }
    private MessageA() {
      field1_ = "";
      field2_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MessageA(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
      this();
      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;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              com.google.protobuf.ByteString bs = input.readBytes();
              bitField0_ |= 0x00000001;
              field1_ = bs;
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                field2_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000002;
              }
              field2_.add(input.readMessage(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.parser(), extensionRegistry));
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw new RuntimeException(e.setUnfinishedMessage(this));
      } catch (java.io.IOException e) {
        throw new RuntimeException(
            new com.google.protobuf.InvalidProtocolBufferException(
                e.getMessage()).setUnfinishedMessage(this));
      } finally {
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          field2_ = java.util.Collections.unmodifiableList(field2_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageA_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageA_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA.class, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA.Builder.class);
    }

    private int bitField0_;
    public static final int FIELD1_FIELD_NUMBER = 1;
    private volatile java.lang.Object field1_;
    /**
     * optional string field1 = 1;
     */
    public boolean hasField1() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string field1 = 1;
     */
    public java.lang.String getField1() {
      java.lang.Object ref = field1_;
      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()) {
          field1_ = s;
        }
        return s;
      }
    }
    /**
     * optional string field1 = 1;
     */
    public com.google.protobuf.ByteString
        getField1Bytes() {
      java.lang.Object ref = field1_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        field1_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int FIELD2_FIELD_NUMBER = 2;
    private java.util.List field2_;
    /**
     * repeated .proto2_coder_test_messages.MessageB field2 = 2;
     */
    public java.util.List getField2List() {
      return field2_;
    }
    /**
     * repeated .proto2_coder_test_messages.MessageB field2 = 2;
     */
    public java.util.List 
        getField2OrBuilderList() {
      return field2_;
    }
    /**
     * repeated .proto2_coder_test_messages.MessageB field2 = 2;
     */
    public int getField2Count() {
      return field2_.size();
    }
    /**
     * repeated .proto2_coder_test_messages.MessageB field2 = 2;
     */
    public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB getField2(int index) {
      return field2_.get(index);
    }
    /**
     * repeated .proto2_coder_test_messages.MessageB field2 = 2;
     */
    public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageBOrBuilder getField2OrBuilder(
        int index) {
      return field2_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        com.google.protobuf.GeneratedMessage.writeString(output, 1, field1_);
      }
      for (int i = 0; i < field2_.size(); i++) {
        output.writeMessage(2, field2_.get(i));
      }
      unknownFields.writeTo(output);
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.GeneratedMessage.computeStringSize(1, field1_);
      }
      for (int i = 0; i < field2_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, field2_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code proto2_coder_test_messages.MessageA}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:proto2_coder_test_messages.MessageA)
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageAOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageA_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageA_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA.class, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA.Builder.class);
      }

      // Construct using com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getField2FieldBuilder();
        }
      }
      public Builder clear() {
        super.clear();
        field1_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        if (field2Builder_ == null) {
          field2_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          field2Builder_.clear();
        }
        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageA_descriptor;
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA getDefaultInstanceForType() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA.getDefaultInstance();
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA build() {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA buildPartial() {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA result = new com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.field1_ = field1_;
        if (field2Builder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            field2_ = java.util.Collections.unmodifiableList(field2_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.field2_ = field2_;
        } else {
          result.field2_ = field2Builder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA) {
          return mergeFrom((com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA other) {
        if (other == com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA.getDefaultInstance()) return this;
        if (other.hasField1()) {
          bitField0_ |= 0x00000001;
          field1_ = other.field1_;
          onChanged();
        }
        if (field2Builder_ == null) {
          if (!other.field2_.isEmpty()) {
            if (field2_.isEmpty()) {
              field2_ = other.field2_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureField2IsMutable();
              field2_.addAll(other.field2_);
            }
            onChanged();
          }
        } else {
          if (!other.field2_.isEmpty()) {
            if (field2Builder_.isEmpty()) {
              field2Builder_.dispose();
              field2Builder_ = null;
              field2_ = other.field2_;
              bitField0_ = (bitField0_ & ~0x00000002);
              field2Builder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getField2FieldBuilder() : null;
            } else {
              field2Builder_.addAllMessages(other.field2_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object field1_ = "";
      /**
       * optional string field1 = 1;
       */
      public boolean hasField1() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional string field1 = 1;
       */
      public java.lang.String getField1() {
        java.lang.Object ref = field1_;
        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()) {
            field1_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string field1 = 1;
       */
      public com.google.protobuf.ByteString
          getField1Bytes() {
        java.lang.Object ref = field1_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          field1_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string field1 = 1;
       */
      public Builder setField1(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        field1_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string field1 = 1;
       */
      public Builder clearField1() {
        bitField0_ = (bitField0_ & ~0x00000001);
        field1_ = getDefaultInstance().getField1();
        onChanged();
        return this;
      }
      /**
       * optional string field1 = 1;
       */
      public Builder setField1Bytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        field1_ = value;
        onChanged();
        return this;
      }

      private java.util.List field2_ =
        java.util.Collections.emptyList();
      private void ensureField2IsMutable() {
        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
          field2_ = new java.util.ArrayList(field2_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.Builder, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageBOrBuilder> field2Builder_;

      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public java.util.List getField2List() {
        if (field2Builder_ == null) {
          return java.util.Collections.unmodifiableList(field2_);
        } else {
          return field2Builder_.getMessageList();
        }
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public int getField2Count() {
        if (field2Builder_ == null) {
          return field2_.size();
        } else {
          return field2Builder_.getCount();
        }
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB getField2(int index) {
        if (field2Builder_ == null) {
          return field2_.get(index);
        } else {
          return field2Builder_.getMessage(index);
        }
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public Builder setField2(
          int index, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB value) {
        if (field2Builder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureField2IsMutable();
          field2_.set(index, value);
          onChanged();
        } else {
          field2Builder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public Builder setField2(
          int index, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.Builder builderForValue) {
        if (field2Builder_ == null) {
          ensureField2IsMutable();
          field2_.set(index, builderForValue.build());
          onChanged();
        } else {
          field2Builder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public Builder addField2(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB value) {
        if (field2Builder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureField2IsMutable();
          field2_.add(value);
          onChanged();
        } else {
          field2Builder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public Builder addField2(
          int index, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB value) {
        if (field2Builder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureField2IsMutable();
          field2_.add(index, value);
          onChanged();
        } else {
          field2Builder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public Builder addField2(
          com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.Builder builderForValue) {
        if (field2Builder_ == null) {
          ensureField2IsMutable();
          field2_.add(builderForValue.build());
          onChanged();
        } else {
          field2Builder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public Builder addField2(
          int index, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.Builder builderForValue) {
        if (field2Builder_ == null) {
          ensureField2IsMutable();
          field2_.add(index, builderForValue.build());
          onChanged();
        } else {
          field2Builder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public Builder addAllField2(
          java.lang.Iterable values) {
        if (field2Builder_ == null) {
          ensureField2IsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, field2_);
          onChanged();
        } else {
          field2Builder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public Builder clearField2() {
        if (field2Builder_ == null) {
          field2_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          field2Builder_.clear();
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public Builder removeField2(int index) {
        if (field2Builder_ == null) {
          ensureField2IsMutable();
          field2_.remove(index);
          onChanged();
        } else {
          field2Builder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.Builder getField2Builder(
          int index) {
        return getField2FieldBuilder().getBuilder(index);
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageBOrBuilder getField2OrBuilder(
          int index) {
        if (field2Builder_ == null) {
          return field2_.get(index);  } else {
          return field2Builder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public java.util.List 
           getField2OrBuilderList() {
        if (field2Builder_ != null) {
          return field2Builder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(field2_);
        }
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.Builder addField2Builder() {
        return getField2FieldBuilder().addBuilder(
            com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.getDefaultInstance());
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.Builder addField2Builder(
          int index) {
        return getField2FieldBuilder().addBuilder(
            index, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.getDefaultInstance());
      }
      /**
       * repeated .proto2_coder_test_messages.MessageB field2 = 2;
       */
      public java.util.List 
           getField2BuilderList() {
        return getField2FieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.Builder, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageBOrBuilder> 
          getField2FieldBuilder() {
        if (field2Builder_ == null) {
          field2Builder_ = new com.google.protobuf.RepeatedFieldBuilder<
              com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.Builder, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageBOrBuilder>(
                  field2_,
                  ((bitField0_ & 0x00000002) == 0x00000002),
                  getParentForChildren(),
                  isClean());
          field2_ = null;
        }
        return field2Builder_;
      }

      // @@protoc_insertion_point(builder_scope:proto2_coder_test_messages.MessageA)
    }

    // @@protoc_insertion_point(class_scope:proto2_coder_test_messages.MessageA)
    private static final com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA();
    }

    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      public MessageA parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        try {
          return new MessageA(input, extensionRegistry);
        } catch (RuntimeException e) {
          if (e.getCause() instanceof
              com.google.protobuf.InvalidProtocolBufferException) {
            throw (com.google.protobuf.InvalidProtocolBufferException)
                e.getCause();
          }
          throw e;
        }
      }
    };

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

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

    public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface MessageBOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto2_coder_test_messages.MessageB)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional bool field1 = 1;
     */
    boolean hasField1();
    /**
     * optional bool field1 = 1;
     */
    boolean getField1();
  }
  /**
   * Protobuf type {@code proto2_coder_test_messages.MessageB}
   */
  public  static final class MessageB extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:proto2_coder_test_messages.MessageB)
      MessageBOrBuilder {
    // Use MessageB.newBuilder() to construct.
    private MessageB(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
    }
    private MessageB() {
      field1_ = false;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MessageB(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
      this();
      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;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {
              bitField0_ |= 0x00000001;
              field1_ = input.readBool();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw new RuntimeException(e.setUnfinishedMessage(this));
      } catch (java.io.IOException e) {
        throw new RuntimeException(
            new com.google.protobuf.InvalidProtocolBufferException(
                e.getMessage()).setUnfinishedMessage(this));
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageB_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageB_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.class, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.Builder.class);
    }

    private int bitField0_;
    public static final int FIELD1_FIELD_NUMBER = 1;
    private boolean field1_;
    /**
     * optional bool field1 = 1;
     */
    public boolean hasField1() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional bool field1 = 1;
     */
    public boolean getField1() {
      return field1_;
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBool(1, field1_);
      }
      unknownFields.writeTo(output);
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(1, field1_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code proto2_coder_test_messages.MessageB}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:proto2_coder_test_messages.MessageB)
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageBOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageB_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageB_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.class, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.Builder.class);
      }

      // Construct using com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        field1_ = false;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageB_descriptor;
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB getDefaultInstanceForType() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.getDefaultInstance();
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB build() {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB buildPartial() {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB result = new com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.field1_ = field1_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB) {
          return mergeFrom((com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB other) {
        if (other == com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.getDefaultInstance()) return this;
        if (other.hasField1()) {
          setField1(other.getField1());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private boolean field1_ ;
      /**
       * optional bool field1 = 1;
       */
      public boolean hasField1() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional bool field1 = 1;
       */
      public boolean getField1() {
        return field1_;
      }
      /**
       * optional bool field1 = 1;
       */
      public Builder setField1(boolean value) {
        bitField0_ |= 0x00000001;
        field1_ = value;
        onChanged();
        return this;
      }
      /**
       * optional bool field1 = 1;
       */
      public Builder clearField1() {
        bitField0_ = (bitField0_ & ~0x00000001);
        field1_ = false;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:proto2_coder_test_messages.MessageB)
    }

    // @@protoc_insertion_point(class_scope:proto2_coder_test_messages.MessageB)
    private static final com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB();
    }

    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      public MessageB parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        try {
          return new MessageB(input, extensionRegistry);
        } catch (RuntimeException e) {
          if (e.getCause() instanceof
              com.google.protobuf.InvalidProtocolBufferException) {
            throw (com.google.protobuf.InvalidProtocolBufferException)
                e.getCause();
          }
          throw e;
        }
      }
    };

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

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

    public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface MessageCOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto2_coder_test_messages.MessageC)
      com.google.protobuf.GeneratedMessage.
          ExtendableMessageOrBuilder {
  }
  /**
   * Protobuf type {@code proto2_coder_test_messages.MessageC}
   */
  public  static final class MessageC extends
      com.google.protobuf.GeneratedMessage.ExtendableMessage<
        MessageC> implements
      // @@protoc_insertion_point(message_implements:proto2_coder_test_messages.MessageC)
      MessageCOrBuilder {
    // Use MessageC.newBuilder() to construct.
    private MessageC(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) {
      super(builder);
    }
    private MessageC() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MessageC(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
      this();
      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;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw new RuntimeException(e.setUnfinishedMessage(this));
      } catch (java.io.IOException e) {
        throw new RuntimeException(
            new com.google.protobuf.InvalidProtocolBufferException(
                e.getMessage()).setUnfinishedMessage(this));
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageC_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageC_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC.class, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC.Builder.class);
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      if (!extensionsAreInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      com.google.protobuf.GeneratedMessage
        .ExtendableMessage.ExtensionWriter
          extensionWriter = newExtensionWriter();
      extensionWriter.writeUntil(106, output);
      unknownFields.writeTo(output);
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      size += extensionsSerializedSize();
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code proto2_coder_test_messages.MessageC}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.ExtendableBuilder<
          com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC, Builder> implements
        // @@protoc_insertion_point(builder_implements:proto2_coder_test_messages.MessageC)
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageCOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageC_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageC_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC.class, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC.Builder.class);
      }

      // Construct using com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageC_descriptor;
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC getDefaultInstanceForType() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC.getDefaultInstance();
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC build() {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC buildPartial() {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC result = new com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC(this);
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC) {
          return mergeFrom((com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC other) {
        if (other == com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC.getDefaultInstance()) return this;
        this.mergeExtensionFields(other);
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        if (!extensionsAreInitialized()) {
          return false;
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      // @@protoc_insertion_point(builder_scope:proto2_coder_test_messages.MessageC)
    }

    // @@protoc_insertion_point(class_scope:proto2_coder_test_messages.MessageC)
    private static final com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC();
    }

    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      public MessageC parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        try {
          return new MessageC(input, extensionRegistry);
        } catch (RuntimeException e) {
          if (e.getCause() instanceof
              com.google.protobuf.InvalidProtocolBufferException) {
            throw (com.google.protobuf.InvalidProtocolBufferException)
                e.getCause();
          }
          throw e;
        }
      }
    };

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

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

    public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface MessageWithMapOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto2_coder_test_messages.MessageWithMap)
      com.google.protobuf.MessageOrBuilder {

    /**
     * map<string, .proto2_coder_test_messages.MessageA> field1 = 1;
     */
    java.util.Map
    getField1();
  }
  /**
   * Protobuf type {@code proto2_coder_test_messages.MessageWithMap}
   */
  public  static final class MessageWithMap extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:proto2_coder_test_messages.MessageWithMap)
      MessageWithMapOrBuilder {
    // Use MessageWithMap.newBuilder() to construct.
    private MessageWithMap(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
    }
    private MessageWithMap() {
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MessageWithMap(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
      this();
      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;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                field1_ = com.google.protobuf.MapField.newMapField(
                    Field1DefaultEntryHolder.defaultEntry);
                mutable_bitField0_ |= 0x00000001;
              }
              com.google.protobuf.MapEntry
              field1 = input.readMessage(
                  Field1DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              field1_.getMutableMap().put(field1.getKey(), field1.getValue());
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw new RuntimeException(e.setUnfinishedMessage(this));
      } catch (java.io.IOException e) {
        throw new RuntimeException(
            new com.google.protobuf.InvalidProtocolBufferException(
                e.getMessage()).setUnfinishedMessage(this));
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageWithMap_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 1:
          return internalGetField1();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageWithMap_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.class, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.Builder.class);
    }

    public static final int FIELD1_FIELD_NUMBER = 1;
    private static final class Field1DefaultEntryHolder {
      static final com.google.protobuf.MapEntry<
          java.lang.String, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA> defaultEntry =
              com.google.protobuf.MapEntry
              .newDefaultInstance(
                  com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageWithMap_Field1Entry_descriptor, 
                  com.google.protobuf.WireFormat.FieldType.STRING,
                  "",
                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
                  com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA.getDefaultInstance());
    }
    private com.google.protobuf.MapField<
        java.lang.String, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA> field1_;
    private com.google.protobuf.MapField
    internalGetField1() {
      if (field1_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            Field1DefaultEntryHolder.defaultEntry);
     }
      return field1_;
    }
    /**
     * map<string, .proto2_coder_test_messages.MessageA> field1 = 1;
     */

    public java.util.Map getField1() {
      return internalGetField1().getMap();
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (java.util.Map.Entry entry
           : internalGetField1().getMap().entrySet()) {
        com.google.protobuf.MapEntry
        field1 = Field1DefaultEntryHolder.defaultEntry.newBuilderForType()
            .setKey(entry.getKey())
            .setValue(entry.getValue())
            .build();
        output.writeMessage(1, field1);
      }
      unknownFields.writeTo(output);
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      for (java.util.Map.Entry entry
           : internalGetField1().getMap().entrySet()) {
        com.google.protobuf.MapEntry
        field1 = Field1DefaultEntryHolder.defaultEntry.newBuilderForType()
            .setKey(entry.getKey())
            .setValue(entry.getValue())
            .build();
        size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, field1);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code proto2_coder_test_messages.MessageWithMap}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:proto2_coder_test_messages.MessageWithMap)
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMapOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageWithMap_descriptor;
      }

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMapField(
          int number) {
        switch (number) {
          case 1:
            return internalGetField1();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMutableMapField(
          int number) {
        switch (number) {
          case 1:
            return internalGetMutableField1();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageWithMap_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.class, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.Builder.class);
      }

      // Construct using com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        internalGetMutableField1().clear();
        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_MessageWithMap_descriptor;
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap getDefaultInstanceForType() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.getDefaultInstance();
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap build() {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap buildPartial() {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap result = new com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap(this);
        int from_bitField0_ = bitField0_;
        result.field1_ = internalGetField1();
        result.field1_.makeImmutable();
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap) {
          return mergeFrom((com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap other) {
        if (other == com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.getDefaultInstance()) return this;
        internalGetMutableField1().mergeFrom(
            other.internalGetField1());
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.MapField<
          java.lang.String, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA> field1_;
      private com.google.protobuf.MapField
      internalGetField1() {
        if (field1_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              Field1DefaultEntryHolder.defaultEntry);
       }
        return field1_;
      }
      private com.google.protobuf.MapField
      internalGetMutableField1() {
        onChanged();;
        if (field1_ == null) {
          field1_ = com.google.protobuf.MapField.newMapField(
              Field1DefaultEntryHolder.defaultEntry);
        }
        if (!field1_.isMutable()) {
          field1_ = field1_.copy();
        }
        return field1_;
      }
      /**
       * map<string, .proto2_coder_test_messages.MessageA> field1 = 1;
       */
      public java.util.Map getField1() {
        return internalGetField1().getMap();
      }
      /**
       * map<string, .proto2_coder_test_messages.MessageA> field1 = 1;
       */
      public java.util.Map
      getMutableField1() {
        return internalGetMutableField1().getMutableMap();
      }
      /**
       * map<string, .proto2_coder_test_messages.MessageA> field1 = 1;
       */
      public Builder putAllField1(
          java.util.Map values) {
        getMutableField1().putAll(values);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:proto2_coder_test_messages.MessageWithMap)
    }

    // @@protoc_insertion_point(class_scope:proto2_coder_test_messages.MessageWithMap)
    private static final com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap();
    }

    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      public MessageWithMap parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        try {
          return new MessageWithMap(input, extensionRegistry);
        } catch (RuntimeException e) {
          if (e.getCause() instanceof
              com.google.protobuf.InvalidProtocolBufferException) {
            throw (com.google.protobuf.InvalidProtocolBufferException)
                e.getCause();
          }
          throw e;
        }
      }
    };

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

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

    public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ReferencesMessageWithMapOrBuilder extends
      // @@protoc_insertion_point(interface_extends:proto2_coder_test_messages.ReferencesMessageWithMap)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
     */
    java.util.List 
        getField1List();
    /**
     * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
     */
    com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap getField1(int index);
    /**
     * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
     */
    int getField1Count();
    /**
     * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
     */
    java.util.List 
        getField1OrBuilderList();
    /**
     * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
     */
    com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMapOrBuilder getField1OrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code proto2_coder_test_messages.ReferencesMessageWithMap}
   */
  public  static final class ReferencesMessageWithMap extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:proto2_coder_test_messages.ReferencesMessageWithMap)
      ReferencesMessageWithMapOrBuilder {
    // Use ReferencesMessageWithMap.newBuilder() to construct.
    private ReferencesMessageWithMap(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
    }
    private ReferencesMessageWithMap() {
      field1_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ReferencesMessageWithMap(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
      this();
      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;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                field1_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              field1_.add(input.readMessage(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.parser(), extensionRegistry));
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw new RuntimeException(e.setUnfinishedMessage(this));
      } catch (java.io.IOException e) {
        throw new RuntimeException(
            new com.google.protobuf.InvalidProtocolBufferException(
                e.getMessage()).setUnfinishedMessage(this));
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          field1_ = java.util.Collections.unmodifiableList(field1_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_ReferencesMessageWithMap_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_ReferencesMessageWithMap_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap.class, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap.Builder.class);
    }

    public static final int FIELD1_FIELD_NUMBER = 1;
    private java.util.List field1_;
    /**
     * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
     */
    public java.util.List getField1List() {
      return field1_;
    }
    /**
     * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
     */
    public java.util.List 
        getField1OrBuilderList() {
      return field1_;
    }
    /**
     * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
     */
    public int getField1Count() {
      return field1_.size();
    }
    /**
     * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
     */
    public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap getField1(int index) {
      return field1_.get(index);
    }
    /**
     * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
     */
    public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMapOrBuilder getField1OrBuilder(
        int index) {
      return field1_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < field1_.size(); i++) {
        output.writeMessage(1, field1_.get(i));
      }
      unknownFields.writeTo(output);
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      for (int i = 0; i < field1_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, field1_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code proto2_coder_test_messages.ReferencesMessageWithMap}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:proto2_coder_test_messages.ReferencesMessageWithMap)
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMapOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_ReferencesMessageWithMap_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_ReferencesMessageWithMap_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap.class, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap.Builder.class);
      }

      // Construct using com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getField1FieldBuilder();
        }
      }
      public Builder clear() {
        super.clear();
        if (field1Builder_ == null) {
          field1_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          field1Builder_.clear();
        }
        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.internal_static_proto2_coder_test_messages_ReferencesMessageWithMap_descriptor;
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap getDefaultInstanceForType() {
        return com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap.getDefaultInstance();
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap build() {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap buildPartial() {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap result = new com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap(this);
        int from_bitField0_ = bitField0_;
        if (field1Builder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            field1_ = java.util.Collections.unmodifiableList(field1_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.field1_ = field1_;
        } else {
          result.field1_ = field1Builder_.build();
        }
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap) {
          return mergeFrom((com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap other) {
        if (other == com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap.getDefaultInstance()) return this;
        if (field1Builder_ == null) {
          if (!other.field1_.isEmpty()) {
            if (field1_.isEmpty()) {
              field1_ = other.field1_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureField1IsMutable();
              field1_.addAll(other.field1_);
            }
            onChanged();
          }
        } else {
          if (!other.field1_.isEmpty()) {
            if (field1Builder_.isEmpty()) {
              field1Builder_.dispose();
              field1Builder_ = null;
              field1_ = other.field1_;
              bitField0_ = (bitField0_ & ~0x00000001);
              field1Builder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getField1FieldBuilder() : null;
            } else {
              field1Builder_.addAllMessages(other.field1_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      public final boolean isInitialized() {
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List field1_ =
        java.util.Collections.emptyList();
      private void ensureField1IsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          field1_ = new java.util.ArrayList(field1_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.Builder, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMapOrBuilder> field1Builder_;

      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public java.util.List getField1List() {
        if (field1Builder_ == null) {
          return java.util.Collections.unmodifiableList(field1_);
        } else {
          return field1Builder_.getMessageList();
        }
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public int getField1Count() {
        if (field1Builder_ == null) {
          return field1_.size();
        } else {
          return field1Builder_.getCount();
        }
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap getField1(int index) {
        if (field1Builder_ == null) {
          return field1_.get(index);
        } else {
          return field1Builder_.getMessage(index);
        }
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public Builder setField1(
          int index, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap value) {
        if (field1Builder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureField1IsMutable();
          field1_.set(index, value);
          onChanged();
        } else {
          field1Builder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public Builder setField1(
          int index, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.Builder builderForValue) {
        if (field1Builder_ == null) {
          ensureField1IsMutable();
          field1_.set(index, builderForValue.build());
          onChanged();
        } else {
          field1Builder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public Builder addField1(com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap value) {
        if (field1Builder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureField1IsMutable();
          field1_.add(value);
          onChanged();
        } else {
          field1Builder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public Builder addField1(
          int index, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap value) {
        if (field1Builder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureField1IsMutable();
          field1_.add(index, value);
          onChanged();
        } else {
          field1Builder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public Builder addField1(
          com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.Builder builderForValue) {
        if (field1Builder_ == null) {
          ensureField1IsMutable();
          field1_.add(builderForValue.build());
          onChanged();
        } else {
          field1Builder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public Builder addField1(
          int index, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.Builder builderForValue) {
        if (field1Builder_ == null) {
          ensureField1IsMutable();
          field1_.add(index, builderForValue.build());
          onChanged();
        } else {
          field1Builder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public Builder addAllField1(
          java.lang.Iterable values) {
        if (field1Builder_ == null) {
          ensureField1IsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, field1_);
          onChanged();
        } else {
          field1Builder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public Builder clearField1() {
        if (field1Builder_ == null) {
          field1_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          field1Builder_.clear();
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public Builder removeField1(int index) {
        if (field1Builder_ == null) {
          ensureField1IsMutable();
          field1_.remove(index);
          onChanged();
        } else {
          field1Builder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.Builder getField1Builder(
          int index) {
        return getField1FieldBuilder().getBuilder(index);
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMapOrBuilder getField1OrBuilder(
          int index) {
        if (field1Builder_ == null) {
          return field1_.get(index);  } else {
          return field1Builder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public java.util.List 
           getField1OrBuilderList() {
        if (field1Builder_ != null) {
          return field1Builder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(field1_);
        }
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.Builder addField1Builder() {
        return getField1FieldBuilder().addBuilder(
            com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.getDefaultInstance());
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.Builder addField1Builder(
          int index) {
        return getField1FieldBuilder().addBuilder(
            index, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.getDefaultInstance());
      }
      /**
       * repeated .proto2_coder_test_messages.MessageWithMap field1 = 1;
       */
      public java.util.List 
           getField1BuilderList() {
        return getField1FieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.Builder, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMapOrBuilder> 
          getField1FieldBuilder() {
        if (field1Builder_ == null) {
          field1Builder_ = new com.google.protobuf.RepeatedFieldBuilder<
              com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMap.Builder, com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageWithMapOrBuilder>(
                  field1_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          field1_ = null;
        }
        return field1Builder_;
      }

      // @@protoc_insertion_point(builder_scope:proto2_coder_test_messages.ReferencesMessageWithMap)
    }

    // @@protoc_insertion_point(class_scope:proto2_coder_test_messages.ReferencesMessageWithMap)
    private static final com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap();
    }

    public static com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      public ReferencesMessageWithMap parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        try {
          return new ReferencesMessageWithMap(input, extensionRegistry);
        } catch (RuntimeException e) {
          if (e.getCause() instanceof
              com.google.protobuf.InvalidProtocolBufferException) {
            throw (com.google.protobuf.InvalidProtocolBufferException)
                e.getCause();
          }
          throw e;
        }
      }
    };

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

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

    public com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.ReferencesMessageWithMap getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public static final int FIELD1_FIELD_NUMBER = 101;
  /**
   * extend .proto2_coder_test_messages.MessageC { ... }
   */
  public static final
    com.google.protobuf.GeneratedMessage.GeneratedExtension<
      com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC,
      com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA> field1 = com.google.protobuf.GeneratedMessage
          .newFileScopedGeneratedExtension(
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA.class,
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageA.getDefaultInstance());
  public static final int FIELD2_FIELD_NUMBER = 102;
  /**
   * extend .proto2_coder_test_messages.MessageC { ... }
   */
  public static final
    com.google.protobuf.GeneratedMessage.GeneratedExtension<
      com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageC,
      com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB> field2 = com.google.protobuf.GeneratedMessage
          .newFileScopedGeneratedExtension(
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.class,
        com.google.cloud.dataflow.sdk.coders.Proto2CoderTestMessages.MessageB.getDefaultInstance());
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_proto2_coder_test_messages_MessageA_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_proto2_coder_test_messages_MessageA_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_proto2_coder_test_messages_MessageB_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_proto2_coder_test_messages_MessageB_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_proto2_coder_test_messages_MessageC_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_proto2_coder_test_messages_MessageC_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_proto2_coder_test_messages_MessageWithMap_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_proto2_coder_test_messages_MessageWithMap_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_proto2_coder_test_messages_MessageWithMap_Field1Entry_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_proto2_coder_test_messages_MessageWithMap_Field1Entry_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_proto2_coder_test_messages_ReferencesMessageWithMap_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_proto2_coder_test_messages_ReferencesMessageWithMap_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n proto2_coder_test_messages.proto\022\032prot" +
      "o2_coder_test_messages\"P\n\010MessageA\022\016\n\006fi" +
      "eld1\030\001 \001(\t\0224\n\006field2\030\002 \003(\0132$.proto2_code" +
      "r_test_messages.MessageB\"\032\n\010MessageB\022\016\n\006" +
      "field1\030\001 \001(\010\"\020\n\010MessageC*\004\010d\020j\"\255\001\n\016Messa" +
      "geWithMap\022F\n\006field1\030\001 \003(\01326.proto2_coder" +
      "_test_messages.MessageWithMap.Field1Entr" +
      "y\032S\n\013Field1Entry\022\013\n\003key\030\001 \001(\t\0223\n\005value\030\002" +
      " \001(\0132$.proto2_coder_test_messages.Messag" +
      "eA:\0028\001\"V\n\030ReferencesMessageWithMap\022:\n\006fi",
      "eld1\030\001 \003(\0132*.proto2_coder_test_messages." +
      "MessageWithMap:Z\n\006field1\022$.proto2_coder_" +
      "test_messages.MessageC\030e \001(\0132$.proto2_co" +
      "der_test_messages.MessageA:Z\n\006field2\022$.p" +
      "roto2_coder_test_messages.MessageC\030f \001(\013" +
      "2$.proto2_coder_test_messages.MessageBB&" +
      "\n$com.google.cloud.dataflow.sdk.coders"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
    internal_static_proto2_coder_test_messages_MessageA_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_proto2_coder_test_messages_MessageA_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_proto2_coder_test_messages_MessageA_descriptor,
        new java.lang.String[] { "Field1", "Field2", });
    internal_static_proto2_coder_test_messages_MessageB_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_proto2_coder_test_messages_MessageB_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_proto2_coder_test_messages_MessageB_descriptor,
        new java.lang.String[] { "Field1", });
    internal_static_proto2_coder_test_messages_MessageC_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_proto2_coder_test_messages_MessageC_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_proto2_coder_test_messages_MessageC_descriptor,
        new java.lang.String[] { });
    internal_static_proto2_coder_test_messages_MessageWithMap_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_proto2_coder_test_messages_MessageWithMap_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_proto2_coder_test_messages_MessageWithMap_descriptor,
        new java.lang.String[] { "Field1", });
    internal_static_proto2_coder_test_messages_MessageWithMap_Field1Entry_descriptor =
      internal_static_proto2_coder_test_messages_MessageWithMap_descriptor.getNestedTypes().get(0);
    internal_static_proto2_coder_test_messages_MessageWithMap_Field1Entry_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_proto2_coder_test_messages_MessageWithMap_Field1Entry_descriptor,
        new java.lang.String[] { "Key", "Value", });
    internal_static_proto2_coder_test_messages_ReferencesMessageWithMap_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_proto2_coder_test_messages_ReferencesMessageWithMap_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_proto2_coder_test_messages_ReferencesMessageWithMap_descriptor,
        new java.lang.String[] { "Field1", });
    field1.internalInit(descriptor.getExtensions().get(0));
    field2.internalInit(descriptor.getExtensions().get(1));
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy