int getHasCreep(int index);
  }
  /**
   * Protobuf type {@code messages.DynamicTerrainInfo}
   */
  public static final class DynamicTerrainInfo extends
      com.google.protobuf.GeneratedMessage
      implements DynamicTerrainInfoOrBuilder {
    // Use DynamicTerrainInfo.newBuilder() to construct.
    private DynamicTerrainInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private DynamicTerrainInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final DynamicTerrainInfo defaultInstance;
    public static DynamicTerrainInfo getDefaultInstance() {
      return defaultInstance;
    }

    public DynamicTerrainInfo getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private DynamicTerrainInfo(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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 29: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                isVisible_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000001;
              }
              isVisible_.add(input.readFixed32());
              break;
            }
            case 26: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
                isVisible_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000001;
              }
              while (input.getBytesUntilLimit() > 0) {
                isVisible_.add(input.readFixed32());
              }
              input.popLimit(limit);
              break;
            }
            case 37: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                isExplored_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000002;
              }
              isExplored_.add(input.readFixed32());
              break;
            }
            case 34: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
                isExplored_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000002;
              }
              while (input.getBytesUntilLimit() > 0) {
                isExplored_.add(input.readFixed32());
              }
              input.popLimit(limit);
              break;
            }
            case 45: {
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
                hasCreep_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000004;
              }
              hasCreep_.add(input.readFixed32());
              break;
            }
            case 42: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
                hasCreep_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000004;
              }
              while (input.getBytesUntilLimit() > 0) {
                hasCreep_.add(input.readFixed32());
              }
              input.popLimit(limit);
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          isVisible_ = java.util.Collections.unmodifiableList(isVisible_);
        }
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          isExplored_ = java.util.Collections.unmodifiableList(isExplored_);
        }
        if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
          hasCreep_ = java.util.Collections.unmodifiableList(hasCreep_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_DynamicTerrainInfo_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_DynamicTerrainInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo.class, org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo.Builder.class);
    }

    public static com.google.protobuf.Parser<DynamicTerrainInfo> PARSER =
        new com.google.protobuf.AbstractParser<DynamicTerrainInfo>() {
      public DynamicTerrainInfo parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new DynamicTerrainInfo(input, extensionRegistry);
      }
    };

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

    // repeated fixed32 isVisible = 3;
    public static final int ISVISIBLE_FIELD_NUMBER = 3;
    private java.util.List<java.lang.Integer> isVisible_;
    /**
     * <code>repeated fixed32 isVisible = 3;</code>
     *
     * <pre>
     * bit masks for walkable terrain
     * </pre>
     */
    public java.util.List<java.lang.Integer>
        getIsVisibleList() {
      return isVisible_;
    }
    /**
     * <code>repeated fixed32 isVisible = 3;</code>
     *
     * <pre>
     * bit masks for walkable terrain
     * </pre>
     */
    public int getIsVisibleCount() {
      return isVisible_.size();
    }
    /**
     * <code>repeated fixed32 isVisible = 3;</code>
     *
     * <pre>
     * bit masks for walkable terrain
     * </pre>
     */
    public int getIsVisible(int index) {
      return isVisible_.get(index);
    }

    // repeated fixed32 isExplored = 4;
    public static final int ISEXPLORED_FIELD_NUMBER = 4;
    private java.util.List<java.lang.Integer> isExplored_;
    /**
     * <code>repeated fixed32 isExplored = 4;</code>
     */
    public java.util.List<java.lang.Integer>
        getIsExploredList() {
      return isExplored_;
    }
    /**
     * <code>repeated fixed32 isExplored = 4;</code>
     */
    public int getIsExploredCount() {
      return isExplored_.size();
    }
    /**
     * <code>repeated fixed32 isExplored = 4;</code>
     */
    public int getIsExplored(int index) {
      return isExplored_.get(index);
    }

    // repeated fixed32 hasCreep = 5;
    public static final int HASCREEP_FIELD_NUMBER = 5;
    private java.util.List<java.lang.Integer> hasCreep_;
    /**
     * <code>repeated fixed32 hasCreep = 5;</code>
     */
    public java.util.List<java.lang.Integer>
        getHasCreepList() {
      return hasCreep_;
    }
    /**
     * <code>repeated fixed32 hasCreep = 5;</code>
     */
    public int getHasCreepCount() {
      return hasCreep_.size();
    }
    /**
     * <code>repeated fixed32 hasCreep = 5;</code>
     */
    public int getHasCreep(int index) {
      return hasCreep_.get(index);
    }

    private void initFields() {
      isVisible_ = java.util.Collections.emptyList();
      isExplored_ = java.util.Collections.emptyList();
      hasCreep_ = java.util.Collections.emptyList();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      for (int i = 0; i < isVisible_.size(); i++) {
        output.writeFixed32(3, isVisible_.get(i));
      }
      for (int i = 0; i < isExplored_.size(); i++) {
        output.writeFixed32(4, isExplored_.get(i));
      }
      for (int i = 0; i < hasCreep_.size(); i++) {
        output.writeFixed32(5, hasCreep_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      {
        int dataSize = 0;
        dataSize = 4 * getIsVisibleList().size();
        size += dataSize;
        size += 1 * getIsVisibleList().size();
      }
      {
        int dataSize = 0;
        dataSize = 4 * getIsExploredList().size();
        size += dataSize;
        size += 1 * getIsExploredList().size();
      }
      {
        int dataSize = 0;
        dataSize = 4 * getHasCreepList().size();
        size += dataSize;
        size += 1 * getHasCreepList().size();
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code messages.DynamicTerrainInfo}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_DynamicTerrainInfo_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_DynamicTerrainInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo.class, org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo.Builder.class);
      }

      // Construct using org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        isVisible_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        isExplored_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        hasCreep_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_DynamicTerrainInfo_descriptor;
      }

      public org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo getDefaultInstanceForType() {
        return org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo.getDefaultInstance();
      }

      public org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo build() {
        org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo buildPartial() {
        org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo result = new org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          isVisible_ = java.util.Collections.unmodifiableList(isVisible_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.isVisible_ = isVisible_;
        if (((bitField0_ & 0x00000002) == 0x00000002)) {
          isExplored_ = java.util.Collections.unmodifiableList(isExplored_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.isExplored_ = isExplored_;
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          hasCreep_ = java.util.Collections.unmodifiableList(hasCreep_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.hasCreep_ = hasCreep_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo) {
          return mergeFrom((org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo other) {
        if (other == org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo.getDefaultInstance()) return this;
        if (!other.isVisible_.isEmpty()) {
          if (isVisible_.isEmpty()) {
            isVisible_ = other.isVisible_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureIsVisibleIsMutable();
            isVisible_.addAll(other.isVisible_);
          }
          onChanged();
        }
        if (!other.isExplored_.isEmpty()) {
          if (isExplored_.isEmpty()) {
            isExplored_ = other.isExplored_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureIsExploredIsMutable();
            isExplored_.addAll(other.isExplored_);
          }
          onChanged();
        }
        if (!other.hasCreep_.isEmpty()) {
          if (hasCreep_.isEmpty()) {
            hasCreep_ = other.hasCreep_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureHasCreepIsMutable();
            hasCreep_.addAll(other.hasCreep_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.bwapi.proxy.messages.TerrainMessages.DynamicTerrainInfo) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // repeated fixed32 isVisible = 3;
      private java.util.List<java.lang.Integer> isVisible_ = java.util.Collections.emptyList();
      private void ensureIsVisibleIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          isVisible_ = new java.util.ArrayList<java.lang.Integer>(isVisible_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated fixed32 isVisible = 3;</code>
       *
       * <pre>
       * bit masks for walkable terrain
       * </pre>
       */
      public java.util.List<java.lang.Integer>
          getIsVisibleList() {
        return java.util.Collections.unmodifiableList(isVisible_);
      }
      /**
       * <code>repeated fixed32 isVisible = 3;</code>
       *
       * <pre>
       * bit masks for walkable terrain
       * </pre>
       */
      public int getIsVisibleCount() {
        return isVisible_.size();
      }
      /**
       * <code>repeated fixed32 isVisible = 3;</code>
       *
       * <pre>
       * bit masks for walkable terrain
       * </pre>
       */
      public int getIsVisible(int index) {
        return isVisible_.get(index);
      }
      /**
       * <code>repeated fixed32 isVisible = 3;</code>
       *
       * <pre>
       * bit masks for walkable terrain
       * </pre>
       */
      public Builder setIsVisible(
          int index, int value) {
        ensureIsVisibleIsMutable();
        isVisible_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated fixed32 isVisible = 3;</code>
       *
       * <pre>
       * bit masks for walkable terrain
       * </pre>
       */
      public Builder addIsVisible(int value) {
        ensureIsVisibleIsMutable();
        isVisible_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated fixed32 isVisible = 3;</code>
       *
       * <pre>
       * bit masks for walkable terrain
       * </pre>
       */
      public Builder addAllIsVisible(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureIsVisibleIsMutable();
        super.addAll(values, isVisible_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated fixed32 isVisible = 3;</code>
       *
       * <pre>
       * bit masks for walkable terrain
       * </pre>
       */
      public Builder clearIsVisible() {
        isVisible_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }

      // repeated fixed32 isExplored = 4;
      private java.util.List<java.lang.Integer> isExplored_ = java.util.Collections.emptyList();
      private void ensureIsExploredIsMutable() {
        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
          isExplored_ = new java.util.ArrayList<java.lang.Integer>(isExplored_);
          bitField0_ |= 0x00000002;
         }
      }
      /**
       * <code>repeated fixed32 isExplored = 4;</code>
       */
      public java.util.List<java.lang.Integer>
          getIsExploredList() {
        return java.util.Collections.unmodifiableList(isExplored_);
      }
      /**
       * <code>repeated fixed32 isExplored = 4;</code>
       */
      public int getIsExploredCount() {
        return isExplored_.size();
      }
      /**
       * <code>repeated fixed32 isExplored = 4;</code>
       */
      public int getIsExplored(int index) {
        return isExplored_.get(index);
      }
      /**
       * <code>repeated fixed32 isExplored = 4;</code>
       */
      public Builder setIsExplored(
          int index, int value) {
        ensureIsExploredIsMutable();
        isExplored_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated fixed32 isExplored = 4;</code>
       */
      public Builder addIsExplored(int value) {
        ensureIsExploredIsMutable();
        isExplored_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated fixed32 isExplored = 4;</code>
       */
      public Builder addAllIsExplored(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureIsExploredIsMutable();
        super.addAll(values, isExplored_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated fixed32 isExplored = 4;</code>
       */
      public Builder clearIsExplored() {
        isExplored_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }

      // repeated fixed32 hasCreep = 5;
      private java.util.List<java.lang.Integer> hasCreep_ = java.util.Collections.emptyList();
      private void ensureHasCreepIsMutable() {
        if (!((bitField0_ & 0x00000004) == 0x00000004)) {
          hasCreep_ = new java.util.ArrayList<java.lang.Integer>(hasCreep_);
          bitField0_ |= 0x00000004;
         }
      }
      /**
       * <code>repeated fixed32 hasCreep = 5;</code>
       */
      public java.util.List<java.lang.Integer>
          getHasCreepList() {
        return java.util.Collections.unmodifiableList(hasCreep_);
      }
      /**
       * <code>repeated fixed32 hasCreep = 5;</code>
       */
      public int getHasCreepCount() {
        return hasCreep_.size();
      }
      /**
       * <code>repeated fixed32 hasCreep = 5;</code>
       */
      public int getHasCreep(int index) {
        return hasCreep_.get(index);
      }
      /**
       * <code>repeated fixed32 hasCreep = 5;</code>
       */
      public Builder setHasCreep(
          int index, int value) {
        ensureHasCreepIsMutable();
        hasCreep_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated fixed32 hasCreep = 5;</code>
       */
      public Builder addHasCreep(int value) {
        ensureHasCreepIsMutable();
        hasCreep_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated fixed32 hasCreep = 5;</code>
       */
      public Builder addAllHasCreep(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureHasCreepIsMutable();
        super.addAll(values, hasCreep_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated fixed32 hasCreep = 5;</code>
       */
      public Builder clearHasCreep() {
        hasCreep_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:messages.DynamicTerrainInfo)
    }

    static {
      defaultInstance = new DynamicTerrainInfo(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:messages.DynamicTerrainInfo)
  }

  public interface StaticTerrainInfoOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // repeated .messages.Region regions = 1;
    /**
     * <code>repeated .messages.Region regions = 1;</code>
     */
    java.util.List<org.bwapi.proxy.messages.TerrainMessages.Region> 
        getRegionsList();
    /**
     * <code>repeated .messages.Region regions = 1;</code>
     */
    org.bwapi.proxy.messages.TerrainMessages.Region getRegions(int index);
    /**
     * <code>repeated .messages.Region regions = 1;</code>
     */
    int getRegionsCount();
    /**
     * <code>repeated .messages.Region regions = 1;</code>
     */
    java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.RegionOrBuilder> 
        getRegionsOrBuilderList();
    /**
     * <code>repeated .messages.Region regions = 1;</code>
     */
    org.bwapi.proxy.messages.TerrainMessages.RegionOrBuilder getRegionsOrBuilder(
        int index);

    // repeated .messages.Chokepoint chokepoints = 2;
    /**
     * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
     */
    java.util.List<org.bwapi.proxy.messages.TerrainMessages.Chokepoint> 
        getChokepointsList();
    /**
     * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
     */
    org.bwapi.proxy.messages.TerrainMessages.Chokepoint getChokepoints(int index);
    /**
     * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
     */
    int getChokepointsCount();
    /**
     * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
     */
    java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.ChokepointOrBuilder> 
        getChokepointsOrBuilderList();
    /**
     * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
     */
    org.bwapi.proxy.messages.TerrainMessages.ChokepointOrBuilder getChokepointsOrBuilder(
        int index);

    // repeated .messages.BaseLocation baseLocations = 3;
    /**
     * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
     */
    java.util.List<org.bwapi.proxy.messages.TerrainMessages.BaseLocation> 
        getBaseLocationsList();
    /**
     * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
     */
    org.bwapi.proxy.messages.TerrainMessages.BaseLocation getBaseLocations(int index);
    /**
     * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
     */
    int getBaseLocationsCount();
    /**
     * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
     */
    java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.BaseLocationOrBuilder> 
        getBaseLocationsOrBuilderList();
    /**
     * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
     */
    org.bwapi.proxy.messages.TerrainMessages.BaseLocationOrBuilder getBaseLocationsOrBuilder(
        int index);

    // repeated int32 startLocations = 4;
    /**
     * <code>repeated int32 startLocations = 4;</code>
     */
    java.util.List<java.lang.Integer> getStartLocationsList();
    /**
     * <code>repeated int32 startLocations = 4;</code>
     */
    int getStartLocationsCount();
    /**
     * <code>repeated int32 startLocations = 4;</code>
     */
    int getStartLocations(int index);

    // repeated .messages.Polygon unwalkablePolygon = 5;
    /**
     * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
     */
    java.util.List<org.bwapi.proxy.messages.TerrainMessages.Polygon> 
        getUnwalkablePolygonList();
    /**
     * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
     */
    org.bwapi.proxy.messages.TerrainMessages.Polygon getUnwalkablePolygon(int index);
    /**
     * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
     */
    int getUnwalkablePolygonCount();
    /**
     * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
     */
    java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder> 
        getUnwalkablePolygonOrBuilderList();
    /**
     * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
     */
    org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder getUnwalkablePolygonOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code messages.StaticTerrainInfo}
   */
  public static final class StaticTerrainInfo extends
      com.google.protobuf.GeneratedMessage
      implements StaticTerrainInfoOrBuilder {
    // Use StaticTerrainInfo.newBuilder() to construct.
    private StaticTerrainInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private StaticTerrainInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final StaticTerrainInfo defaultInstance;
    public static StaticTerrainInfo getDefaultInstance() {
      return defaultInstance;
    }

    public StaticTerrainInfo getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private StaticTerrainInfo(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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)) {
                regions_ = new java.util.ArrayList<org.bwapi.proxy.messages.TerrainMessages.Region>();
                mutable_bitField0_ |= 0x00000001;
              }
              regions_.add(input.readMessage(org.bwapi.proxy.messages.TerrainMessages.Region.PARSER, extensionRegistry));
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                chokepoints_ = new java.util.ArrayList<org.bwapi.proxy.messages.TerrainMessages.Chokepoint>();
                mutable_bitField0_ |= 0x00000002;
              }
              chokepoints_.add(input.readMessage(org.bwapi.proxy.messages.TerrainMessages.Chokepoint.PARSER, extensionRegistry));
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
                baseLocations_ = new java.util.ArrayList<org.bwapi.proxy.messages.TerrainMessages.BaseLocation>();
                mutable_bitField0_ |= 0x00000004;
              }
              baseLocations_.add(input.readMessage(org.bwapi.proxy.messages.TerrainMessages.BaseLocation.PARSER, extensionRegistry));
              break;
            }
            case 32: {
              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
                startLocations_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000008;
              }
              startLocations_.add(input.readInt32());
              break;
            }
            case 34: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
                startLocations_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000008;
              }
              while (input.getBytesUntilLimit() > 0) {
                startLocations_.add(input.readInt32());
              }
              input.popLimit(limit);
              break;
            }
            case 42: {
              if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
                unwalkablePolygon_ = new java.util.ArrayList<org.bwapi.proxy.messages.TerrainMessages.Polygon>();
                mutable_bitField0_ |= 0x00000010;
              }
              unwalkablePolygon_.add(input.readMessage(org.bwapi.proxy.messages.TerrainMessages.Polygon.PARSER, extensionRegistry));
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          regions_ = java.util.Collections.unmodifiableList(regions_);
        }
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          chokepoints_ = java.util.Collections.unmodifiableList(chokepoints_);
        }
        if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
          baseLocations_ = java.util.Collections.unmodifiableList(baseLocations_);
        }
        if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
          startLocations_ = java.util.Collections.unmodifiableList(startLocations_);
        }
        if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
          unwalkablePolygon_ = java.util.Collections.unmodifiableList(unwalkablePolygon_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_StaticTerrainInfo_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_StaticTerrainInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo.class, org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo.Builder.class);
    }

    public static com.google.protobuf.Parser<StaticTerrainInfo> PARSER =
        new com.google.protobuf.AbstractParser<StaticTerrainInfo>() {
      public StaticTerrainInfo parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new StaticTerrainInfo(input, extensionRegistry);
      }
    };

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

    // repeated .messages.Region regions = 1;
    public static final int REGIONS_FIELD_NUMBER = 1;
    private java.util.List<org.bwapi.proxy.messages.TerrainMessages.Region> regions_;
    /**
     * <code>repeated .messages.Region regions = 1;</code>
     */
    public java.util.List<org.bwapi.proxy.messages.TerrainMessages.Region> getRegionsList() {
      return regions_;
    }
    /**
     * <code>repeated .messages.Region regions = 1;</code>
     */
    public java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.RegionOrBuilder> 
        getRegionsOrBuilderList() {
      return regions_;
    }
    /**
     * <code>repeated .messages.Region regions = 1;</code>
     */
    public int getRegionsCount() {
      return regions_.size();
    }
    /**
     * <code>repeated .messages.Region regions = 1;</code>
     */
    public org.bwapi.proxy.messages.TerrainMessages.Region getRegions(int index) {
      return regions_.get(index);
    }
    /**
     * <code>repeated .messages.Region regions = 1;</code>
     */
    public org.bwapi.proxy.messages.TerrainMessages.RegionOrBuilder getRegionsOrBuilder(
        int index) {
      return regions_.get(index);
    }

    // repeated .messages.Chokepoint chokepoints = 2;
    public static final int CHOKEPOINTS_FIELD_NUMBER = 2;
    private java.util.List<org.bwapi.proxy.messages.TerrainMessages.Chokepoint> chokepoints_;
    /**
     * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
     */
    public java.util.List<org.bwapi.proxy.messages.TerrainMessages.Chokepoint> getChokepointsList() {
      return chokepoints_;
    }
    /**
     * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
     */
    public java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.ChokepointOrBuilder> 
        getChokepointsOrBuilderList() {
      return chokepoints_;
    }
    /**
     * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
     */
    public int getChokepointsCount() {
      return chokepoints_.size();
    }
    /**
     * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
     */
    public org.bwapi.proxy.messages.TerrainMessages.Chokepoint getChokepoints(int index) {
      return chokepoints_.get(index);
    }
    /**
     * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
     */
    public org.bwapi.proxy.messages.TerrainMessages.ChokepointOrBuilder getChokepointsOrBuilder(
        int index) {
      return chokepoints_.get(index);
    }

    // repeated .messages.BaseLocation baseLocations = 3;
    public static final int BASELOCATIONS_FIELD_NUMBER = 3;
    private java.util.List<org.bwapi.proxy.messages.TerrainMessages.BaseLocation> baseLocations_;
    /**
     * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
     */
    public java.util.List<org.bwapi.proxy.messages.TerrainMessages.BaseLocation> getBaseLocationsList() {
      return baseLocations_;
    }
    /**
     * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
     */
    public java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.BaseLocationOrBuilder> 
        getBaseLocationsOrBuilderList() {
      return baseLocations_;
    }
    /**
     * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
     */
    public int getBaseLocationsCount() {
      return baseLocations_.size();
    }
    /**
     * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
     */
    public org.bwapi.proxy.messages.TerrainMessages.BaseLocation getBaseLocations(int index) {
      return baseLocations_.get(index);
    }
    /**
     * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
     */
    public org.bwapi.proxy.messages.TerrainMessages.BaseLocationOrBuilder getBaseLocationsOrBuilder(
        int index) {
      return baseLocations_.get(index);
    }

    // repeated int32 startLocations = 4;
    public static final int STARTLOCATIONS_FIELD_NUMBER = 4;
    private java.util.List<java.lang.Integer> startLocations_;
    /**
     * <code>repeated int32 startLocations = 4;</code>
     */
    public java.util.List<java.lang.Integer>
        getStartLocationsList() {
      return startLocations_;
    }
    /**
     * <code>repeated int32 startLocations = 4;</code>
     */
    public int getStartLocationsCount() {
      return startLocations_.size();
    }
    /**
     * <code>repeated int32 startLocations = 4;</code>
     */
    public int getStartLocations(int index) {
      return startLocations_.get(index);
    }

    // repeated .messages.Polygon unwalkablePolygon = 5;
    public static final int UNWALKABLEPOLYGON_FIELD_NUMBER = 5;
    private java.util.List<org.bwapi.proxy.messages.TerrainMessages.Polygon> unwalkablePolygon_;
    /**
     * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
     */
    public java.util.List<org.bwapi.proxy.messages.TerrainMessages.Polygon> getUnwalkablePolygonList() {
      return unwalkablePolygon_;
    }
    /**
     * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
     */
    public java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder> 
        getUnwalkablePolygonOrBuilderList() {
      return unwalkablePolygon_;
    }
    /**
     * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
     */
    public int getUnwalkablePolygonCount() {
      return unwalkablePolygon_.size();
    }
    /**
     * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
     */
    public org.bwapi.proxy.messages.TerrainMessages.Polygon getUnwalkablePolygon(int index) {
      return unwalkablePolygon_.get(index);
    }
    /**
     * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
     */
    public org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder getUnwalkablePolygonOrBuilder(
        int index) {
      return unwalkablePolygon_.get(index);
    }

    private void initFields() {
      regions_ = java.util.Collections.emptyList();
      chokepoints_ = java.util.Collections.emptyList();
      baseLocations_ = java.util.Collections.emptyList();
      startLocations_ = java.util.Collections.emptyList();
      unwalkablePolygon_ = java.util.Collections.emptyList();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      for (int i = 0; i < getRegionsCount(); i++) {
        if (!getRegions(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getChokepointsCount(); i++) {
        if (!getChokepoints(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getBaseLocationsCount(); i++) {
        if (!getBaseLocations(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getUnwalkablePolygonCount(); i++) {
        if (!getUnwalkablePolygon(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      for (int i = 0; i < regions_.size(); i++) {
        output.writeMessage(1, regions_.get(i));
      }
      for (int i = 0; i < chokepoints_.size(); i++) {
        output.writeMessage(2, chokepoints_.get(i));
      }
      for (int i = 0; i < baseLocations_.size(); i++) {
        output.writeMessage(3, baseLocations_.get(i));
      }
      for (int i = 0; i < startLocations_.size(); i++) {
        output.writeInt32(4, startLocations_.get(i));
      }
      for (int i = 0; i < unwalkablePolygon_.size(); i++) {
        output.writeMessage(5, unwalkablePolygon_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < regions_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, regions_.get(i));
      }
      for (int i = 0; i < chokepoints_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, chokepoints_.get(i));
      }
      for (int i = 0; i < baseLocations_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, baseLocations_.get(i));
      }
      {
        int dataSize = 0;
        for (int i = 0; i < startLocations_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(startLocations_.get(i));
        }
        size += dataSize;
        size += 1 * getStartLocationsList().size();
      }
      for (int i = 0; i < unwalkablePolygon_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, unwalkablePolygon_.get(i));
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code messages.StaticTerrainInfo}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_StaticTerrainInfo_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_StaticTerrainInfo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo.class, org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo.Builder.class);
      }

      // Construct using org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getRegionsFieldBuilder();
          getChokepointsFieldBuilder();
          getBaseLocationsFieldBuilder();
          getUnwalkablePolygonFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        if (regionsBuilder_ == null) {
          regions_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          regionsBuilder_.clear();
        }
        if (chokepointsBuilder_ == null) {
          chokepoints_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          chokepointsBuilder_.clear();
        }
        if (baseLocationsBuilder_ == null) {
          baseLocations_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          baseLocationsBuilder_.clear();
        }
        startLocations_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        if (unwalkablePolygonBuilder_ == null) {
          unwalkablePolygon_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000010);
        } else {
          unwalkablePolygonBuilder_.clear();
        }
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_StaticTerrainInfo_descriptor;
      }

      public org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo getDefaultInstanceForType() {
        return org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo.getDefaultInstance();
      }

      public org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo build() {
        org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo buildPartial() {
        org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo result = new org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo(this);
        int from_bitField0_ = bitField0_;
        if (regionsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            regions_ = java.util.Collections.unmodifiableList(regions_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.regions_ = regions_;
        } else {
          result.regions_ = regionsBuilder_.build();
        }
        if (chokepointsBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            chokepoints_ = java.util.Collections.unmodifiableList(chokepoints_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.chokepoints_ = chokepoints_;
        } else {
          result.chokepoints_ = chokepointsBuilder_.build();
        }
        if (baseLocationsBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004)) {
            baseLocations_ = java.util.Collections.unmodifiableList(baseLocations_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.baseLocations_ = baseLocations_;
        } else {
          result.baseLocations_ = baseLocationsBuilder_.build();
        }
        if (((bitField0_ & 0x00000008) == 0x00000008)) {
          startLocations_ = java.util.Collections.unmodifiableList(startLocations_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.startLocations_ = startLocations_;
        if (unwalkablePolygonBuilder_ == null) {
          if (((bitField0_ & 0x00000010) == 0x00000010)) {
            unwalkablePolygon_ = java.util.Collections.unmodifiableList(unwalkablePolygon_);
            bitField0_ = (bitField0_ & ~0x00000010);
          }
          result.unwalkablePolygon_ = unwalkablePolygon_;
        } else {
          result.unwalkablePolygon_ = unwalkablePolygonBuilder_.build();
        }
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo) {
          return mergeFrom((org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo other) {
        if (other == org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo.getDefaultInstance()) return this;
        if (regionsBuilder_ == null) {
          if (!other.regions_.isEmpty()) {
            if (regions_.isEmpty()) {
              regions_ = other.regions_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureRegionsIsMutable();
              regions_.addAll(other.regions_);
            }
            onChanged();
          }
        } else {
          if (!other.regions_.isEmpty()) {
            if (regionsBuilder_.isEmpty()) {
              regionsBuilder_.dispose();
              regionsBuilder_ = null;
              regions_ = other.regions_;
              bitField0_ = (bitField0_ & ~0x00000001);
              regionsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getRegionsFieldBuilder() : null;
            } else {
              regionsBuilder_.addAllMessages(other.regions_);
            }
          }
        }
        if (chokepointsBuilder_ == null) {
          if (!other.chokepoints_.isEmpty()) {
            if (chokepoints_.isEmpty()) {
              chokepoints_ = other.chokepoints_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureChokepointsIsMutable();
              chokepoints_.addAll(other.chokepoints_);
            }
            onChanged();
          }
        } else {
          if (!other.chokepoints_.isEmpty()) {
            if (chokepointsBuilder_.isEmpty()) {
              chokepointsBuilder_.dispose();
              chokepointsBuilder_ = null;
              chokepoints_ = other.chokepoints_;
              bitField0_ = (bitField0_ & ~0x00000002);
              chokepointsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getChokepointsFieldBuilder() : null;
            } else {
              chokepointsBuilder_.addAllMessages(other.chokepoints_);
            }
          }
        }
        if (baseLocationsBuilder_ == null) {
          if (!other.baseLocations_.isEmpty()) {
            if (baseLocations_.isEmpty()) {
              baseLocations_ = other.baseLocations_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureBaseLocationsIsMutable();
              baseLocations_.addAll(other.baseLocations_);
            }
            onChanged();
          }
        } else {
          if (!other.baseLocations_.isEmpty()) {
            if (baseLocationsBuilder_.isEmpty()) {
              baseLocationsBuilder_.dispose();
              baseLocationsBuilder_ = null;
              baseLocations_ = other.baseLocations_;
              bitField0_ = (bitField0_ & ~0x00000004);
              baseLocationsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getBaseLocationsFieldBuilder() : null;
            } else {
              baseLocationsBuilder_.addAllMessages(other.baseLocations_);
            }
          }
        }
        if (!other.startLocations_.isEmpty()) {
          if (startLocations_.isEmpty()) {
            startLocations_ = other.startLocations_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureStartLocationsIsMutable();
            startLocations_.addAll(other.startLocations_);
          }
          onChanged();
        }
        if (unwalkablePolygonBuilder_ == null) {
          if (!other.unwalkablePolygon_.isEmpty()) {
            if (unwalkablePolygon_.isEmpty()) {
              unwalkablePolygon_ = other.unwalkablePolygon_;
              bitField0_ = (bitField0_ & ~0x00000010);
            } else {
              ensureUnwalkablePolygonIsMutable();
              unwalkablePolygon_.addAll(other.unwalkablePolygon_);
            }
            onChanged();
          }
        } else {
          if (!other.unwalkablePolygon_.isEmpty()) {
            if (unwalkablePolygonBuilder_.isEmpty()) {
              unwalkablePolygonBuilder_.dispose();
              unwalkablePolygonBuilder_ = null;
              unwalkablePolygon_ = other.unwalkablePolygon_;
              bitField0_ = (bitField0_ & ~0x00000010);
              unwalkablePolygonBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getUnwalkablePolygonFieldBuilder() : null;
            } else {
              unwalkablePolygonBuilder_.addAllMessages(other.unwalkablePolygon_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        for (int i = 0; i < getRegionsCount(); i++) {
          if (!getRegions(i).isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getChokepointsCount(); i++) {
          if (!getChokepoints(i).isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getBaseLocationsCount(); i++) {
          if (!getBaseLocations(i).isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getUnwalkablePolygonCount(); i++) {
          if (!getUnwalkablePolygon(i).isInitialized()) {
            
            return false;
          }
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.bwapi.proxy.messages.TerrainMessages.StaticTerrainInfo) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // repeated .messages.Region regions = 1;
      private java.util.List<org.bwapi.proxy.messages.TerrainMessages.Region> regions_ =
        java.util.Collections.emptyList();
      private void ensureRegionsIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          regions_ = new java.util.ArrayList<org.bwapi.proxy.messages.TerrainMessages.Region>(regions_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.TerrainMessages.Region, org.bwapi.proxy.messages.TerrainMessages.Region.Builder, org.bwapi.proxy.messages.TerrainMessages.RegionOrBuilder> regionsBuilder_;

      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.TerrainMessages.Region> getRegionsList() {
        if (regionsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(regions_);
        } else {
          return regionsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public int getRegionsCount() {
        if (regionsBuilder_ == null) {
          return regions_.size();
        } else {
          return regionsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Region getRegions(int index) {
        if (regionsBuilder_ == null) {
          return regions_.get(index);
        } else {
          return regionsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public Builder setRegions(
          int index, org.bwapi.proxy.messages.TerrainMessages.Region value) {
        if (regionsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRegionsIsMutable();
          regions_.set(index, value);
          onChanged();
        } else {
          regionsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public Builder setRegions(
          int index, org.bwapi.proxy.messages.TerrainMessages.Region.Builder builderForValue) {
        if (regionsBuilder_ == null) {
          ensureRegionsIsMutable();
          regions_.set(index, builderForValue.build());
          onChanged();
        } else {
          regionsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public Builder addRegions(org.bwapi.proxy.messages.TerrainMessages.Region value) {
        if (regionsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRegionsIsMutable();
          regions_.add(value);
          onChanged();
        } else {
          regionsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public Builder addRegions(
          int index, org.bwapi.proxy.messages.TerrainMessages.Region value) {
        if (regionsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureRegionsIsMutable();
          regions_.add(index, value);
          onChanged();
        } else {
          regionsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public Builder addRegions(
          org.bwapi.proxy.messages.TerrainMessages.Region.Builder builderForValue) {
        if (regionsBuilder_ == null) {
          ensureRegionsIsMutable();
          regions_.add(builderForValue.build());
          onChanged();
        } else {
          regionsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public Builder addRegions(
          int index, org.bwapi.proxy.messages.TerrainMessages.Region.Builder builderForValue) {
        if (regionsBuilder_ == null) {
          ensureRegionsIsMutable();
          regions_.add(index, builderForValue.build());
          onChanged();
        } else {
          regionsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public Builder addAllRegions(
          java.lang.Iterable<? extends org.bwapi.proxy.messages.TerrainMessages.Region> values) {
        if (regionsBuilder_ == null) {
          ensureRegionsIsMutable();
          super.addAll(values, regions_);
          onChanged();
        } else {
          regionsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public Builder clearRegions() {
        if (regionsBuilder_ == null) {
          regions_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          regionsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public Builder removeRegions(int index) {
        if (regionsBuilder_ == null) {
          ensureRegionsIsMutable();
          regions_.remove(index);
          onChanged();
        } else {
          regionsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Region.Builder getRegionsBuilder(
          int index) {
        return getRegionsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.RegionOrBuilder getRegionsOrBuilder(
          int index) {
        if (regionsBuilder_ == null) {
          return regions_.get(index);  } else {
          return regionsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.RegionOrBuilder> 
           getRegionsOrBuilderList() {
        if (regionsBuilder_ != null) {
          return regionsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(regions_);
        }
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Region.Builder addRegionsBuilder() {
        return getRegionsFieldBuilder().addBuilder(
            org.bwapi.proxy.messages.TerrainMessages.Region.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Region.Builder addRegionsBuilder(
          int index) {
        return getRegionsFieldBuilder().addBuilder(
            index, org.bwapi.proxy.messages.TerrainMessages.Region.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.Region regions = 1;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.TerrainMessages.Region.Builder> 
           getRegionsBuilderList() {
        return getRegionsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.TerrainMessages.Region, org.bwapi.proxy.messages.TerrainMessages.Region.Builder, org.bwapi.proxy.messages.TerrainMessages.RegionOrBuilder> 
          getRegionsFieldBuilder() {
        if (regionsBuilder_ == null) {
          regionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.bwapi.proxy.messages.TerrainMessages.Region, org.bwapi.proxy.messages.TerrainMessages.Region.Builder, org.bwapi.proxy.messages.TerrainMessages.RegionOrBuilder>(
                  regions_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          regions_ = null;
        }
        return regionsBuilder_;
      }

      // repeated .messages.Chokepoint chokepoints = 2;
      private java.util.List<org.bwapi.proxy.messages.TerrainMessages.Chokepoint> chokepoints_ =
        java.util.Collections.emptyList();
      private void ensureChokepointsIsMutable() {
        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
          chokepoints_ = new java.util.ArrayList<org.bwapi.proxy.messages.TerrainMessages.Chokepoint>(chokepoints_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.TerrainMessages.Chokepoint, org.bwapi.proxy.messages.TerrainMessages.Chokepoint.Builder, org.bwapi.proxy.messages.TerrainMessages.ChokepointOrBuilder> chokepointsBuilder_;

      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.TerrainMessages.Chokepoint> getChokepointsList() {
        if (chokepointsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(chokepoints_);
        } else {
          return chokepointsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public int getChokepointsCount() {
        if (chokepointsBuilder_ == null) {
          return chokepoints_.size();
        } else {
          return chokepointsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Chokepoint getChokepoints(int index) {
        if (chokepointsBuilder_ == null) {
          return chokepoints_.get(index);
        } else {
          return chokepointsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public Builder setChokepoints(
          int index, org.bwapi.proxy.messages.TerrainMessages.Chokepoint value) {
        if (chokepointsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureChokepointsIsMutable();
          chokepoints_.set(index, value);
          onChanged();
        } else {
          chokepointsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public Builder setChokepoints(
          int index, org.bwapi.proxy.messages.TerrainMessages.Chokepoint.Builder builderForValue) {
        if (chokepointsBuilder_ == null) {
          ensureChokepointsIsMutable();
          chokepoints_.set(index, builderForValue.build());
          onChanged();
        } else {
          chokepointsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public Builder addChokepoints(org.bwapi.proxy.messages.TerrainMessages.Chokepoint value) {
        if (chokepointsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureChokepointsIsMutable();
          chokepoints_.add(value);
          onChanged();
        } else {
          chokepointsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public Builder addChokepoints(
          int index, org.bwapi.proxy.messages.TerrainMessages.Chokepoint value) {
        if (chokepointsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureChokepointsIsMutable();
          chokepoints_.add(index, value);
          onChanged();
        } else {
          chokepointsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public Builder addChokepoints(
          org.bwapi.proxy.messages.TerrainMessages.Chokepoint.Builder builderForValue) {
        if (chokepointsBuilder_ == null) {
          ensureChokepointsIsMutable();
          chokepoints_.add(builderForValue.build());
          onChanged();
        } else {
          chokepointsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public Builder addChokepoints(
          int index, org.bwapi.proxy.messages.TerrainMessages.Chokepoint.Builder builderForValue) {
        if (chokepointsBuilder_ == null) {
          ensureChokepointsIsMutable();
          chokepoints_.add(index, builderForValue.build());
          onChanged();
        } else {
          chokepointsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public Builder addAllChokepoints(
          java.lang.Iterable<? extends org.bwapi.proxy.messages.TerrainMessages.Chokepoint> values) {
        if (chokepointsBuilder_ == null) {
          ensureChokepointsIsMutable();
          super.addAll(values, chokepoints_);
          onChanged();
        } else {
          chokepointsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public Builder clearChokepoints() {
        if (chokepointsBuilder_ == null) {
          chokepoints_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          chokepointsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public Builder removeChokepoints(int index) {
        if (chokepointsBuilder_ == null) {
          ensureChokepointsIsMutable();
          chokepoints_.remove(index);
          onChanged();
        } else {
          chokepointsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Chokepoint.Builder getChokepointsBuilder(
          int index) {
        return getChokepointsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.ChokepointOrBuilder getChokepointsOrBuilder(
          int index) {
        if (chokepointsBuilder_ == null) {
          return chokepoints_.get(index);  } else {
          return chokepointsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.ChokepointOrBuilder> 
           getChokepointsOrBuilderList() {
        if (chokepointsBuilder_ != null) {
          return chokepointsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(chokepoints_);
        }
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Chokepoint.Builder addChokepointsBuilder() {
        return getChokepointsFieldBuilder().addBuilder(
            org.bwapi.proxy.messages.TerrainMessages.Chokepoint.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Chokepoint.Builder addChokepointsBuilder(
          int index) {
        return getChokepointsFieldBuilder().addBuilder(
            index, org.bwapi.proxy.messages.TerrainMessages.Chokepoint.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.Chokepoint chokepoints = 2;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.TerrainMessages.Chokepoint.Builder> 
           getChokepointsBuilderList() {
        return getChokepointsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.TerrainMessages.Chokepoint, org.bwapi.proxy.messages.TerrainMessages.Chokepoint.Builder, org.bwapi.proxy.messages.TerrainMessages.ChokepointOrBuilder> 
          getChokepointsFieldBuilder() {
        if (chokepointsBuilder_ == null) {
          chokepointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.bwapi.proxy.messages.TerrainMessages.Chokepoint, org.bwapi.proxy.messages.TerrainMessages.Chokepoint.Builder, org.bwapi.proxy.messages.TerrainMessages.ChokepointOrBuilder>(
                  chokepoints_,
                  ((bitField0_ & 0x00000002) == 0x00000002),
                  getParentForChildren(),
                  isClean());
          chokepoints_ = null;
        }
        return chokepointsBuilder_;
      }

      // repeated .messages.BaseLocation baseLocations = 3;
      private java.util.List<org.bwapi.proxy.messages.TerrainMessages.BaseLocation> baseLocations_ =
        java.util.Collections.emptyList();
      private void ensureBaseLocationsIsMutable() {
        if (!((bitField0_ & 0x00000004) == 0x00000004)) {
          baseLocations_ = new java.util.ArrayList<org.bwapi.proxy.messages.TerrainMessages.BaseLocation>(baseLocations_);
          bitField0_ |= 0x00000004;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.TerrainMessages.BaseLocation, org.bwapi.proxy.messages.TerrainMessages.BaseLocation.Builder, org.bwapi.proxy.messages.TerrainMessages.BaseLocationOrBuilder> baseLocationsBuilder_;

      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.TerrainMessages.BaseLocation> getBaseLocationsList() {
        if (baseLocationsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(baseLocations_);
        } else {
          return baseLocationsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public int getBaseLocationsCount() {
        if (baseLocationsBuilder_ == null) {
          return baseLocations_.size();
        } else {
          return baseLocationsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.BaseLocation getBaseLocations(int index) {
        if (baseLocationsBuilder_ == null) {
          return baseLocations_.get(index);
        } else {
          return baseLocationsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public Builder setBaseLocations(
          int index, org.bwapi.proxy.messages.TerrainMessages.BaseLocation value) {
        if (baseLocationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBaseLocationsIsMutable();
          baseLocations_.set(index, value);
          onChanged();
        } else {
          baseLocationsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public Builder setBaseLocations(
          int index, org.bwapi.proxy.messages.TerrainMessages.BaseLocation.Builder builderForValue) {
        if (baseLocationsBuilder_ == null) {
          ensureBaseLocationsIsMutable();
          baseLocations_.set(index, builderForValue.build());
          onChanged();
        } else {
          baseLocationsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public Builder addBaseLocations(org.bwapi.proxy.messages.TerrainMessages.BaseLocation value) {
        if (baseLocationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBaseLocationsIsMutable();
          baseLocations_.add(value);
          onChanged();
        } else {
          baseLocationsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public Builder addBaseLocations(
          int index, org.bwapi.proxy.messages.TerrainMessages.BaseLocation value) {
        if (baseLocationsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBaseLocationsIsMutable();
          baseLocations_.add(index, value);
          onChanged();
        } else {
          baseLocationsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public Builder addBaseLocations(
          org.bwapi.proxy.messages.TerrainMessages.BaseLocation.Builder builderForValue) {
        if (baseLocationsBuilder_ == null) {
          ensureBaseLocationsIsMutable();
          baseLocations_.add(builderForValue.build());
          onChanged();
        } else {
          baseLocationsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public Builder addBaseLocations(
          int index, org.bwapi.proxy.messages.TerrainMessages.BaseLocation.Builder builderForValue) {
        if (baseLocationsBuilder_ == null) {
          ensureBaseLocationsIsMutable();
          baseLocations_.add(index, builderForValue.build());
          onChanged();
        } else {
          baseLocationsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public Builder addAllBaseLocations(
          java.lang.Iterable<? extends org.bwapi.proxy.messages.TerrainMessages.BaseLocation> values) {
        if (baseLocationsBuilder_ == null) {
          ensureBaseLocationsIsMutable();
          super.addAll(values, baseLocations_);
          onChanged();
        } else {
          baseLocationsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public Builder clearBaseLocations() {
        if (baseLocationsBuilder_ == null) {
          baseLocations_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          baseLocationsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public Builder removeBaseLocations(int index) {
        if (baseLocationsBuilder_ == null) {
          ensureBaseLocationsIsMutable();
          baseLocations_.remove(index);
          onChanged();
        } else {
          baseLocationsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.BaseLocation.Builder getBaseLocationsBuilder(
          int index) {
        return getBaseLocationsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.BaseLocationOrBuilder getBaseLocationsOrBuilder(
          int index) {
        if (baseLocationsBuilder_ == null) {
          return baseLocations_.get(index);  } else {
          return baseLocationsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.BaseLocationOrBuilder> 
           getBaseLocationsOrBuilderList() {
        if (baseLocationsBuilder_ != null) {
          return baseLocationsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(baseLocations_);
        }
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.BaseLocation.Builder addBaseLocationsBuilder() {
        return getBaseLocationsFieldBuilder().addBuilder(
            org.bwapi.proxy.messages.TerrainMessages.BaseLocation.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.BaseLocation.Builder addBaseLocationsBuilder(
          int index) {
        return getBaseLocationsFieldBuilder().addBuilder(
            index, org.bwapi.proxy.messages.TerrainMessages.BaseLocation.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.BaseLocation baseLocations = 3;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.TerrainMessages.BaseLocation.Builder> 
           getBaseLocationsBuilderList() {
        return getBaseLocationsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.TerrainMessages.BaseLocation, org.bwapi.proxy.messages.TerrainMessages.BaseLocation.Builder, org.bwapi.proxy.messages.TerrainMessages.BaseLocationOrBuilder> 
          getBaseLocationsFieldBuilder() {
        if (baseLocationsBuilder_ == null) {
          baseLocationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.bwapi.proxy.messages.TerrainMessages.BaseLocation, org.bwapi.proxy.messages.TerrainMessages.BaseLocation.Builder, org.bwapi.proxy.messages.TerrainMessages.BaseLocationOrBuilder>(
                  baseLocations_,
                  ((bitField0_ & 0x00000004) == 0x00000004),
                  getParentForChildren(),
                  isClean());
          baseLocations_ = null;
        }
        return baseLocationsBuilder_;
      }

      // repeated int32 startLocations = 4;
      private java.util.List<java.lang.Integer> startLocations_ = java.util.Collections.emptyList();
      private void ensureStartLocationsIsMutable() {
        if (!((bitField0_ & 0x00000008) == 0x00000008)) {
          startLocations_ = new java.util.ArrayList<java.lang.Integer>(startLocations_);
          bitField0_ |= 0x00000008;
         }
      }
      /**
       * <code>repeated int32 startLocations = 4;</code>
       */
      public java.util.List<java.lang.Integer>
          getStartLocationsList() {
        return java.util.Collections.unmodifiableList(startLocations_);
      }
      /**
       * <code>repeated int32 startLocations = 4;</code>
       */
      public int getStartLocationsCount() {
        return startLocations_.size();
      }
      /**
       * <code>repeated int32 startLocations = 4;</code>
       */
      public int getStartLocations(int index) {
        return startLocations_.get(index);
      }
      /**
       * <code>repeated int32 startLocations = 4;</code>
       */
      public Builder setStartLocations(
          int index, int value) {
        ensureStartLocationsIsMutable();
        startLocations_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 startLocations = 4;</code>
       */
      public Builder addStartLocations(int value) {
        ensureStartLocationsIsMutable();
        startLocations_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 startLocations = 4;</code>
       */
      public Builder addAllStartLocations(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureStartLocationsIsMutable();
        super.addAll(values, startLocations_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 startLocations = 4;</code>
       */
      public Builder clearStartLocations() {
        startLocations_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
        return this;
      }

      // repeated .messages.Polygon unwalkablePolygon = 5;
      private java.util.List<org.bwapi.proxy.messages.TerrainMessages.Polygon> unwalkablePolygon_ =
        java.util.Collections.emptyList();
      private void ensureUnwalkablePolygonIsMutable() {
        if (!((bitField0_ & 0x00000010) == 0x00000010)) {
          unwalkablePolygon_ = new java.util.ArrayList<org.bwapi.proxy.messages.TerrainMessages.Polygon>(unwalkablePolygon_);
          bitField0_ |= 0x00000010;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.TerrainMessages.Polygon, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder, org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder> unwalkablePolygonBuilder_;

      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.TerrainMessages.Polygon> getUnwalkablePolygonList() {
        if (unwalkablePolygonBuilder_ == null) {
          return java.util.Collections.unmodifiableList(unwalkablePolygon_);
        } else {
          return unwalkablePolygonBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public int getUnwalkablePolygonCount() {
        if (unwalkablePolygonBuilder_ == null) {
          return unwalkablePolygon_.size();
        } else {
          return unwalkablePolygonBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Polygon getUnwalkablePolygon(int index) {
        if (unwalkablePolygonBuilder_ == null) {
          return unwalkablePolygon_.get(index);
        } else {
          return unwalkablePolygonBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public Builder setUnwalkablePolygon(
          int index, org.bwapi.proxy.messages.TerrainMessages.Polygon value) {
        if (unwalkablePolygonBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureUnwalkablePolygonIsMutable();
          unwalkablePolygon_.set(index, value);
          onChanged();
        } else {
          unwalkablePolygonBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public Builder setUnwalkablePolygon(
          int index, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder builderForValue) {
        if (unwalkablePolygonBuilder_ == null) {
          ensureUnwalkablePolygonIsMutable();
          unwalkablePolygon_.set(index, builderForValue.build());
          onChanged();
        } else {
          unwalkablePolygonBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public Builder addUnwalkablePolygon(org.bwapi.proxy.messages.TerrainMessages.Polygon value) {
        if (unwalkablePolygonBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureUnwalkablePolygonIsMutable();
          unwalkablePolygon_.add(value);
          onChanged();
        } else {
          unwalkablePolygonBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public Builder addUnwalkablePolygon(
          int index, org.bwapi.proxy.messages.TerrainMessages.Polygon value) {
        if (unwalkablePolygonBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureUnwalkablePolygonIsMutable();
          unwalkablePolygon_.add(index, value);
          onChanged();
        } else {
          unwalkablePolygonBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public Builder addUnwalkablePolygon(
          org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder builderForValue) {
        if (unwalkablePolygonBuilder_ == null) {
          ensureUnwalkablePolygonIsMutable();
          unwalkablePolygon_.add(builderForValue.build());
          onChanged();
        } else {
          unwalkablePolygonBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public Builder addUnwalkablePolygon(
          int index, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder builderForValue) {
        if (unwalkablePolygonBuilder_ == null) {
          ensureUnwalkablePolygonIsMutable();
          unwalkablePolygon_.add(index, builderForValue.build());
          onChanged();
        } else {
          unwalkablePolygonBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public Builder addAllUnwalkablePolygon(
          java.lang.Iterable<? extends org.bwapi.proxy.messages.TerrainMessages.Polygon> values) {
        if (unwalkablePolygonBuilder_ == null) {
          ensureUnwalkablePolygonIsMutable();
          super.addAll(values, unwalkablePolygon_);
          onChanged();
        } else {
          unwalkablePolygonBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public Builder clearUnwalkablePolygon() {
        if (unwalkablePolygonBuilder_ == null) {
          unwalkablePolygon_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000010);
          onChanged();
        } else {
          unwalkablePolygonBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public Builder removeUnwalkablePolygon(int index) {
        if (unwalkablePolygonBuilder_ == null) {
          ensureUnwalkablePolygonIsMutable();
          unwalkablePolygon_.remove(index);
          onChanged();
        } else {
          unwalkablePolygonBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder getUnwalkablePolygonBuilder(
          int index) {
        return getUnwalkablePolygonFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder getUnwalkablePolygonOrBuilder(
          int index) {
        if (unwalkablePolygonBuilder_ == null) {
          return unwalkablePolygon_.get(index);  } else {
          return unwalkablePolygonBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder> 
           getUnwalkablePolygonOrBuilderList() {
        if (unwalkablePolygonBuilder_ != null) {
          return unwalkablePolygonBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(unwalkablePolygon_);
        }
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder addUnwalkablePolygonBuilder() {
        return getUnwalkablePolygonFieldBuilder().addBuilder(
            org.bwapi.proxy.messages.TerrainMessages.Polygon.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder addUnwalkablePolygonBuilder(
          int index) {
        return getUnwalkablePolygonFieldBuilder().addBuilder(
            index, org.bwapi.proxy.messages.TerrainMessages.Polygon.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.Polygon unwalkablePolygon = 5;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder> 
           getUnwalkablePolygonBuilderList() {
        return getUnwalkablePolygonFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.TerrainMessages.Polygon, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder, org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder> 
          getUnwalkablePolygonFieldBuilder() {
        if (unwalkablePolygonBuilder_ == null) {
          unwalkablePolygonBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.bwapi.proxy.messages.TerrainMessages.Polygon, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder, org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder>(
                  unwalkablePolygon_,
                  ((bitField0_ & 0x00000010) == 0x00000010),
                  getParentForChildren(),
                  isClean());
          unwalkablePolygon_ = null;
        }
        return unwalkablePolygonBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:messages.StaticTerrainInfo)
    }

    static {
      defaultInstance = new StaticTerrainInfo(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:messages.StaticTerrainInfo)
  }

  public interface BaseLocationOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // required int32 id = 12;
    /**
     * <code>required int32 id = 12;</code>
     */
    boolean hasId();
    /**
     * <code>required int32 id = 12;</code>
     */
    int getId();

    // required .messages.Position position = 1;
    /**
     * <code>required .messages.Position position = 1;</code>
     */
    boolean hasPosition();
    /**
     * <code>required .messages.Position position = 1;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.Position getPosition();
    /**
     * <code>required .messages.Position position = 1;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getPositionOrBuilder();

    // required .messages.TilePosition tilePosition = 13;
    /**
     * <code>required .messages.TilePosition tilePosition = 13;</code>
     */
    boolean hasTilePosition();
    /**
     * <code>required .messages.TilePosition tilePosition = 13;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.TilePosition getTilePosition();
    /**
     * <code>required .messages.TilePosition tilePosition = 13;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.TilePositionOrBuilder getTilePositionOrBuilder();

    // required int32 region = 2;
    /**
     * <code>required int32 region = 2;</code>
     */
    boolean hasRegion();
    /**
     * <code>required int32 region = 2;</code>
     */
    int getRegion();

    // required int32 numMinerals = 3;
    /**
     * <code>required int32 numMinerals = 3;</code>
     */
    boolean hasNumMinerals();
    /**
     * <code>required int32 numMinerals = 3;</code>
     */
    int getNumMinerals();

    // required int32 numGas = 4;
    /**
     * <code>required int32 numGas = 4;</code>
     */
    boolean hasNumGas();
    /**
     * <code>required int32 numGas = 4;</code>
     */
    int getNumGas();

    // repeated .messages.UnitId minerals = 5;
    /**
     * <code>repeated .messages.UnitId minerals = 5;</code>
     */
    java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> 
        getMineralsList();
    /**
     * <code>repeated .messages.UnitId minerals = 5;</code>
     */
    org.bwapi.proxy.messages.GameMessages.UnitId getMinerals(int index);
    /**
     * <code>repeated .messages.UnitId minerals = 5;</code>
     */
    int getMineralsCount();
    /**
     * <code>repeated .messages.UnitId minerals = 5;</code>
     */
    java.util.List<? extends org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> 
        getMineralsOrBuilderList();
    /**
     * <code>repeated .messages.UnitId minerals = 5;</code>
     */
    org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder getMineralsOrBuilder(
        int index);

    // repeated .messages.UnitId staticMinerals = 6;
    /**
     * <code>repeated .messages.UnitId staticMinerals = 6;</code>
     */
    java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> 
        getStaticMineralsList();
    /**
     * <code>repeated .messages.UnitId staticMinerals = 6;</code>
     */
    org.bwapi.proxy.messages.GameMessages.UnitId getStaticMinerals(int index);
    /**
     * <code>repeated .messages.UnitId staticMinerals = 6;</code>
     */
    int getStaticMineralsCount();
    /**
     * <code>repeated .messages.UnitId staticMinerals = 6;</code>
     */
    java.util.List<? extends org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> 
        getStaticMineralsOrBuilderList();
    /**
     * <code>repeated .messages.UnitId staticMinerals = 6;</code>
     */
    org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder getStaticMineralsOrBuilder(
        int index);

    // repeated .messages.UnitId geysers = 7;
    /**
     * <code>repeated .messages.UnitId geysers = 7;</code>
     */
    java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> 
        getGeysersList();
    /**
     * <code>repeated .messages.UnitId geysers = 7;</code>
     */
    org.bwapi.proxy.messages.GameMessages.UnitId getGeysers(int index);
    /**
     * <code>repeated .messages.UnitId geysers = 7;</code>
     */
    int getGeysersCount();
    /**
     * <code>repeated .messages.UnitId geysers = 7;</code>
     */
    java.util.List<? extends org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> 
        getGeysersOrBuilderList();
    /**
     * <code>repeated .messages.UnitId geysers = 7;</code>
     */
    org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder getGeysersOrBuilder(
        int index);

    // required bool island = 8;
    /**
     * <code>required bool island = 8;</code>
     */
    boolean hasIsland();
    /**
     * <code>required bool island = 8;</code>
     */
    boolean getIsland();

    // required bool mineralOnly = 10;
    /**
     * <code>required bool mineralOnly = 10;</code>
     */
    boolean hasMineralOnly();
    /**
     * <code>required bool mineralOnly = 10;</code>
     */
    boolean getMineralOnly();

    // required bool startLocation = 11;
    /**
     * <code>required bool startLocation = 11;</code>
     */
    boolean hasStartLocation();
    /**
     * <code>required bool startLocation = 11;</code>
     */
    boolean getStartLocation();
  }
  /**
   * Protobuf type {@code messages.BaseLocation}
   */
  public static final class BaseLocation extends
      com.google.protobuf.GeneratedMessage
      implements BaseLocationOrBuilder {
    // Use BaseLocation.newBuilder() to construct.
    private BaseLocation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private BaseLocation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final BaseLocation defaultInstance;
    public static BaseLocation getDefaultInstance() {
      return defaultInstance;
    }

    public BaseLocation getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private BaseLocation(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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: {
              org.bwapi.proxy.messages.BasicTypes.Position.Builder subBuilder = null;
              if (((bitField0_ & 0x00000002) == 0x00000002)) {
                subBuilder = position_.toBuilder();
              }
              position_ = input.readMessage(org.bwapi.proxy.messages.BasicTypes.Position.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(position_);
                position_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000002;
              break;
            }
            case 16: {
              bitField0_ |= 0x00000008;
              region_ = input.readInt32();
              break;
            }
            case 24: {
              bitField0_ |= 0x00000010;
              numMinerals_ = input.readInt32();
              break;
            }
            case 32: {
              bitField0_ |= 0x00000020;
              numGas_ = input.readInt32();
              break;
            }
            case 42: {
              if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
                minerals_ = new java.util.ArrayList<org.bwapi.proxy.messages.GameMessages.UnitId>();
                mutable_bitField0_ |= 0x00000040;
              }
              minerals_.add(input.readMessage(org.bwapi.proxy.messages.GameMessages.UnitId.PARSER, extensionRegistry));
              break;
            }
            case 50: {
              if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
                staticMinerals_ = new java.util.ArrayList<org.bwapi.proxy.messages.GameMessages.UnitId>();
                mutable_bitField0_ |= 0x00000080;
              }
              staticMinerals_.add(input.readMessage(org.bwapi.proxy.messages.GameMessages.UnitId.PARSER, extensionRegistry));
              break;
            }
            case 58: {
              if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
                geysers_ = new java.util.ArrayList<org.bwapi.proxy.messages.GameMessages.UnitId>();
                mutable_bitField0_ |= 0x00000100;
              }
              geysers_.add(input.readMessage(org.bwapi.proxy.messages.GameMessages.UnitId.PARSER, extensionRegistry));
              break;
            }
            case 64: {
              bitField0_ |= 0x00000040;
              island_ = input.readBool();
              break;
            }
            case 80: {
              bitField0_ |= 0x00000080;
              mineralOnly_ = input.readBool();
              break;
            }
            case 88: {
              bitField0_ |= 0x00000100;
              startLocation_ = input.readBool();
              break;
            }
            case 96: {
              bitField0_ |= 0x00000001;
              id_ = input.readInt32();
              break;
            }
            case 106: {
              org.bwapi.proxy.messages.BasicTypes.TilePosition.Builder subBuilder = null;
              if (((bitField0_ & 0x00000004) == 0x00000004)) {
                subBuilder = tilePosition_.toBuilder();
              }
              tilePosition_ = input.readMessage(org.bwapi.proxy.messages.BasicTypes.TilePosition.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(tilePosition_);
                tilePosition_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000004;
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
          minerals_ = java.util.Collections.unmodifiableList(minerals_);
        }
        if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
          staticMinerals_ = java.util.Collections.unmodifiableList(staticMinerals_);
        }
        if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
          geysers_ = java.util.Collections.unmodifiableList(geysers_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_BaseLocation_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_BaseLocation_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.bwapi.proxy.messages.TerrainMessages.BaseLocation.class, org.bwapi.proxy.messages.TerrainMessages.BaseLocation.Builder.class);
    }

    public static com.google.protobuf.Parser<BaseLocation> PARSER =
        new com.google.protobuf.AbstractParser<BaseLocation>() {
      public BaseLocation parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new BaseLocation(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // required int32 id = 12;
    public static final int ID_FIELD_NUMBER = 12;
    private int id_;
    /**
     * <code>required int32 id = 12;</code>
     */
    public boolean hasId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * <code>required int32 id = 12;</code>
     */
    public int getId() {
      return id_;
    }

    // required .messages.Position position = 1;
    public static final int POSITION_FIELD_NUMBER = 1;
    private org.bwapi.proxy.messages.BasicTypes.Position position_;
    /**
     * <code>required .messages.Position position = 1;</code>
     */
    public boolean hasPosition() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * <code>required .messages.Position position = 1;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.Position getPosition() {
      return position_;
    }
    /**
     * <code>required .messages.Position position = 1;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getPositionOrBuilder() {
      return position_;
    }

    // required .messages.TilePosition tilePosition = 13;
    public static final int TILEPOSITION_FIELD_NUMBER = 13;
    private org.bwapi.proxy.messages.BasicTypes.TilePosition tilePosition_;
    /**
     * <code>required .messages.TilePosition tilePosition = 13;</code>
     */
    public boolean hasTilePosition() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * <code>required .messages.TilePosition tilePosition = 13;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.TilePosition getTilePosition() {
      return tilePosition_;
    }
    /**
     * <code>required .messages.TilePosition tilePosition = 13;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.TilePositionOrBuilder getTilePositionOrBuilder() {
      return tilePosition_;
    }

    // required int32 region = 2;
    public static final int REGION_FIELD_NUMBER = 2;
    private int region_;
    /**
     * <code>required int32 region = 2;</code>
     */
    public boolean hasRegion() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * <code>required int32 region = 2;</code>
     */
    public int getRegion() {
      return region_;
    }

    // required int32 numMinerals = 3;
    public static final int NUMMINERALS_FIELD_NUMBER = 3;
    private int numMinerals_;
    /**
     * <code>required int32 numMinerals = 3;</code>
     */
    public boolean hasNumMinerals() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    /**
     * <code>required int32 numMinerals = 3;</code>
     */
    public int getNumMinerals() {
      return numMinerals_;
    }

    // required int32 numGas = 4;
    public static final int NUMGAS_FIELD_NUMBER = 4;
    private int numGas_;
    /**
     * <code>required int32 numGas = 4;</code>
     */
    public boolean hasNumGas() {
      return ((bitField0_ & 0x00000020) == 0x00000020);
    }
    /**
     * <code>required int32 numGas = 4;</code>
     */
    public int getNumGas() {
      return numGas_;
    }

    // repeated .messages.UnitId minerals = 5;
    public static final int MINERALS_FIELD_NUMBER = 5;
    private java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> minerals_;
    /**
     * <code>repeated .messages.UnitId minerals = 5;</code>
     */
    public java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> getMineralsList() {
      return minerals_;
    }
    /**
     * <code>repeated .messages.UnitId minerals = 5;</code>
     */
    public java.util.List<? extends org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> 
        getMineralsOrBuilderList() {
      return minerals_;
    }
    /**
     * <code>repeated .messages.UnitId minerals = 5;</code>
     */
    public int getMineralsCount() {
      return minerals_.size();
    }
    /**
     * <code>repeated .messages.UnitId minerals = 5;</code>
     */
    public org.bwapi.proxy.messages.GameMessages.UnitId getMinerals(int index) {
      return minerals_.get(index);
    }
    /**
     * <code>repeated .messages.UnitId minerals = 5;</code>
     */
    public org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder getMineralsOrBuilder(
        int index) {
      return minerals_.get(index);
    }

    // repeated .messages.UnitId staticMinerals = 6;
    public static final int STATICMINERALS_FIELD_NUMBER = 6;
    private java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> staticMinerals_;
    /**
     * <code>repeated .messages.UnitId staticMinerals = 6;</code>
     */
    public java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> getStaticMineralsList() {
      return staticMinerals_;
    }
    /**
     * <code>repeated .messages.UnitId staticMinerals = 6;</code>
     */
    public java.util.List<? extends org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> 
        getStaticMineralsOrBuilderList() {
      return staticMinerals_;
    }
    /**
     * <code>repeated .messages.UnitId staticMinerals = 6;</code>
     */
    public int getStaticMineralsCount() {
      return staticMinerals_.size();
    }
    /**
     * <code>repeated .messages.UnitId staticMinerals = 6;</code>
     */
    public org.bwapi.proxy.messages.GameMessages.UnitId getStaticMinerals(int index) {
      return staticMinerals_.get(index);
    }
    /**
     * <code>repeated .messages.UnitId staticMinerals = 6;</code>
     */
    public org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder getStaticMineralsOrBuilder(
        int index) {
      return staticMinerals_.get(index);
    }

    // repeated .messages.UnitId geysers = 7;
    public static final int GEYSERS_FIELD_NUMBER = 7;
    private java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> geysers_;
    /**
     * <code>repeated .messages.UnitId geysers = 7;</code>
     */
    public java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> getGeysersList() {
      return geysers_;
    }
    /**
     * <code>repeated .messages.UnitId geysers = 7;</code>
     */
    public java.util.List<? extends org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> 
        getGeysersOrBuilderList() {
      return geysers_;
    }
    /**
     * <code>repeated .messages.UnitId geysers = 7;</code>
     */
    public int getGeysersCount() {
      return geysers_.size();
    }
    /**
     * <code>repeated .messages.UnitId geysers = 7;</code>
     */
    public org.bwapi.proxy.messages.GameMessages.UnitId getGeysers(int index) {
      return geysers_.get(index);
    }
    /**
     * <code>repeated .messages.UnitId geysers = 7;</code>
     */
    public org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder getGeysersOrBuilder(
        int index) {
      return geysers_.get(index);
    }

    // required bool island = 8;
    public static final int ISLAND_FIELD_NUMBER = 8;
    private boolean island_;
    /**
     * <code>required bool island = 8;</code>
     */
    public boolean hasIsland() {
      return ((bitField0_ & 0x00000040) == 0x00000040);
    }
    /**
     * <code>required bool island = 8;</code>
     */
    public boolean getIsland() {
      return island_;
    }

    // required bool mineralOnly = 10;
    public static final int MINERALONLY_FIELD_NUMBER = 10;
    private boolean mineralOnly_;
    /**
     * <code>required bool mineralOnly = 10;</code>
     */
    public boolean hasMineralOnly() {
      return ((bitField0_ & 0x00000080) == 0x00000080);
    }
    /**
     * <code>required bool mineralOnly = 10;</code>
     */
    public boolean getMineralOnly() {
      return mineralOnly_;
    }

    // required bool startLocation = 11;
    public static final int STARTLOCATION_FIELD_NUMBER = 11;
    private boolean startLocation_;
    /**
     * <code>required bool startLocation = 11;</code>
     */
    public boolean hasStartLocation() {
      return ((bitField0_ & 0x00000100) == 0x00000100);
    }
    /**
     * <code>required bool startLocation = 11;</code>
     */
    public boolean getStartLocation() {
      return startLocation_;
    }

    private void initFields() {
      id_ = 0;
      position_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
      tilePosition_ = org.bwapi.proxy.messages.BasicTypes.TilePosition.getDefaultInstance();
      region_ = 0;
      numMinerals_ = 0;
      numGas_ = 0;
      minerals_ = java.util.Collections.emptyList();
      staticMinerals_ = java.util.Collections.emptyList();
      geysers_ = java.util.Collections.emptyList();
      island_ = false;
      mineralOnly_ = false;
      startLocation_ = false;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (!hasId()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasPosition()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasTilePosition()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRegion()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasNumMinerals()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasNumGas()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasIsland()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasMineralOnly()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasStartLocation()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getPosition().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getTilePosition().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      for (int i = 0; i < getMineralsCount(); i++) {
        if (!getMinerals(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getStaticMineralsCount(); i++) {
        if (!getStaticMinerals(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      for (int i = 0; i < getGeysersCount(); i++) {
        if (!getGeysers(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeMessage(1, position_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeInt32(2, region_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeInt32(3, numMinerals_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeInt32(4, numGas_);
      }
      for (int i = 0; i < minerals_.size(); i++) {
        output.writeMessage(5, minerals_.get(i));
      }
      for (int i = 0; i < staticMinerals_.size(); i++) {
        output.writeMessage(6, staticMinerals_.get(i));
      }
      for (int i = 0; i < geysers_.size(); i++) {
        output.writeMessage(7, geysers_.get(i));
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeBool(8, island_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        output.writeBool(10, mineralOnly_);
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        output.writeBool(11, startLocation_);
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt32(12, id_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeMessage(13, tilePosition_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, position_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, region_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(3, numMinerals_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(4, numGas_);
      }
      for (int i = 0; i < minerals_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, minerals_.get(i));
      }
      for (int i = 0; i < staticMinerals_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, staticMinerals_.get(i));
      }
      for (int i = 0; i < geysers_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, geysers_.get(i));
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(8, island_);
      }
      if (((bitField0_ & 0x00000080) == 0x00000080)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(10, mineralOnly_);
      }
      if (((bitField0_ & 0x00000100) == 0x00000100)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(11, startLocation_);
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(12, id_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(13, tilePosition_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.bwapi.proxy.messages.TerrainMessages.BaseLocation parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.BaseLocation parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.BaseLocation parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.BaseLocation parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.BaseLocation parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.BaseLocation parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.BaseLocation parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.BaseLocation parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.BaseLocation parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.BaseLocation parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.bwapi.proxy.messages.TerrainMessages.BaseLocation prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code messages.BaseLocation}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements org.bwapi.proxy.messages.TerrainMessages.BaseLocationOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_BaseLocation_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_BaseLocation_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.bwapi.proxy.messages.TerrainMessages.BaseLocation.class, org.bwapi.proxy.messages.TerrainMessages.BaseLocation.Builder.class);
      }

      // Construct using org.bwapi.proxy.messages.TerrainMessages.BaseLocation.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getPositionFieldBuilder();
          getTilePositionFieldBuilder();
          getMineralsFieldBuilder();
          getStaticMineralsFieldBuilder();
          getGeysersFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        id_ = 0;
        bitField0_ = (bitField0_ & ~0x00000001);
        if (positionBuilder_ == null) {
          position_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
        } else {
          positionBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        if (tilePositionBuilder_ == null) {
          tilePosition_ = org.bwapi.proxy.messages.BasicTypes.TilePosition.getDefaultInstance();
        } else {
          tilePositionBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        region_ = 0;
        bitField0_ = (bitField0_ & ~0x00000008);
        numMinerals_ = 0;
        bitField0_ = (bitField0_ & ~0x00000010);
        numGas_ = 0;
        bitField0_ = (bitField0_ & ~0x00000020);
        if (mineralsBuilder_ == null) {
          minerals_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000040);
        } else {
          mineralsBuilder_.clear();
        }
        if (staticMineralsBuilder_ == null) {
          staticMinerals_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000080);
        } else {
          staticMineralsBuilder_.clear();
        }
        if (geysersBuilder_ == null) {
          geysers_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000100);
        } else {
          geysersBuilder_.clear();
        }
        island_ = false;
        bitField0_ = (bitField0_ & ~0x00000200);
        mineralOnly_ = false;
        bitField0_ = (bitField0_ & ~0x00000400);
        startLocation_ = false;
        bitField0_ = (bitField0_ & ~0x00000800);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_BaseLocation_descriptor;
      }

      public org.bwapi.proxy.messages.TerrainMessages.BaseLocation getDefaultInstanceForType() {
        return org.bwapi.proxy.messages.TerrainMessages.BaseLocation.getDefaultInstance();
      }

      public org.bwapi.proxy.messages.TerrainMessages.BaseLocation build() {
        org.bwapi.proxy.messages.TerrainMessages.BaseLocation result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.bwapi.proxy.messages.TerrainMessages.BaseLocation buildPartial() {
        org.bwapi.proxy.messages.TerrainMessages.BaseLocation result = new org.bwapi.proxy.messages.TerrainMessages.BaseLocation(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.id_ = id_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        if (positionBuilder_ == null) {
          result.position_ = position_;
        } else {
          result.position_ = positionBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        if (tilePositionBuilder_ == null) {
          result.tilePosition_ = tilePosition_;
        } else {
          result.tilePosition_ = tilePositionBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        result.region_ = region_;
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000010;
        }
        result.numMinerals_ = numMinerals_;
        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
          to_bitField0_ |= 0x00000020;
        }
        result.numGas_ = numGas_;
        if (mineralsBuilder_ == null) {
          if (((bitField0_ & 0x00000040) == 0x00000040)) {
            minerals_ = java.util.Collections.unmodifiableList(minerals_);
            bitField0_ = (bitField0_ & ~0x00000040);
          }
          result.minerals_ = minerals_;
        } else {
          result.minerals_ = mineralsBuilder_.build();
        }
        if (staticMineralsBuilder_ == null) {
          if (((bitField0_ & 0x00000080) == 0x00000080)) {
            staticMinerals_ = java.util.Collections.unmodifiableList(staticMinerals_);
            bitField0_ = (bitField0_ & ~0x00000080);
          }
          result.staticMinerals_ = staticMinerals_;
        } else {
          result.staticMinerals_ = staticMineralsBuilder_.build();
        }
        if (geysersBuilder_ == null) {
          if (((bitField0_ & 0x00000100) == 0x00000100)) {
            geysers_ = java.util.Collections.unmodifiableList(geysers_);
            bitField0_ = (bitField0_ & ~0x00000100);
          }
          result.geysers_ = geysers_;
        } else {
          result.geysers_ = geysersBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
          to_bitField0_ |= 0x00000040;
        }
        result.island_ = island_;
        if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
          to_bitField0_ |= 0x00000080;
        }
        result.mineralOnly_ = mineralOnly_;
        if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
          to_bitField0_ |= 0x00000100;
        }
        result.startLocation_ = startLocation_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.bwapi.proxy.messages.TerrainMessages.BaseLocation) {
          return mergeFrom((org.bwapi.proxy.messages.TerrainMessages.BaseLocation)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.bwapi.proxy.messages.TerrainMessages.BaseLocation other) {
        if (other == org.bwapi.proxy.messages.TerrainMessages.BaseLocation.getDefaultInstance()) return this;
        if (other.hasId()) {
          setId(other.getId());
        }
        if (other.hasPosition()) {
          mergePosition(other.getPosition());
        }
        if (other.hasTilePosition()) {
          mergeTilePosition(other.getTilePosition());
        }
        if (other.hasRegion()) {
          setRegion(other.getRegion());
        }
        if (other.hasNumMinerals()) {
          setNumMinerals(other.getNumMinerals());
        }
        if (other.hasNumGas()) {
          setNumGas(other.getNumGas());
        }
        if (mineralsBuilder_ == null) {
          if (!other.minerals_.isEmpty()) {
            if (minerals_.isEmpty()) {
              minerals_ = other.minerals_;
              bitField0_ = (bitField0_ & ~0x00000040);
            } else {
              ensureMineralsIsMutable();
              minerals_.addAll(other.minerals_);
            }
            onChanged();
          }
        } else {
          if (!other.minerals_.isEmpty()) {
            if (mineralsBuilder_.isEmpty()) {
              mineralsBuilder_.dispose();
              mineralsBuilder_ = null;
              minerals_ = other.minerals_;
              bitField0_ = (bitField0_ & ~0x00000040);
              mineralsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getMineralsFieldBuilder() : null;
            } else {
              mineralsBuilder_.addAllMessages(other.minerals_);
            }
          }
        }
        if (staticMineralsBuilder_ == null) {
          if (!other.staticMinerals_.isEmpty()) {
            if (staticMinerals_.isEmpty()) {
              staticMinerals_ = other.staticMinerals_;
              bitField0_ = (bitField0_ & ~0x00000080);
            } else {
              ensureStaticMineralsIsMutable();
              staticMinerals_.addAll(other.staticMinerals_);
            }
            onChanged();
          }
        } else {
          if (!other.staticMinerals_.isEmpty()) {
            if (staticMineralsBuilder_.isEmpty()) {
              staticMineralsBuilder_.dispose();
              staticMineralsBuilder_ = null;
              staticMinerals_ = other.staticMinerals_;
              bitField0_ = (bitField0_ & ~0x00000080);
              staticMineralsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getStaticMineralsFieldBuilder() : null;
            } else {
              staticMineralsBuilder_.addAllMessages(other.staticMinerals_);
            }
          }
        }
        if (geysersBuilder_ == null) {
          if (!other.geysers_.isEmpty()) {
            if (geysers_.isEmpty()) {
              geysers_ = other.geysers_;
              bitField0_ = (bitField0_ & ~0x00000100);
            } else {
              ensureGeysersIsMutable();
              geysers_.addAll(other.geysers_);
            }
            onChanged();
          }
        } else {
          if (!other.geysers_.isEmpty()) {
            if (geysersBuilder_.isEmpty()) {
              geysersBuilder_.dispose();
              geysersBuilder_ = null;
              geysers_ = other.geysers_;
              bitField0_ = (bitField0_ & ~0x00000100);
              geysersBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getGeysersFieldBuilder() : null;
            } else {
              geysersBuilder_.addAllMessages(other.geysers_);
            }
          }
        }
        if (other.hasIsland()) {
          setIsland(other.getIsland());
        }
        if (other.hasMineralOnly()) {
          setMineralOnly(other.getMineralOnly());
        }
        if (other.hasStartLocation()) {
          setStartLocation(other.getStartLocation());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (!hasId()) {
          
          return false;
        }
        if (!hasPosition()) {
          
          return false;
        }
        if (!hasTilePosition()) {
          
          return false;
        }
        if (!hasRegion()) {
          
          return false;
        }
        if (!hasNumMinerals()) {
          
          return false;
        }
        if (!hasNumGas()) {
          
          return false;
        }
        if (!hasIsland()) {
          
          return false;
        }
        if (!hasMineralOnly()) {
          
          return false;
        }
        if (!hasStartLocation()) {
          
          return false;
        }
        if (!getPosition().isInitialized()) {
          
          return false;
        }
        if (!getTilePosition().isInitialized()) {
          
          return false;
        }
        for (int i = 0; i < getMineralsCount(); i++) {
          if (!getMinerals(i).isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getStaticMineralsCount(); i++) {
          if (!getStaticMinerals(i).isInitialized()) {
            
            return false;
          }
        }
        for (int i = 0; i < getGeysersCount(); i++) {
          if (!getGeysers(i).isInitialized()) {
            
            return false;
          }
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.bwapi.proxy.messages.TerrainMessages.BaseLocation parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.bwapi.proxy.messages.TerrainMessages.BaseLocation) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // required int32 id = 12;
      private int id_ ;
      /**
       * <code>required int32 id = 12;</code>
       */
      public boolean hasId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * <code>required int32 id = 12;</code>
       */
      public int getId() {
        return id_;
      }
      /**
       * <code>required int32 id = 12;</code>
       */
      public Builder setId(int value) {
        bitField0_ |= 0x00000001;
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required int32 id = 12;</code>
       */
      public Builder clearId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        id_ = 0;
        onChanged();
        return this;
      }

      // required .messages.Position position = 1;
      private org.bwapi.proxy.messages.BasicTypes.Position position_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> positionBuilder_;
      /**
       * <code>required .messages.Position position = 1;</code>
       */
      public boolean hasPosition() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * <code>required .messages.Position position = 1;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position getPosition() {
        if (positionBuilder_ == null) {
          return position_;
        } else {
          return positionBuilder_.getMessage();
        }
      }
      /**
       * <code>required .messages.Position position = 1;</code>
       */
      public Builder setPosition(org.bwapi.proxy.messages.BasicTypes.Position value) {
        if (positionBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          position_ = value;
          onChanged();
        } else {
          positionBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <code>required .messages.Position position = 1;</code>
       */
      public Builder setPosition(
          org.bwapi.proxy.messages.BasicTypes.Position.Builder builderForValue) {
        if (positionBuilder_ == null) {
          position_ = builderForValue.build();
          onChanged();
        } else {
          positionBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <code>required .messages.Position position = 1;</code>
       */
      public Builder mergePosition(org.bwapi.proxy.messages.BasicTypes.Position value) {
        if (positionBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002) &&
              position_ != org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance()) {
            position_ =
              org.bwapi.proxy.messages.BasicTypes.Position.newBuilder(position_).mergeFrom(value).buildPartial();
          } else {
            position_ = value;
          }
          onChanged();
        } else {
          positionBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <code>required .messages.Position position = 1;</code>
       */
      public Builder clearPosition() {
        if (positionBuilder_ == null) {
          position_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
          onChanged();
        } else {
          positionBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      /**
       * <code>required .messages.Position position = 1;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position.Builder getPositionBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getPositionFieldBuilder().getBuilder();
      }
      /**
       * <code>required .messages.Position position = 1;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getPositionOrBuilder() {
        if (positionBuilder_ != null) {
          return positionBuilder_.getMessageOrBuilder();
        } else {
          return position_;
        }
      }
      /**
       * <code>required .messages.Position position = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> 
          getPositionFieldBuilder() {
        if (positionBuilder_ == null) {
          positionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder>(
                  position_,
                  getParentForChildren(),
                  isClean());
          position_ = null;
        }
        return positionBuilder_;
      }

      // required .messages.TilePosition tilePosition = 13;
      private org.bwapi.proxy.messages.BasicTypes.TilePosition tilePosition_ = org.bwapi.proxy.messages.BasicTypes.TilePosition.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.TilePosition, org.bwapi.proxy.messages.BasicTypes.TilePosition.Builder, org.bwapi.proxy.messages.BasicTypes.TilePositionOrBuilder> tilePositionBuilder_;
      /**
       * <code>required .messages.TilePosition tilePosition = 13;</code>
       */
      public boolean hasTilePosition() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * <code>required .messages.TilePosition tilePosition = 13;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.TilePosition getTilePosition() {
        if (tilePositionBuilder_ == null) {
          return tilePosition_;
        } else {
          return tilePositionBuilder_.getMessage();
        }
      }
      /**
       * <code>required .messages.TilePosition tilePosition = 13;</code>
       */
      public Builder setTilePosition(org.bwapi.proxy.messages.BasicTypes.TilePosition value) {
        if (tilePositionBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          tilePosition_ = value;
          onChanged();
        } else {
          tilePositionBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * <code>required .messages.TilePosition tilePosition = 13;</code>
       */
      public Builder setTilePosition(
          org.bwapi.proxy.messages.BasicTypes.TilePosition.Builder builderForValue) {
        if (tilePositionBuilder_ == null) {
          tilePosition_ = builderForValue.build();
          onChanged();
        } else {
          tilePositionBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * <code>required .messages.TilePosition tilePosition = 13;</code>
       */
      public Builder mergeTilePosition(org.bwapi.proxy.messages.BasicTypes.TilePosition value) {
        if (tilePositionBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004) &&
              tilePosition_ != org.bwapi.proxy.messages.BasicTypes.TilePosition.getDefaultInstance()) {
            tilePosition_ =
              org.bwapi.proxy.messages.BasicTypes.TilePosition.newBuilder(tilePosition_).mergeFrom(value).buildPartial();
          } else {
            tilePosition_ = value;
          }
          onChanged();
        } else {
          tilePositionBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      /**
       * <code>required .messages.TilePosition tilePosition = 13;</code>
       */
      public Builder clearTilePosition() {
        if (tilePositionBuilder_ == null) {
          tilePosition_ = org.bwapi.proxy.messages.BasicTypes.TilePosition.getDefaultInstance();
          onChanged();
        } else {
          tilePositionBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }
      /**
       * <code>required .messages.TilePosition tilePosition = 13;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.TilePosition.Builder getTilePositionBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getTilePositionFieldBuilder().getBuilder();
      }
      /**
       * <code>required .messages.TilePosition tilePosition = 13;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.TilePositionOrBuilder getTilePositionOrBuilder() {
        if (tilePositionBuilder_ != null) {
          return tilePositionBuilder_.getMessageOrBuilder();
        } else {
          return tilePosition_;
        }
      }
      /**
       * <code>required .messages.TilePosition tilePosition = 13;</code>
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.TilePosition, org.bwapi.proxy.messages.BasicTypes.TilePosition.Builder, org.bwapi.proxy.messages.BasicTypes.TilePositionOrBuilder> 
          getTilePositionFieldBuilder() {
        if (tilePositionBuilder_ == null) {
          tilePositionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.bwapi.proxy.messages.BasicTypes.TilePosition, org.bwapi.proxy.messages.BasicTypes.TilePosition.Builder, org.bwapi.proxy.messages.BasicTypes.TilePositionOrBuilder>(
                  tilePosition_,
                  getParentForChildren(),
                  isClean());
          tilePosition_ = null;
        }
        return tilePositionBuilder_;
      }

      // required int32 region = 2;
      private int region_ ;
      /**
       * <code>required int32 region = 2;</code>
       */
      public boolean hasRegion() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * <code>required int32 region = 2;</code>
       */
      public int getRegion() {
        return region_;
      }
      /**
       * <code>required int32 region = 2;</code>
       */
      public Builder setRegion(int value) {
        bitField0_ |= 0x00000008;
        region_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required int32 region = 2;</code>
       */
      public Builder clearRegion() {
        bitField0_ = (bitField0_ & ~0x00000008);
        region_ = 0;
        onChanged();
        return this;
      }

      // required int32 numMinerals = 3;
      private int numMinerals_ ;
      /**
       * <code>required int32 numMinerals = 3;</code>
       */
      public boolean hasNumMinerals() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      /**
       * <code>required int32 numMinerals = 3;</code>
       */
      public int getNumMinerals() {
        return numMinerals_;
      }
      /**
       * <code>required int32 numMinerals = 3;</code>
       */
      public Builder setNumMinerals(int value) {
        bitField0_ |= 0x00000010;
        numMinerals_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required int32 numMinerals = 3;</code>
       */
      public Builder clearNumMinerals() {
        bitField0_ = (bitField0_ & ~0x00000010);
        numMinerals_ = 0;
        onChanged();
        return this;
      }

      // required int32 numGas = 4;
      private int numGas_ ;
      /**
       * <code>required int32 numGas = 4;</code>
       */
      public boolean hasNumGas() {
        return ((bitField0_ & 0x00000020) == 0x00000020);
      }
      /**
       * <code>required int32 numGas = 4;</code>
       */
      public int getNumGas() {
        return numGas_;
      }
      /**
       * <code>required int32 numGas = 4;</code>
       */
      public Builder setNumGas(int value) {
        bitField0_ |= 0x00000020;
        numGas_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required int32 numGas = 4;</code>
       */
      public Builder clearNumGas() {
        bitField0_ = (bitField0_ & ~0x00000020);
        numGas_ = 0;
        onChanged();
        return this;
      }

      // repeated .messages.UnitId minerals = 5;
      private java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> minerals_ =
        java.util.Collections.emptyList();
      private void ensureMineralsIsMutable() {
        if (!((bitField0_ & 0x00000040) == 0x00000040)) {
          minerals_ = new java.util.ArrayList<org.bwapi.proxy.messages.GameMessages.UnitId>(minerals_);
          bitField0_ |= 0x00000040;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.GameMessages.UnitId, org.bwapi.proxy.messages.GameMessages.UnitId.Builder, org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> mineralsBuilder_;

      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> getMineralsList() {
        if (mineralsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(minerals_);
        } else {
          return mineralsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public int getMineralsCount() {
        if (mineralsBuilder_ == null) {
          return minerals_.size();
        } else {
          return mineralsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitId getMinerals(int index) {
        if (mineralsBuilder_ == null) {
          return minerals_.get(index);
        } else {
          return mineralsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public Builder setMinerals(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId value) {
        if (mineralsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMineralsIsMutable();
          minerals_.set(index, value);
          onChanged();
        } else {
          mineralsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public Builder setMinerals(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId.Builder builderForValue) {
        if (mineralsBuilder_ == null) {
          ensureMineralsIsMutable();
          minerals_.set(index, builderForValue.build());
          onChanged();
        } else {
          mineralsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public Builder addMinerals(org.bwapi.proxy.messages.GameMessages.UnitId value) {
        if (mineralsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMineralsIsMutable();
          minerals_.add(value);
          onChanged();
        } else {
          mineralsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public Builder addMinerals(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId value) {
        if (mineralsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMineralsIsMutable();
          minerals_.add(index, value);
          onChanged();
        } else {
          mineralsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public Builder addMinerals(
          org.bwapi.proxy.messages.GameMessages.UnitId.Builder builderForValue) {
        if (mineralsBuilder_ == null) {
          ensureMineralsIsMutable();
          minerals_.add(builderForValue.build());
          onChanged();
        } else {
          mineralsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public Builder addMinerals(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId.Builder builderForValue) {
        if (mineralsBuilder_ == null) {
          ensureMineralsIsMutable();
          minerals_.add(index, builderForValue.build());
          onChanged();
        } else {
          mineralsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public Builder addAllMinerals(
          java.lang.Iterable<? extends org.bwapi.proxy.messages.GameMessages.UnitId> values) {
        if (mineralsBuilder_ == null) {
          ensureMineralsIsMutable();
          super.addAll(values, minerals_);
          onChanged();
        } else {
          mineralsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public Builder clearMinerals() {
        if (mineralsBuilder_ == null) {
          minerals_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000040);
          onChanged();
        } else {
          mineralsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public Builder removeMinerals(int index) {
        if (mineralsBuilder_ == null) {
          ensureMineralsIsMutable();
          minerals_.remove(index);
          onChanged();
        } else {
          mineralsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitId.Builder getMineralsBuilder(
          int index) {
        return getMineralsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder getMineralsOrBuilder(
          int index) {
        if (mineralsBuilder_ == null) {
          return minerals_.get(index);  } else {
          return mineralsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public java.util.List<? extends org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> 
           getMineralsOrBuilderList() {
        if (mineralsBuilder_ != null) {
          return mineralsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(minerals_);
        }
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitId.Builder addMineralsBuilder() {
        return getMineralsFieldBuilder().addBuilder(
            org.bwapi.proxy.messages.GameMessages.UnitId.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitId.Builder addMineralsBuilder(
          int index) {
        return getMineralsFieldBuilder().addBuilder(
            index, org.bwapi.proxy.messages.GameMessages.UnitId.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.UnitId minerals = 5;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId.Builder> 
           getMineralsBuilderList() {
        return getMineralsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.GameMessages.UnitId, org.bwapi.proxy.messages.GameMessages.UnitId.Builder, org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> 
          getMineralsFieldBuilder() {
        if (mineralsBuilder_ == null) {
          mineralsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.bwapi.proxy.messages.GameMessages.UnitId, org.bwapi.proxy.messages.GameMessages.UnitId.Builder, org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder>(
                  minerals_,
                  ((bitField0_ & 0x00000040) == 0x00000040),
                  getParentForChildren(),
                  isClean());
          minerals_ = null;
        }
        return mineralsBuilder_;
      }

      // repeated .messages.UnitId staticMinerals = 6;
      private java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> staticMinerals_ =
        java.util.Collections.emptyList();
      private void ensureStaticMineralsIsMutable() {
        if (!((bitField0_ & 0x00000080) == 0x00000080)) {
          staticMinerals_ = new java.util.ArrayList<org.bwapi.proxy.messages.GameMessages.UnitId>(staticMinerals_);
          bitField0_ |= 0x00000080;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.GameMessages.UnitId, org.bwapi.proxy.messages.GameMessages.UnitId.Builder, org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> staticMineralsBuilder_;

      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> getStaticMineralsList() {
        if (staticMineralsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(staticMinerals_);
        } else {
          return staticMineralsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public int getStaticMineralsCount() {
        if (staticMineralsBuilder_ == null) {
          return staticMinerals_.size();
        } else {
          return staticMineralsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitId getStaticMinerals(int index) {
        if (staticMineralsBuilder_ == null) {
          return staticMinerals_.get(index);
        } else {
          return staticMineralsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public Builder setStaticMinerals(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId value) {
        if (staticMineralsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureStaticMineralsIsMutable();
          staticMinerals_.set(index, value);
          onChanged();
        } else {
          staticMineralsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public Builder setStaticMinerals(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId.Builder builderForValue) {
        if (staticMineralsBuilder_ == null) {
          ensureStaticMineralsIsMutable();
          staticMinerals_.set(index, builderForValue.build());
          onChanged();
        } else {
          staticMineralsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public Builder addStaticMinerals(org.bwapi.proxy.messages.GameMessages.UnitId value) {
        if (staticMineralsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureStaticMineralsIsMutable();
          staticMinerals_.add(value);
          onChanged();
        } else {
          staticMineralsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public Builder addStaticMinerals(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId value) {
        if (staticMineralsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureStaticMineralsIsMutable();
          staticMinerals_.add(index, value);
          onChanged();
        } else {
          staticMineralsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public Builder addStaticMinerals(
          org.bwapi.proxy.messages.GameMessages.UnitId.Builder builderForValue) {
        if (staticMineralsBuilder_ == null) {
          ensureStaticMineralsIsMutable();
          staticMinerals_.add(builderForValue.build());
          onChanged();
        } else {
          staticMineralsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public Builder addStaticMinerals(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId.Builder builderForValue) {
        if (staticMineralsBuilder_ == null) {
          ensureStaticMineralsIsMutable();
          staticMinerals_.add(index, builderForValue.build());
          onChanged();
        } else {
          staticMineralsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public Builder addAllStaticMinerals(
          java.lang.Iterable<? extends org.bwapi.proxy.messages.GameMessages.UnitId> values) {
        if (staticMineralsBuilder_ == null) {
          ensureStaticMineralsIsMutable();
          super.addAll(values, staticMinerals_);
          onChanged();
        } else {
          staticMineralsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public Builder clearStaticMinerals() {
        if (staticMineralsBuilder_ == null) {
          staticMinerals_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000080);
          onChanged();
        } else {
          staticMineralsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public Builder removeStaticMinerals(int index) {
        if (staticMineralsBuilder_ == null) {
          ensureStaticMineralsIsMutable();
          staticMinerals_.remove(index);
          onChanged();
        } else {
          staticMineralsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitId.Builder getStaticMineralsBuilder(
          int index) {
        return getStaticMineralsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder getStaticMineralsOrBuilder(
          int index) {
        if (staticMineralsBuilder_ == null) {
          return staticMinerals_.get(index);  } else {
          return staticMineralsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public java.util.List<? extends org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> 
           getStaticMineralsOrBuilderList() {
        if (staticMineralsBuilder_ != null) {
          return staticMineralsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(staticMinerals_);
        }
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitId.Builder addStaticMineralsBuilder() {
        return getStaticMineralsFieldBuilder().addBuilder(
            org.bwapi.proxy.messages.GameMessages.UnitId.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitId.Builder addStaticMineralsBuilder(
          int index) {
        return getStaticMineralsFieldBuilder().addBuilder(
            index, org.bwapi.proxy.messages.GameMessages.UnitId.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.UnitId staticMinerals = 6;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId.Builder> 
           getStaticMineralsBuilderList() {
        return getStaticMineralsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.GameMessages.UnitId, org.bwapi.proxy.messages.GameMessages.UnitId.Builder, org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> 
          getStaticMineralsFieldBuilder() {
        if (staticMineralsBuilder_ == null) {
          staticMineralsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.bwapi.proxy.messages.GameMessages.UnitId, org.bwapi.proxy.messages.GameMessages.UnitId.Builder, org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder>(
                  staticMinerals_,
                  ((bitField0_ & 0x00000080) == 0x00000080),
                  getParentForChildren(),
                  isClean());
          staticMinerals_ = null;
        }
        return staticMineralsBuilder_;
      }

      // repeated .messages.UnitId geysers = 7;
      private java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> geysers_ =
        java.util.Collections.emptyList();
      private void ensureGeysersIsMutable() {
        if (!((bitField0_ & 0x00000100) == 0x00000100)) {
          geysers_ = new java.util.ArrayList<org.bwapi.proxy.messages.GameMessages.UnitId>(geysers_);
          bitField0_ |= 0x00000100;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.GameMessages.UnitId, org.bwapi.proxy.messages.GameMessages.UnitId.Builder, org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> geysersBuilder_;

      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId> getGeysersList() {
        if (geysersBuilder_ == null) {
          return java.util.Collections.unmodifiableList(geysers_);
        } else {
          return geysersBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public int getGeysersCount() {
        if (geysersBuilder_ == null) {
          return geysers_.size();
        } else {
          return geysersBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitId getGeysers(int index) {
        if (geysersBuilder_ == null) {
          return geysers_.get(index);
        } else {
          return geysersBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public Builder setGeysers(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId value) {
        if (geysersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureGeysersIsMutable();
          geysers_.set(index, value);
          onChanged();
        } else {
          geysersBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public Builder setGeysers(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId.Builder builderForValue) {
        if (geysersBuilder_ == null) {
          ensureGeysersIsMutable();
          geysers_.set(index, builderForValue.build());
          onChanged();
        } else {
          geysersBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public Builder addGeysers(org.bwapi.proxy.messages.GameMessages.UnitId value) {
        if (geysersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureGeysersIsMutable();
          geysers_.add(value);
          onChanged();
        } else {
          geysersBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public Builder addGeysers(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId value) {
        if (geysersBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureGeysersIsMutable();
          geysers_.add(index, value);
          onChanged();
        } else {
          geysersBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public Builder addGeysers(
          org.bwapi.proxy.messages.GameMessages.UnitId.Builder builderForValue) {
        if (geysersBuilder_ == null) {
          ensureGeysersIsMutable();
          geysers_.add(builderForValue.build());
          onChanged();
        } else {
          geysersBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public Builder addGeysers(
          int index, org.bwapi.proxy.messages.GameMessages.UnitId.Builder builderForValue) {
        if (geysersBuilder_ == null) {
          ensureGeysersIsMutable();
          geysers_.add(index, builderForValue.build());
          onChanged();
        } else {
          geysersBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public Builder addAllGeysers(
          java.lang.Iterable<? extends org.bwapi.proxy.messages.GameMessages.UnitId> values) {
        if (geysersBuilder_ == null) {
          ensureGeysersIsMutable();
          super.addAll(values, geysers_);
          onChanged();
        } else {
          geysersBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public Builder clearGeysers() {
        if (geysersBuilder_ == null) {
          geysers_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000100);
          onChanged();
        } else {
          geysersBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public Builder removeGeysers(int index) {
        if (geysersBuilder_ == null) {
          ensureGeysersIsMutable();
          geysers_.remove(index);
          onChanged();
        } else {
          geysersBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitId.Builder getGeysersBuilder(
          int index) {
        return getGeysersFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder getGeysersOrBuilder(
          int index) {
        if (geysersBuilder_ == null) {
          return geysers_.get(index);  } else {
          return geysersBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public java.util.List<? extends org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> 
           getGeysersOrBuilderList() {
        if (geysersBuilder_ != null) {
          return geysersBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(geysers_);
        }
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitId.Builder addGeysersBuilder() {
        return getGeysersFieldBuilder().addBuilder(
            org.bwapi.proxy.messages.GameMessages.UnitId.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public org.bwapi.proxy.messages.GameMessages.UnitId.Builder addGeysersBuilder(
          int index) {
        return getGeysersFieldBuilder().addBuilder(
            index, org.bwapi.proxy.messages.GameMessages.UnitId.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.UnitId geysers = 7;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.GameMessages.UnitId.Builder> 
           getGeysersBuilderList() {
        return getGeysersFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.GameMessages.UnitId, org.bwapi.proxy.messages.GameMessages.UnitId.Builder, org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder> 
          getGeysersFieldBuilder() {
        if (geysersBuilder_ == null) {
          geysersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.bwapi.proxy.messages.GameMessages.UnitId, org.bwapi.proxy.messages.GameMessages.UnitId.Builder, org.bwapi.proxy.messages.GameMessages.UnitIdOrBuilder>(
                  geysers_,
                  ((bitField0_ & 0x00000100) == 0x00000100),
                  getParentForChildren(),
                  isClean());
          geysers_ = null;
        }
        return geysersBuilder_;
      }

      // required bool island = 8;
      private boolean island_ ;
      /**
       * <code>required bool island = 8;</code>
       */
      public boolean hasIsland() {
        return ((bitField0_ & 0x00000200) == 0x00000200);
      }
      /**
       * <code>required bool island = 8;</code>
       */
      public boolean getIsland() {
        return island_;
      }
      /**
       * <code>required bool island = 8;</code>
       */
      public Builder setIsland(boolean value) {
        bitField0_ |= 0x00000200;
        island_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required bool island = 8;</code>
       */
      public Builder clearIsland() {
        bitField0_ = (bitField0_ & ~0x00000200);
        island_ = false;
        onChanged();
        return this;
      }

      // required bool mineralOnly = 10;
      private boolean mineralOnly_ ;
      /**
       * <code>required bool mineralOnly = 10;</code>
       */
      public boolean hasMineralOnly() {
        return ((bitField0_ & 0x00000400) == 0x00000400);
      }
      /**
       * <code>required bool mineralOnly = 10;</code>
       */
      public boolean getMineralOnly() {
        return mineralOnly_;
      }
      /**
       * <code>required bool mineralOnly = 10;</code>
       */
      public Builder setMineralOnly(boolean value) {
        bitField0_ |= 0x00000400;
        mineralOnly_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required bool mineralOnly = 10;</code>
       */
      public Builder clearMineralOnly() {
        bitField0_ = (bitField0_ & ~0x00000400);
        mineralOnly_ = false;
        onChanged();
        return this;
      }

      // required bool startLocation = 11;
      private boolean startLocation_ ;
      /**
       * <code>required bool startLocation = 11;</code>
       */
      public boolean hasStartLocation() {
        return ((bitField0_ & 0x00000800) == 0x00000800);
      }
      /**
       * <code>required bool startLocation = 11;</code>
       */
      public boolean getStartLocation() {
        return startLocation_;
      }
      /**
       * <code>required bool startLocation = 11;</code>
       */
      public Builder setStartLocation(boolean value) {
        bitField0_ |= 0x00000800;
        startLocation_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required bool startLocation = 11;</code>
       */
      public Builder clearStartLocation() {
        bitField0_ = (bitField0_ & ~0x00000800);
        startLocation_ = false;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:messages.BaseLocation)
    }

    static {
      defaultInstance = new BaseLocation(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:messages.BaseLocation)
  }

  public interface ChokepointOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // required int32 id = 7;
    /**
     * <code>required int32 id = 7;</code>
     */
    boolean hasId();
    /**
     * <code>required int32 id = 7;</code>
     */
    int getId();

    // required int32 region1 = 1;
    /**
     * <code>required int32 region1 = 1;</code>
     */
    boolean hasRegion1();
    /**
     * <code>required int32 region1 = 1;</code>
     */
    int getRegion1();

    // required int32 region2 = 2;
    /**
     * <code>required int32 region2 = 2;</code>
     */
    boolean hasRegion2();
    /**
     * <code>required int32 region2 = 2;</code>
     */
    int getRegion2();

    // required .messages.Position side1 = 3;
    /**
     * <code>required .messages.Position side1 = 3;</code>
     */
    boolean hasSide1();
    /**
     * <code>required .messages.Position side1 = 3;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.Position getSide1();
    /**
     * <code>required .messages.Position side1 = 3;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getSide1OrBuilder();

    // required .messages.Position side2 = 4;
    /**
     * <code>required .messages.Position side2 = 4;</code>
     */
    boolean hasSide2();
    /**
     * <code>required .messages.Position side2 = 4;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.Position getSide2();
    /**
     * <code>required .messages.Position side2 = 4;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getSide2OrBuilder();

    // required .messages.Position center = 5;
    /**
     * <code>required .messages.Position center = 5;</code>
     */
    boolean hasCenter();
    /**
     * <code>required .messages.Position center = 5;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.Position getCenter();
    /**
     * <code>required .messages.Position center = 5;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getCenterOrBuilder();

    // required double width = 6;
    /**
     * <code>required double width = 6;</code>
     */
    boolean hasWidth();
    /**
     * <code>required double width = 6;</code>
     */
    double getWidth();
  }
  /**
   * Protobuf type {@code messages.Chokepoint}
   */
  public static final class Chokepoint extends
      com.google.protobuf.GeneratedMessage
      implements ChokepointOrBuilder {
    // Use Chokepoint.newBuilder() to construct.
    private Chokepoint(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Chokepoint(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Chokepoint defaultInstance;
    public static Chokepoint getDefaultInstance() {
      return defaultInstance;
    }

    public Chokepoint getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Chokepoint(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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_ |= 0x00000002;
              region1_ = input.readInt32();
              break;
            }
            case 16: {
              bitField0_ |= 0x00000004;
              region2_ = input.readInt32();
              break;
            }
            case 26: {
              org.bwapi.proxy.messages.BasicTypes.Position.Builder subBuilder = null;
              if (((bitField0_ & 0x00000008) == 0x00000008)) {
                subBuilder = side1_.toBuilder();
              }
              side1_ = input.readMessage(org.bwapi.proxy.messages.BasicTypes.Position.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(side1_);
                side1_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000008;
              break;
            }
            case 34: {
              org.bwapi.proxy.messages.BasicTypes.Position.Builder subBuilder = null;
              if (((bitField0_ & 0x00000010) == 0x00000010)) {
                subBuilder = side2_.toBuilder();
              }
              side2_ = input.readMessage(org.bwapi.proxy.messages.BasicTypes.Position.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(side2_);
                side2_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000010;
              break;
            }
            case 42: {
              org.bwapi.proxy.messages.BasicTypes.Position.Builder subBuilder = null;
              if (((bitField0_ & 0x00000020) == 0x00000020)) {
                subBuilder = center_.toBuilder();
              }
              center_ = input.readMessage(org.bwapi.proxy.messages.BasicTypes.Position.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(center_);
                center_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000020;
              break;
            }
            case 49: {
              bitField0_ |= 0x00000040;
              width_ = input.readDouble();
              break;
            }
            case 56: {
              bitField0_ |= 0x00000001;
              id_ = input.readInt32();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw 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 org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Chokepoint_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Chokepoint_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.bwapi.proxy.messages.TerrainMessages.Chokepoint.class, org.bwapi.proxy.messages.TerrainMessages.Chokepoint.Builder.class);
    }

    public static com.google.protobuf.Parser<Chokepoint> PARSER =
        new com.google.protobuf.AbstractParser<Chokepoint>() {
      public Chokepoint parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Chokepoint(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // required int32 id = 7;
    public static final int ID_FIELD_NUMBER = 7;
    private int id_;
    /**
     * <code>required int32 id = 7;</code>
     */
    public boolean hasId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * <code>required int32 id = 7;</code>
     */
    public int getId() {
      return id_;
    }

    // required int32 region1 = 1;
    public static final int REGION1_FIELD_NUMBER = 1;
    private int region1_;
    /**
     * <code>required int32 region1 = 1;</code>
     */
    public boolean hasRegion1() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * <code>required int32 region1 = 1;</code>
     */
    public int getRegion1() {
      return region1_;
    }

    // required int32 region2 = 2;
    public static final int REGION2_FIELD_NUMBER = 2;
    private int region2_;
    /**
     * <code>required int32 region2 = 2;</code>
     */
    public boolean hasRegion2() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * <code>required int32 region2 = 2;</code>
     */
    public int getRegion2() {
      return region2_;
    }

    // required .messages.Position side1 = 3;
    public static final int SIDE1_FIELD_NUMBER = 3;
    private org.bwapi.proxy.messages.BasicTypes.Position side1_;
    /**
     * <code>required .messages.Position side1 = 3;</code>
     */
    public boolean hasSide1() {
      return ((bitField0_ & 0x00000008) == 0x00000008);
    }
    /**
     * <code>required .messages.Position side1 = 3;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.Position getSide1() {
      return side1_;
    }
    /**
     * <code>required .messages.Position side1 = 3;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getSide1OrBuilder() {
      return side1_;
    }

    // required .messages.Position side2 = 4;
    public static final int SIDE2_FIELD_NUMBER = 4;
    private org.bwapi.proxy.messages.BasicTypes.Position side2_;
    /**
     * <code>required .messages.Position side2 = 4;</code>
     */
    public boolean hasSide2() {
      return ((bitField0_ & 0x00000010) == 0x00000010);
    }
    /**
     * <code>required .messages.Position side2 = 4;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.Position getSide2() {
      return side2_;
    }
    /**
     * <code>required .messages.Position side2 = 4;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getSide2OrBuilder() {
      return side2_;
    }

    // required .messages.Position center = 5;
    public static final int CENTER_FIELD_NUMBER = 5;
    private org.bwapi.proxy.messages.BasicTypes.Position center_;
    /**
     * <code>required .messages.Position center = 5;</code>
     */
    public boolean hasCenter() {
      return ((bitField0_ & 0x00000020) == 0x00000020);
    }
    /**
     * <code>required .messages.Position center = 5;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.Position getCenter() {
      return center_;
    }
    /**
     * <code>required .messages.Position center = 5;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getCenterOrBuilder() {
      return center_;
    }

    // required double width = 6;
    public static final int WIDTH_FIELD_NUMBER = 6;
    private double width_;
    /**
     * <code>required double width = 6;</code>
     */
    public boolean hasWidth() {
      return ((bitField0_ & 0x00000040) == 0x00000040);
    }
    /**
     * <code>required double width = 6;</code>
     */
    public double getWidth() {
      return width_;
    }

    private void initFields() {
      id_ = 0;
      region1_ = 0;
      region2_ = 0;
      side1_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
      side2_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
      center_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
      width_ = 0D;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (!hasId()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRegion1()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasRegion2()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSide1()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasSide2()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasCenter()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasWidth()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getSide1().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getSide2().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getCenter().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt32(1, region1_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeInt32(2, region2_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        output.writeMessage(3, side1_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        output.writeMessage(4, side2_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        output.writeMessage(5, center_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        output.writeDouble(6, width_);
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt32(7, id_);
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, region1_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, region2_);
      }
      if (((bitField0_ & 0x00000008) == 0x00000008)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, side1_);
      }
      if (((bitField0_ & 0x00000010) == 0x00000010)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, side2_);
      }
      if (((bitField0_ & 0x00000020) == 0x00000020)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, center_);
      }
      if (((bitField0_ & 0x00000040) == 0x00000040)) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(6, width_);
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(7, id_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.bwapi.proxy.messages.TerrainMessages.Chokepoint parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Chokepoint parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Chokepoint parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Chokepoint parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Chokepoint parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Chokepoint parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Chokepoint parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Chokepoint parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Chokepoint parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Chokepoint parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.bwapi.proxy.messages.TerrainMessages.Chokepoint prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code messages.Chokepoint}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements org.bwapi.proxy.messages.TerrainMessages.ChokepointOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Chokepoint_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Chokepoint_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.bwapi.proxy.messages.TerrainMessages.Chokepoint.class, org.bwapi.proxy.messages.TerrainMessages.Chokepoint.Builder.class);
      }

      // Construct using org.bwapi.proxy.messages.TerrainMessages.Chokepoint.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getSide1FieldBuilder();
          getSide2FieldBuilder();
          getCenterFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        id_ = 0;
        bitField0_ = (bitField0_ & ~0x00000001);
        region1_ = 0;
        bitField0_ = (bitField0_ & ~0x00000002);
        region2_ = 0;
        bitField0_ = (bitField0_ & ~0x00000004);
        if (side1Builder_ == null) {
          side1_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
        } else {
          side1Builder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        if (side2Builder_ == null) {
          side2_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
        } else {
          side2Builder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000010);
        if (centerBuilder_ == null) {
          center_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
        } else {
          centerBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000020);
        width_ = 0D;
        bitField0_ = (bitField0_ & ~0x00000040);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Chokepoint_descriptor;
      }

      public org.bwapi.proxy.messages.TerrainMessages.Chokepoint getDefaultInstanceForType() {
        return org.bwapi.proxy.messages.TerrainMessages.Chokepoint.getDefaultInstance();
      }

      public org.bwapi.proxy.messages.TerrainMessages.Chokepoint build() {
        org.bwapi.proxy.messages.TerrainMessages.Chokepoint result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.bwapi.proxy.messages.TerrainMessages.Chokepoint buildPartial() {
        org.bwapi.proxy.messages.TerrainMessages.Chokepoint result = new org.bwapi.proxy.messages.TerrainMessages.Chokepoint(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.id_ = id_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.region1_ = region1_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.region2_ = region2_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000008;
        }
        if (side1Builder_ == null) {
          result.side1_ = side1_;
        } else {
          result.side1_ = side1Builder_.build();
        }
        if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
          to_bitField0_ |= 0x00000010;
        }
        if (side2Builder_ == null) {
          result.side2_ = side2_;
        } else {
          result.side2_ = side2Builder_.build();
        }
        if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
          to_bitField0_ |= 0x00000020;
        }
        if (centerBuilder_ == null) {
          result.center_ = center_;
        } else {
          result.center_ = centerBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
          to_bitField0_ |= 0x00000040;
        }
        result.width_ = width_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.bwapi.proxy.messages.TerrainMessages.Chokepoint) {
          return mergeFrom((org.bwapi.proxy.messages.TerrainMessages.Chokepoint)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.bwapi.proxy.messages.TerrainMessages.Chokepoint other) {
        if (other == org.bwapi.proxy.messages.TerrainMessages.Chokepoint.getDefaultInstance()) return this;
        if (other.hasId()) {
          setId(other.getId());
        }
        if (other.hasRegion1()) {
          setRegion1(other.getRegion1());
        }
        if (other.hasRegion2()) {
          setRegion2(other.getRegion2());
        }
        if (other.hasSide1()) {
          mergeSide1(other.getSide1());
        }
        if (other.hasSide2()) {
          mergeSide2(other.getSide2());
        }
        if (other.hasCenter()) {
          mergeCenter(other.getCenter());
        }
        if (other.hasWidth()) {
          setWidth(other.getWidth());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (!hasId()) {
          
          return false;
        }
        if (!hasRegion1()) {
          
          return false;
        }
        if (!hasRegion2()) {
          
          return false;
        }
        if (!hasSide1()) {
          
          return false;
        }
        if (!hasSide2()) {
          
          return false;
        }
        if (!hasCenter()) {
          
          return false;
        }
        if (!hasWidth()) {
          
          return false;
        }
        if (!getSide1().isInitialized()) {
          
          return false;
        }
        if (!getSide2().isInitialized()) {
          
          return false;
        }
        if (!getCenter().isInitialized()) {
          
          return false;
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.bwapi.proxy.messages.TerrainMessages.Chokepoint parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.bwapi.proxy.messages.TerrainMessages.Chokepoint) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // required int32 id = 7;
      private int id_ ;
      /**
       * <code>required int32 id = 7;</code>
       */
      public boolean hasId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * <code>required int32 id = 7;</code>
       */
      public int getId() {
        return id_;
      }
      /**
       * <code>required int32 id = 7;</code>
       */
      public Builder setId(int value) {
        bitField0_ |= 0x00000001;
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required int32 id = 7;</code>
       */
      public Builder clearId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        id_ = 0;
        onChanged();
        return this;
      }

      // required int32 region1 = 1;
      private int region1_ ;
      /**
       * <code>required int32 region1 = 1;</code>
       */
      public boolean hasRegion1() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * <code>required int32 region1 = 1;</code>
       */
      public int getRegion1() {
        return region1_;
      }
      /**
       * <code>required int32 region1 = 1;</code>
       */
      public Builder setRegion1(int value) {
        bitField0_ |= 0x00000002;
        region1_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required int32 region1 = 1;</code>
       */
      public Builder clearRegion1() {
        bitField0_ = (bitField0_ & ~0x00000002);
        region1_ = 0;
        onChanged();
        return this;
      }

      // required int32 region2 = 2;
      private int region2_ ;
      /**
       * <code>required int32 region2 = 2;</code>
       */
      public boolean hasRegion2() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * <code>required int32 region2 = 2;</code>
       */
      public int getRegion2() {
        return region2_;
      }
      /**
       * <code>required int32 region2 = 2;</code>
       */
      public Builder setRegion2(int value) {
        bitField0_ |= 0x00000004;
        region2_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required int32 region2 = 2;</code>
       */
      public Builder clearRegion2() {
        bitField0_ = (bitField0_ & ~0x00000004);
        region2_ = 0;
        onChanged();
        return this;
      }

      // required .messages.Position side1 = 3;
      private org.bwapi.proxy.messages.BasicTypes.Position side1_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> side1Builder_;
      /**
       * <code>required .messages.Position side1 = 3;</code>
       */
      public boolean hasSide1() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * <code>required .messages.Position side1 = 3;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position getSide1() {
        if (side1Builder_ == null) {
          return side1_;
        } else {
          return side1Builder_.getMessage();
        }
      }
      /**
       * <code>required .messages.Position side1 = 3;</code>
       */
      public Builder setSide1(org.bwapi.proxy.messages.BasicTypes.Position value) {
        if (side1Builder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          side1_ = value;
          onChanged();
        } else {
          side1Builder_.setMessage(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * <code>required .messages.Position side1 = 3;</code>
       */
      public Builder setSide1(
          org.bwapi.proxy.messages.BasicTypes.Position.Builder builderForValue) {
        if (side1Builder_ == null) {
          side1_ = builderForValue.build();
          onChanged();
        } else {
          side1Builder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * <code>required .messages.Position side1 = 3;</code>
       */
      public Builder mergeSide1(org.bwapi.proxy.messages.BasicTypes.Position value) {
        if (side1Builder_ == null) {
          if (((bitField0_ & 0x00000008) == 0x00000008) &&
              side1_ != org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance()) {
            side1_ =
              org.bwapi.proxy.messages.BasicTypes.Position.newBuilder(side1_).mergeFrom(value).buildPartial();
          } else {
            side1_ = value;
          }
          onChanged();
        } else {
          side1Builder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * <code>required .messages.Position side1 = 3;</code>
       */
      public Builder clearSide1() {
        if (side1Builder_ == null) {
          side1_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
          onChanged();
        } else {
          side1Builder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }
      /**
       * <code>required .messages.Position side1 = 3;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position.Builder getSide1Builder() {
        bitField0_ |= 0x00000008;
        onChanged();
        return getSide1FieldBuilder().getBuilder();
      }
      /**
       * <code>required .messages.Position side1 = 3;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getSide1OrBuilder() {
        if (side1Builder_ != null) {
          return side1Builder_.getMessageOrBuilder();
        } else {
          return side1_;
        }
      }
      /**
       * <code>required .messages.Position side1 = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> 
          getSide1FieldBuilder() {
        if (side1Builder_ == null) {
          side1Builder_ = new com.google.protobuf.SingleFieldBuilder<
              org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder>(
                  side1_,
                  getParentForChildren(),
                  isClean());
          side1_ = null;
        }
        return side1Builder_;
      }

      // required .messages.Position side2 = 4;
      private org.bwapi.proxy.messages.BasicTypes.Position side2_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> side2Builder_;
      /**
       * <code>required .messages.Position side2 = 4;</code>
       */
      public boolean hasSide2() {
        return ((bitField0_ & 0x00000010) == 0x00000010);
      }
      /**
       * <code>required .messages.Position side2 = 4;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position getSide2() {
        if (side2Builder_ == null) {
          return side2_;
        } else {
          return side2Builder_.getMessage();
        }
      }
      /**
       * <code>required .messages.Position side2 = 4;</code>
       */
      public Builder setSide2(org.bwapi.proxy.messages.BasicTypes.Position value) {
        if (side2Builder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          side2_ = value;
          onChanged();
        } else {
          side2Builder_.setMessage(value);
        }
        bitField0_ |= 0x00000010;
        return this;
      }
      /**
       * <code>required .messages.Position side2 = 4;</code>
       */
      public Builder setSide2(
          org.bwapi.proxy.messages.BasicTypes.Position.Builder builderForValue) {
        if (side2Builder_ == null) {
          side2_ = builderForValue.build();
          onChanged();
        } else {
          side2Builder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000010;
        return this;
      }
      /**
       * <code>required .messages.Position side2 = 4;</code>
       */
      public Builder mergeSide2(org.bwapi.proxy.messages.BasicTypes.Position value) {
        if (side2Builder_ == null) {
          if (((bitField0_ & 0x00000010) == 0x00000010) &&
              side2_ != org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance()) {
            side2_ =
              org.bwapi.proxy.messages.BasicTypes.Position.newBuilder(side2_).mergeFrom(value).buildPartial();
          } else {
            side2_ = value;
          }
          onChanged();
        } else {
          side2Builder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000010;
        return this;
      }
      /**
       * <code>required .messages.Position side2 = 4;</code>
       */
      public Builder clearSide2() {
        if (side2Builder_ == null) {
          side2_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
          onChanged();
        } else {
          side2Builder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000010);
        return this;
      }
      /**
       * <code>required .messages.Position side2 = 4;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position.Builder getSide2Builder() {
        bitField0_ |= 0x00000010;
        onChanged();
        return getSide2FieldBuilder().getBuilder();
      }
      /**
       * <code>required .messages.Position side2 = 4;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getSide2OrBuilder() {
        if (side2Builder_ != null) {
          return side2Builder_.getMessageOrBuilder();
        } else {
          return side2_;
        }
      }
      /**
       * <code>required .messages.Position side2 = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> 
          getSide2FieldBuilder() {
        if (side2Builder_ == null) {
          side2Builder_ = new com.google.protobuf.SingleFieldBuilder<
              org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder>(
                  side2_,
                  getParentForChildren(),
                  isClean());
          side2_ = null;
        }
        return side2Builder_;
      }

      // required .messages.Position center = 5;
      private org.bwapi.proxy.messages.BasicTypes.Position center_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> centerBuilder_;
      /**
       * <code>required .messages.Position center = 5;</code>
       */
      public boolean hasCenter() {
        return ((bitField0_ & 0x00000020) == 0x00000020);
      }
      /**
       * <code>required .messages.Position center = 5;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position getCenter() {
        if (centerBuilder_ == null) {
          return center_;
        } else {
          return centerBuilder_.getMessage();
        }
      }
      /**
       * <code>required .messages.Position center = 5;</code>
       */
      public Builder setCenter(org.bwapi.proxy.messages.BasicTypes.Position value) {
        if (centerBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          center_ = value;
          onChanged();
        } else {
          centerBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000020;
        return this;
      }
      /**
       * <code>required .messages.Position center = 5;</code>
       */
      public Builder setCenter(
          org.bwapi.proxy.messages.BasicTypes.Position.Builder builderForValue) {
        if (centerBuilder_ == null) {
          center_ = builderForValue.build();
          onChanged();
        } else {
          centerBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000020;
        return this;
      }
      /**
       * <code>required .messages.Position center = 5;</code>
       */
      public Builder mergeCenter(org.bwapi.proxy.messages.BasicTypes.Position value) {
        if (centerBuilder_ == null) {
          if (((bitField0_ & 0x00000020) == 0x00000020) &&
              center_ != org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance()) {
            center_ =
              org.bwapi.proxy.messages.BasicTypes.Position.newBuilder(center_).mergeFrom(value).buildPartial();
          } else {
            center_ = value;
          }
          onChanged();
        } else {
          centerBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000020;
        return this;
      }
      /**
       * <code>required .messages.Position center = 5;</code>
       */
      public Builder clearCenter() {
        if (centerBuilder_ == null) {
          center_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
          onChanged();
        } else {
          centerBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000020);
        return this;
      }
      /**
       * <code>required .messages.Position center = 5;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position.Builder getCenterBuilder() {
        bitField0_ |= 0x00000020;
        onChanged();
        return getCenterFieldBuilder().getBuilder();
      }
      /**
       * <code>required .messages.Position center = 5;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getCenterOrBuilder() {
        if (centerBuilder_ != null) {
          return centerBuilder_.getMessageOrBuilder();
        } else {
          return center_;
        }
      }
      /**
       * <code>required .messages.Position center = 5;</code>
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> 
          getCenterFieldBuilder() {
        if (centerBuilder_ == null) {
          centerBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder>(
                  center_,
                  getParentForChildren(),
                  isClean());
          center_ = null;
        }
        return centerBuilder_;
      }

      // required double width = 6;
      private double width_ ;
      /**
       * <code>required double width = 6;</code>
       */
      public boolean hasWidth() {
        return ((bitField0_ & 0x00000040) == 0x00000040);
      }
      /**
       * <code>required double width = 6;</code>
       */
      public double getWidth() {
        return width_;
      }
      /**
       * <code>required double width = 6;</code>
       */
      public Builder setWidth(double value) {
        bitField0_ |= 0x00000040;
        width_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required double width = 6;</code>
       */
      public Builder clearWidth() {
        bitField0_ = (bitField0_ & ~0x00000040);
        width_ = 0D;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:messages.Chokepoint)
    }

    static {
      defaultInstance = new Chokepoint(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:messages.Chokepoint)
  }

  public interface PolygonOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // repeated .messages.Position vertices = 1;
    /**
     * <code>repeated .messages.Position vertices = 1;</code>
     */
    java.util.List<org.bwapi.proxy.messages.BasicTypes.Position> 
        getVerticesList();
    /**
     * <code>repeated .messages.Position vertices = 1;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.Position getVertices(int index);
    /**
     * <code>repeated .messages.Position vertices = 1;</code>
     */
    int getVerticesCount();
    /**
     * <code>repeated .messages.Position vertices = 1;</code>
     */
    java.util.List<? extends org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> 
        getVerticesOrBuilderList();
    /**
     * <code>repeated .messages.Position vertices = 1;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getVerticesOrBuilder(
        int index);

    // required double area = 2;
    /**
     * <code>required double area = 2;</code>
     */
    boolean hasArea();
    /**
     * <code>required double area = 2;</code>
     */
    double getArea();

    // required double perimeter = 3;
    /**
     * <code>required double perimeter = 3;</code>
     */
    boolean hasPerimeter();
    /**
     * <code>required double perimeter = 3;</code>
     */
    double getPerimeter();

    // required .messages.Position center = 4;
    /**
     * <code>required .messages.Position center = 4;</code>
     */
    boolean hasCenter();
    /**
     * <code>required .messages.Position center = 4;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.Position getCenter();
    /**
     * <code>required .messages.Position center = 4;</code>
     */
    org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getCenterOrBuilder();

    // repeated .messages.Polygon holes = 5;
    /**
     * <code>repeated .messages.Polygon holes = 5;</code>
     *
     * <pre>
     *bool isInside(BWAPI::Position p) const;
     *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
     * </pre>
     */
    java.util.List<org.bwapi.proxy.messages.TerrainMessages.Polygon> 
        getHolesList();
    /**
     * <code>repeated .messages.Polygon holes = 5;</code>
     *
     * <pre>
     *bool isInside(BWAPI::Position p) const;
     *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
     * </pre>
     */
    org.bwapi.proxy.messages.TerrainMessages.Polygon getHoles(int index);
    /**
     * <code>repeated .messages.Polygon holes = 5;</code>
     *
     * <pre>
     *bool isInside(BWAPI::Position p) const;
     *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
     * </pre>
     */
    int getHolesCount();
    /**
     * <code>repeated .messages.Polygon holes = 5;</code>
     *
     * <pre>
     *bool isInside(BWAPI::Position p) const;
     *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
     * </pre>
     */
    java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder> 
        getHolesOrBuilderList();
    /**
     * <code>repeated .messages.Polygon holes = 5;</code>
     *
     * <pre>
     *bool isInside(BWAPI::Position p) const;
     *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
     * </pre>
     */
    org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder getHolesOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code messages.Polygon}
   */
  public static final class Polygon extends
      com.google.protobuf.GeneratedMessage
      implements PolygonOrBuilder {
    // Use Polygon.newBuilder() to construct.
    private Polygon(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Polygon(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Polygon defaultInstance;
    public static Polygon getDefaultInstance() {
      return defaultInstance;
    }

    public Polygon getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Polygon(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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)) {
                vertices_ = new java.util.ArrayList<org.bwapi.proxy.messages.BasicTypes.Position>();
                mutable_bitField0_ |= 0x00000001;
              }
              vertices_.add(input.readMessage(org.bwapi.proxy.messages.BasicTypes.Position.PARSER, extensionRegistry));
              break;
            }
            case 17: {
              bitField0_ |= 0x00000001;
              area_ = input.readDouble();
              break;
            }
            case 25: {
              bitField0_ |= 0x00000002;
              perimeter_ = input.readDouble();
              break;
            }
            case 34: {
              org.bwapi.proxy.messages.BasicTypes.Position.Builder subBuilder = null;
              if (((bitField0_ & 0x00000004) == 0x00000004)) {
                subBuilder = center_.toBuilder();
              }
              center_ = input.readMessage(org.bwapi.proxy.messages.BasicTypes.Position.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(center_);
                center_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000004;
              break;
            }
            case 42: {
              if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
                holes_ = new java.util.ArrayList<org.bwapi.proxy.messages.TerrainMessages.Polygon>();
                mutable_bitField0_ |= 0x00000010;
              }
              holes_.add(input.readMessage(org.bwapi.proxy.messages.TerrainMessages.Polygon.PARSER, extensionRegistry));
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          vertices_ = java.util.Collections.unmodifiableList(vertices_);
        }
        if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
          holes_ = java.util.Collections.unmodifiableList(holes_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Polygon_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Polygon_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.bwapi.proxy.messages.TerrainMessages.Polygon.class, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder.class);
    }

    public static com.google.protobuf.Parser<Polygon> PARSER =
        new com.google.protobuf.AbstractParser<Polygon>() {
      public Polygon parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Polygon(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // repeated .messages.Position vertices = 1;
    public static final int VERTICES_FIELD_NUMBER = 1;
    private java.util.List<org.bwapi.proxy.messages.BasicTypes.Position> vertices_;
    /**
     * <code>repeated .messages.Position vertices = 1;</code>
     */
    public java.util.List<org.bwapi.proxy.messages.BasicTypes.Position> getVerticesList() {
      return vertices_;
    }
    /**
     * <code>repeated .messages.Position vertices = 1;</code>
     */
    public java.util.List<? extends org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> 
        getVerticesOrBuilderList() {
      return vertices_;
    }
    /**
     * <code>repeated .messages.Position vertices = 1;</code>
     */
    public int getVerticesCount() {
      return vertices_.size();
    }
    /**
     * <code>repeated .messages.Position vertices = 1;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.Position getVertices(int index) {
      return vertices_.get(index);
    }
    /**
     * <code>repeated .messages.Position vertices = 1;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getVerticesOrBuilder(
        int index) {
      return vertices_.get(index);
    }

    // required double area = 2;
    public static final int AREA_FIELD_NUMBER = 2;
    private double area_;
    /**
     * <code>required double area = 2;</code>
     */
    public boolean hasArea() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * <code>required double area = 2;</code>
     */
    public double getArea() {
      return area_;
    }

    // required double perimeter = 3;
    public static final int PERIMETER_FIELD_NUMBER = 3;
    private double perimeter_;
    /**
     * <code>required double perimeter = 3;</code>
     */
    public boolean hasPerimeter() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * <code>required double perimeter = 3;</code>
     */
    public double getPerimeter() {
      return perimeter_;
    }

    // required .messages.Position center = 4;
    public static final int CENTER_FIELD_NUMBER = 4;
    private org.bwapi.proxy.messages.BasicTypes.Position center_;
    /**
     * <code>required .messages.Position center = 4;</code>
     */
    public boolean hasCenter() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * <code>required .messages.Position center = 4;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.Position getCenter() {
      return center_;
    }
    /**
     * <code>required .messages.Position center = 4;</code>
     */
    public org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getCenterOrBuilder() {
      return center_;
    }

    // repeated .messages.Polygon holes = 5;
    public static final int HOLES_FIELD_NUMBER = 5;
    private java.util.List<org.bwapi.proxy.messages.TerrainMessages.Polygon> holes_;
    /**
     * <code>repeated .messages.Polygon holes = 5;</code>
     *
     * <pre>
     *bool isInside(BWAPI::Position p) const;
     *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
     * </pre>
     */
    public java.util.List<org.bwapi.proxy.messages.TerrainMessages.Polygon> getHolesList() {
      return holes_;
    }
    /**
     * <code>repeated .messages.Polygon holes = 5;</code>
     *
     * <pre>
     *bool isInside(BWAPI::Position p) const;
     *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
     * </pre>
     */
    public java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder> 
        getHolesOrBuilderList() {
      return holes_;
    }
    /**
     * <code>repeated .messages.Polygon holes = 5;</code>
     *
     * <pre>
     *bool isInside(BWAPI::Position p) const;
     *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
     * </pre>
     */
    public int getHolesCount() {
      return holes_.size();
    }
    /**
     * <code>repeated .messages.Polygon holes = 5;</code>
     *
     * <pre>
     *bool isInside(BWAPI::Position p) const;
     *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
     * </pre>
     */
    public org.bwapi.proxy.messages.TerrainMessages.Polygon getHoles(int index) {
      return holes_.get(index);
    }
    /**
     * <code>repeated .messages.Polygon holes = 5;</code>
     *
     * <pre>
     *bool isInside(BWAPI::Position p) const;
     *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
     * </pre>
     */
    public org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder getHolesOrBuilder(
        int index) {
      return holes_.get(index);
    }

    private void initFields() {
      vertices_ = java.util.Collections.emptyList();
      area_ = 0D;
      perimeter_ = 0D;
      center_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
      holes_ = java.util.Collections.emptyList();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (!hasArea()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasPerimeter()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasCenter()) {
        memoizedIsInitialized = 0;
        return false;
      }
      for (int i = 0; i < getVerticesCount(); i++) {
        if (!getVertices(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      if (!getCenter().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      for (int i = 0; i < getHolesCount(); i++) {
        if (!getHoles(i).isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      for (int i = 0; i < vertices_.size(); i++) {
        output.writeMessage(1, vertices_.get(i));
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeDouble(2, area_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeDouble(3, perimeter_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeMessage(4, center_);
      }
      for (int i = 0; i < holes_.size(); i++) {
        output.writeMessage(5, holes_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < vertices_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, vertices_.get(i));
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(2, area_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(3, perimeter_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, center_);
      }
      for (int i = 0; i < holes_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, holes_.get(i));
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.bwapi.proxy.messages.TerrainMessages.Polygon parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Polygon parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Polygon parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Polygon parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Polygon parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Polygon parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Polygon parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Polygon parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Polygon parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Polygon parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.bwapi.proxy.messages.TerrainMessages.Polygon prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code messages.Polygon}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Polygon_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Polygon_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.bwapi.proxy.messages.TerrainMessages.Polygon.class, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder.class);
      }

      // Construct using org.bwapi.proxy.messages.TerrainMessages.Polygon.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getVerticesFieldBuilder();
          getCenterFieldBuilder();
          getHolesFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        if (verticesBuilder_ == null) {
          vertices_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          verticesBuilder_.clear();
        }
        area_ = 0D;
        bitField0_ = (bitField0_ & ~0x00000002);
        perimeter_ = 0D;
        bitField0_ = (bitField0_ & ~0x00000004);
        if (centerBuilder_ == null) {
          center_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
        } else {
          centerBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        if (holesBuilder_ == null) {
          holes_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000010);
        } else {
          holesBuilder_.clear();
        }
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Polygon_descriptor;
      }

      public org.bwapi.proxy.messages.TerrainMessages.Polygon getDefaultInstanceForType() {
        return org.bwapi.proxy.messages.TerrainMessages.Polygon.getDefaultInstance();
      }

      public org.bwapi.proxy.messages.TerrainMessages.Polygon build() {
        org.bwapi.proxy.messages.TerrainMessages.Polygon result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.bwapi.proxy.messages.TerrainMessages.Polygon buildPartial() {
        org.bwapi.proxy.messages.TerrainMessages.Polygon result = new org.bwapi.proxy.messages.TerrainMessages.Polygon(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (verticesBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            vertices_ = java.util.Collections.unmodifiableList(vertices_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.vertices_ = vertices_;
        } else {
          result.vertices_ = verticesBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000001;
        }
        result.area_ = area_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000002;
        }
        result.perimeter_ = perimeter_;
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000004;
        }
        if (centerBuilder_ == null) {
          result.center_ = center_;
        } else {
          result.center_ = centerBuilder_.build();
        }
        if (holesBuilder_ == null) {
          if (((bitField0_ & 0x00000010) == 0x00000010)) {
            holes_ = java.util.Collections.unmodifiableList(holes_);
            bitField0_ = (bitField0_ & ~0x00000010);
          }
          result.holes_ = holes_;
        } else {
          result.holes_ = holesBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.bwapi.proxy.messages.TerrainMessages.Polygon) {
          return mergeFrom((org.bwapi.proxy.messages.TerrainMessages.Polygon)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.bwapi.proxy.messages.TerrainMessages.Polygon other) {
        if (other == org.bwapi.proxy.messages.TerrainMessages.Polygon.getDefaultInstance()) return this;
        if (verticesBuilder_ == null) {
          if (!other.vertices_.isEmpty()) {
            if (vertices_.isEmpty()) {
              vertices_ = other.vertices_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureVerticesIsMutable();
              vertices_.addAll(other.vertices_);
            }
            onChanged();
          }
        } else {
          if (!other.vertices_.isEmpty()) {
            if (verticesBuilder_.isEmpty()) {
              verticesBuilder_.dispose();
              verticesBuilder_ = null;
              vertices_ = other.vertices_;
              bitField0_ = (bitField0_ & ~0x00000001);
              verticesBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getVerticesFieldBuilder() : null;
            } else {
              verticesBuilder_.addAllMessages(other.vertices_);
            }
          }
        }
        if (other.hasArea()) {
          setArea(other.getArea());
        }
        if (other.hasPerimeter()) {
          setPerimeter(other.getPerimeter());
        }
        if (other.hasCenter()) {
          mergeCenter(other.getCenter());
        }
        if (holesBuilder_ == null) {
          if (!other.holes_.isEmpty()) {
            if (holes_.isEmpty()) {
              holes_ = other.holes_;
              bitField0_ = (bitField0_ & ~0x00000010);
            } else {
              ensureHolesIsMutable();
              holes_.addAll(other.holes_);
            }
            onChanged();
          }
        } else {
          if (!other.holes_.isEmpty()) {
            if (holesBuilder_.isEmpty()) {
              holesBuilder_.dispose();
              holesBuilder_ = null;
              holes_ = other.holes_;
              bitField0_ = (bitField0_ & ~0x00000010);
              holesBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getHolesFieldBuilder() : null;
            } else {
              holesBuilder_.addAllMessages(other.holes_);
            }
          }
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (!hasArea()) {
          
          return false;
        }
        if (!hasPerimeter()) {
          
          return false;
        }
        if (!hasCenter()) {
          
          return false;
        }
        for (int i = 0; i < getVerticesCount(); i++) {
          if (!getVertices(i).isInitialized()) {
            
            return false;
          }
        }
        if (!getCenter().isInitialized()) {
          
          return false;
        }
        for (int i = 0; i < getHolesCount(); i++) {
          if (!getHoles(i).isInitialized()) {
            
            return false;
          }
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.bwapi.proxy.messages.TerrainMessages.Polygon parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.bwapi.proxy.messages.TerrainMessages.Polygon) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // repeated .messages.Position vertices = 1;
      private java.util.List<org.bwapi.proxy.messages.BasicTypes.Position> vertices_ =
        java.util.Collections.emptyList();
      private void ensureVerticesIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          vertices_ = new java.util.ArrayList<org.bwapi.proxy.messages.BasicTypes.Position>(vertices_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> verticesBuilder_;

      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.BasicTypes.Position> getVerticesList() {
        if (verticesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(vertices_);
        } else {
          return verticesBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public int getVerticesCount() {
        if (verticesBuilder_ == null) {
          return vertices_.size();
        } else {
          return verticesBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position getVertices(int index) {
        if (verticesBuilder_ == null) {
          return vertices_.get(index);
        } else {
          return verticesBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public Builder setVertices(
          int index, org.bwapi.proxy.messages.BasicTypes.Position value) {
        if (verticesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureVerticesIsMutable();
          vertices_.set(index, value);
          onChanged();
        } else {
          verticesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public Builder setVertices(
          int index, org.bwapi.proxy.messages.BasicTypes.Position.Builder builderForValue) {
        if (verticesBuilder_ == null) {
          ensureVerticesIsMutable();
          vertices_.set(index, builderForValue.build());
          onChanged();
        } else {
          verticesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public Builder addVertices(org.bwapi.proxy.messages.BasicTypes.Position value) {
        if (verticesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureVerticesIsMutable();
          vertices_.add(value);
          onChanged();
        } else {
          verticesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public Builder addVertices(
          int index, org.bwapi.proxy.messages.BasicTypes.Position value) {
        if (verticesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureVerticesIsMutable();
          vertices_.add(index, value);
          onChanged();
        } else {
          verticesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public Builder addVertices(
          org.bwapi.proxy.messages.BasicTypes.Position.Builder builderForValue) {
        if (verticesBuilder_ == null) {
          ensureVerticesIsMutable();
          vertices_.add(builderForValue.build());
          onChanged();
        } else {
          verticesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public Builder addVertices(
          int index, org.bwapi.proxy.messages.BasicTypes.Position.Builder builderForValue) {
        if (verticesBuilder_ == null) {
          ensureVerticesIsMutable();
          vertices_.add(index, builderForValue.build());
          onChanged();
        } else {
          verticesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public Builder addAllVertices(
          java.lang.Iterable<? extends org.bwapi.proxy.messages.BasicTypes.Position> values) {
        if (verticesBuilder_ == null) {
          ensureVerticesIsMutable();
          super.addAll(values, vertices_);
          onChanged();
        } else {
          verticesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public Builder clearVertices() {
        if (verticesBuilder_ == null) {
          vertices_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          verticesBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public Builder removeVertices(int index) {
        if (verticesBuilder_ == null) {
          ensureVerticesIsMutable();
          vertices_.remove(index);
          onChanged();
        } else {
          verticesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position.Builder getVerticesBuilder(
          int index) {
        return getVerticesFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getVerticesOrBuilder(
          int index) {
        if (verticesBuilder_ == null) {
          return vertices_.get(index);  } else {
          return verticesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public java.util.List<? extends org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> 
           getVerticesOrBuilderList() {
        if (verticesBuilder_ != null) {
          return verticesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(vertices_);
        }
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position.Builder addVerticesBuilder() {
        return getVerticesFieldBuilder().addBuilder(
            org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position.Builder addVerticesBuilder(
          int index) {
        return getVerticesFieldBuilder().addBuilder(
            index, org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.Position vertices = 1;</code>
       */
      public java.util.List<org.bwapi.proxy.messages.BasicTypes.Position.Builder> 
           getVerticesBuilderList() {
        return getVerticesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> 
          getVerticesFieldBuilder() {
        if (verticesBuilder_ == null) {
          verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder>(
                  vertices_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          vertices_ = null;
        }
        return verticesBuilder_;
      }

      // required double area = 2;
      private double area_ ;
      /**
       * <code>required double area = 2;</code>
       */
      public boolean hasArea() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * <code>required double area = 2;</code>
       */
      public double getArea() {
        return area_;
      }
      /**
       * <code>required double area = 2;</code>
       */
      public Builder setArea(double value) {
        bitField0_ |= 0x00000002;
        area_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required double area = 2;</code>
       */
      public Builder clearArea() {
        bitField0_ = (bitField0_ & ~0x00000002);
        area_ = 0D;
        onChanged();
        return this;
      }

      // required double perimeter = 3;
      private double perimeter_ ;
      /**
       * <code>required double perimeter = 3;</code>
       */
      public boolean hasPerimeter() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * <code>required double perimeter = 3;</code>
       */
      public double getPerimeter() {
        return perimeter_;
      }
      /**
       * <code>required double perimeter = 3;</code>
       */
      public Builder setPerimeter(double value) {
        bitField0_ |= 0x00000004;
        perimeter_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required double perimeter = 3;</code>
       */
      public Builder clearPerimeter() {
        bitField0_ = (bitField0_ & ~0x00000004);
        perimeter_ = 0D;
        onChanged();
        return this;
      }

      // required .messages.Position center = 4;
      private org.bwapi.proxy.messages.BasicTypes.Position center_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> centerBuilder_;
      /**
       * <code>required .messages.Position center = 4;</code>
       */
      public boolean hasCenter() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * <code>required .messages.Position center = 4;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position getCenter() {
        if (centerBuilder_ == null) {
          return center_;
        } else {
          return centerBuilder_.getMessage();
        }
      }
      /**
       * <code>required .messages.Position center = 4;</code>
       */
      public Builder setCenter(org.bwapi.proxy.messages.BasicTypes.Position value) {
        if (centerBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          center_ = value;
          onChanged();
        } else {
          centerBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * <code>required .messages.Position center = 4;</code>
       */
      public Builder setCenter(
          org.bwapi.proxy.messages.BasicTypes.Position.Builder builderForValue) {
        if (centerBuilder_ == null) {
          center_ = builderForValue.build();
          onChanged();
        } else {
          centerBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * <code>required .messages.Position center = 4;</code>
       */
      public Builder mergeCenter(org.bwapi.proxy.messages.BasicTypes.Position value) {
        if (centerBuilder_ == null) {
          if (((bitField0_ & 0x00000008) == 0x00000008) &&
              center_ != org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance()) {
            center_ =
              org.bwapi.proxy.messages.BasicTypes.Position.newBuilder(center_).mergeFrom(value).buildPartial();
          } else {
            center_ = value;
          }
          onChanged();
        } else {
          centerBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000008;
        return this;
      }
      /**
       * <code>required .messages.Position center = 4;</code>
       */
      public Builder clearCenter() {
        if (centerBuilder_ == null) {
          center_ = org.bwapi.proxy.messages.BasicTypes.Position.getDefaultInstance();
          onChanged();
        } else {
          centerBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }
      /**
       * <code>required .messages.Position center = 4;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.Position.Builder getCenterBuilder() {
        bitField0_ |= 0x00000008;
        onChanged();
        return getCenterFieldBuilder().getBuilder();
      }
      /**
       * <code>required .messages.Position center = 4;</code>
       */
      public org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder getCenterOrBuilder() {
        if (centerBuilder_ != null) {
          return centerBuilder_.getMessageOrBuilder();
        } else {
          return center_;
        }
      }
      /**
       * <code>required .messages.Position center = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder> 
          getCenterFieldBuilder() {
        if (centerBuilder_ == null) {
          centerBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.bwapi.proxy.messages.BasicTypes.Position, org.bwapi.proxy.messages.BasicTypes.Position.Builder, org.bwapi.proxy.messages.BasicTypes.PositionOrBuilder>(
                  center_,
                  getParentForChildren(),
                  isClean());
          center_ = null;
        }
        return centerBuilder_;
      }

      // repeated .messages.Polygon holes = 5;
      private java.util.List<org.bwapi.proxy.messages.TerrainMessages.Polygon> holes_ =
        java.util.Collections.emptyList();
      private void ensureHolesIsMutable() {
        if (!((bitField0_ & 0x00000010) == 0x00000010)) {
          holes_ = new java.util.ArrayList<org.bwapi.proxy.messages.TerrainMessages.Polygon>(holes_);
          bitField0_ |= 0x00000010;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.TerrainMessages.Polygon, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder, org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder> holesBuilder_;

      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public java.util.List<org.bwapi.proxy.messages.TerrainMessages.Polygon> getHolesList() {
        if (holesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(holes_);
        } else {
          return holesBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public int getHolesCount() {
        if (holesBuilder_ == null) {
          return holes_.size();
        } else {
          return holesBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Polygon getHoles(int index) {
        if (holesBuilder_ == null) {
          return holes_.get(index);
        } else {
          return holesBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public Builder setHoles(
          int index, org.bwapi.proxy.messages.TerrainMessages.Polygon value) {
        if (holesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureHolesIsMutable();
          holes_.set(index, value);
          onChanged();
        } else {
          holesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public Builder setHoles(
          int index, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder builderForValue) {
        if (holesBuilder_ == null) {
          ensureHolesIsMutable();
          holes_.set(index, builderForValue.build());
          onChanged();
        } else {
          holesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public Builder addHoles(org.bwapi.proxy.messages.TerrainMessages.Polygon value) {
        if (holesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureHolesIsMutable();
          holes_.add(value);
          onChanged();
        } else {
          holesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public Builder addHoles(
          int index, org.bwapi.proxy.messages.TerrainMessages.Polygon value) {
        if (holesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureHolesIsMutable();
          holes_.add(index, value);
          onChanged();
        } else {
          holesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public Builder addHoles(
          org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder builderForValue) {
        if (holesBuilder_ == null) {
          ensureHolesIsMutable();
          holes_.add(builderForValue.build());
          onChanged();
        } else {
          holesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public Builder addHoles(
          int index, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder builderForValue) {
        if (holesBuilder_ == null) {
          ensureHolesIsMutable();
          holes_.add(index, builderForValue.build());
          onChanged();
        } else {
          holesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public Builder addAllHoles(
          java.lang.Iterable<? extends org.bwapi.proxy.messages.TerrainMessages.Polygon> values) {
        if (holesBuilder_ == null) {
          ensureHolesIsMutable();
          super.addAll(values, holes_);
          onChanged();
        } else {
          holesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public Builder clearHoles() {
        if (holesBuilder_ == null) {
          holes_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000010);
          onChanged();
        } else {
          holesBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public Builder removeHoles(int index) {
        if (holesBuilder_ == null) {
          ensureHolesIsMutable();
          holes_.remove(index);
          onChanged();
        } else {
          holesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder getHolesBuilder(
          int index) {
        return getHolesFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder getHolesOrBuilder(
          int index) {
        if (holesBuilder_ == null) {
          return holes_.get(index);  } else {
          return holesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public java.util.List<? extends org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder> 
           getHolesOrBuilderList() {
        if (holesBuilder_ != null) {
          return holesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(holes_);
        }
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder addHolesBuilder() {
        return getHolesFieldBuilder().addBuilder(
            org.bwapi.proxy.messages.TerrainMessages.Polygon.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder addHolesBuilder(
          int index) {
        return getHolesFieldBuilder().addBuilder(
            index, org.bwapi.proxy.messages.TerrainMessages.Polygon.getDefaultInstance());
      }
      /**
       * <code>repeated .messages.Polygon holes = 5;</code>
       *
       * <pre>
       *bool isInside(BWAPI::Position p) const;
       *BWAPI::Position getNearestPoint(BWAPI::Position p) const;
       * </pre>
       */
      public java.util.List<org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder> 
           getHolesBuilderList() {
        return getHolesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          org.bwapi.proxy.messages.TerrainMessages.Polygon, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder, org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder> 
          getHolesFieldBuilder() {
        if (holesBuilder_ == null) {
          holesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              org.bwapi.proxy.messages.TerrainMessages.Polygon, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder, org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder>(
                  holes_,
                  ((bitField0_ & 0x00000010) == 0x00000010),
                  getParentForChildren(),
                  isClean());
          holes_ = null;
        }
        return holesBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:messages.Polygon)
    }

    static {
      defaultInstance = new Polygon(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:messages.Polygon)
  }

  public interface RegionOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // required int32 id = 1;
    /**
     * <code>required int32 id = 1;</code>
     */
    boolean hasId();
    /**
     * <code>required int32 id = 1;</code>
     */
    int getId();

    // required .messages.Polygon polygon = 2;
    /**
     * <code>required .messages.Polygon polygon = 2;</code>
     */
    boolean hasPolygon();
    /**
     * <code>required .messages.Polygon polygon = 2;</code>
     */
    org.bwapi.proxy.messages.TerrainMessages.Polygon getPolygon();
    /**
     * <code>required .messages.Polygon polygon = 2;</code>
     */
    org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder getPolygonOrBuilder();

    // repeated int32 chokepoints = 3;
    /**
     * <code>repeated int32 chokepoints = 3;</code>
     */
    java.util.List<java.lang.Integer> getChokepointsList();
    /**
     * <code>repeated int32 chokepoints = 3;</code>
     */
    int getChokepointsCount();
    /**
     * <code>repeated int32 chokepoints = 3;</code>
     */
    int getChokepoints(int index);

    // repeated int32 baseLocations = 4;
    /**
     * <code>repeated int32 baseLocations = 4;</code>
     */
    java.util.List<java.lang.Integer> getBaseLocationsList();
    /**
     * <code>repeated int32 baseLocations = 4;</code>
     */
    int getBaseLocationsCount();
    /**
     * <code>repeated int32 baseLocations = 4;</code>
     */
    int getBaseLocations(int index);
  }
  /**
   * Protobuf type {@code messages.Region}
   */
  public static final class Region extends
      com.google.protobuf.GeneratedMessage
      implements RegionOrBuilder {
    // Use Region.newBuilder() to construct.
    private Region(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Region(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Region defaultInstance;
    public static Region getDefaultInstance() {
      return defaultInstance;
    }

    public Region getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Region(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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;
              id_ = input.readInt32();
              break;
            }
            case 18: {
              org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder subBuilder = null;
              if (((bitField0_ & 0x00000002) == 0x00000002)) {
                subBuilder = polygon_.toBuilder();
              }
              polygon_ = input.readMessage(org.bwapi.proxy.messages.TerrainMessages.Polygon.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(polygon_);
                polygon_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000002;
              break;
            }
            case 24: {
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
                chokepoints_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000004;
              }
              chokepoints_.add(input.readInt32());
              break;
            }
            case 26: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) {
                chokepoints_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000004;
              }
              while (input.getBytesUntilLimit() > 0) {
                chokepoints_.add(input.readInt32());
              }
              input.popLimit(limit);
              break;
            }
            case 32: {
              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
                baseLocations_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000008;
              }
              baseLocations_.add(input.readInt32());
              break;
            }
            case 34: {
              int length = input.readRawVarint32();
              int limit = input.pushLimit(length);
              if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
                baseLocations_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000008;
              }
              while (input.getBytesUntilLimit() > 0) {
                baseLocations_.add(input.readInt32());
              }
              input.popLimit(limit);
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
          chokepoints_ = java.util.Collections.unmodifiableList(chokepoints_);
        }
        if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
          baseLocations_ = java.util.Collections.unmodifiableList(baseLocations_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Region_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Region_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.bwapi.proxy.messages.TerrainMessages.Region.class, org.bwapi.proxy.messages.TerrainMessages.Region.Builder.class);
    }

    public static com.google.protobuf.Parser<Region> PARSER =
        new com.google.protobuf.AbstractParser<Region>() {
      public Region parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Region(input, extensionRegistry);
      }
    };

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

    private int bitField0_;
    // required int32 id = 1;
    public static final int ID_FIELD_NUMBER = 1;
    private int id_;
    /**
     * <code>required int32 id = 1;</code>
     */
    public boolean hasId() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * <code>required int32 id = 1;</code>
     */
    public int getId() {
      return id_;
    }

    // required .messages.Polygon polygon = 2;
    public static final int POLYGON_FIELD_NUMBER = 2;
    private org.bwapi.proxy.messages.TerrainMessages.Polygon polygon_;
    /**
     * <code>required .messages.Polygon polygon = 2;</code>
     */
    public boolean hasPolygon() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * <code>required .messages.Polygon polygon = 2;</code>
     */
    public org.bwapi.proxy.messages.TerrainMessages.Polygon getPolygon() {
      return polygon_;
    }
    /**
     * <code>required .messages.Polygon polygon = 2;</code>
     */
    public org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder getPolygonOrBuilder() {
      return polygon_;
    }

    // repeated int32 chokepoints = 3;
    public static final int CHOKEPOINTS_FIELD_NUMBER = 3;
    private java.util.List<java.lang.Integer> chokepoints_;
    /**
     * <code>repeated int32 chokepoints = 3;</code>
     */
    public java.util.List<java.lang.Integer>
        getChokepointsList() {
      return chokepoints_;
    }
    /**
     * <code>repeated int32 chokepoints = 3;</code>
     */
    public int getChokepointsCount() {
      return chokepoints_.size();
    }
    /**
     * <code>repeated int32 chokepoints = 3;</code>
     */
    public int getChokepoints(int index) {
      return chokepoints_.get(index);
    }

    // repeated int32 baseLocations = 4;
    public static final int BASELOCATIONS_FIELD_NUMBER = 4;
    private java.util.List<java.lang.Integer> baseLocations_;
    /**
     * <code>repeated int32 baseLocations = 4;</code>
     */
    public java.util.List<java.lang.Integer>
        getBaseLocationsList() {
      return baseLocations_;
    }
    /**
     * <code>repeated int32 baseLocations = 4;</code>
     */
    public int getBaseLocationsCount() {
      return baseLocations_.size();
    }
    /**
     * <code>repeated int32 baseLocations = 4;</code>
     */
    public int getBaseLocations(int index) {
      return baseLocations_.get(index);
    }

    private void initFields() {
      id_ = 0;
      polygon_ = org.bwapi.proxy.messages.TerrainMessages.Polygon.getDefaultInstance();
      chokepoints_ = java.util.Collections.emptyList();
      baseLocations_ = java.util.Collections.emptyList();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (!hasId()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!hasPolygon()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (!getPolygon().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt32(1, id_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeMessage(2, polygon_);
      }
      for (int i = 0; i < chokepoints_.size(); i++) {
        output.writeInt32(3, chokepoints_.get(i));
      }
      for (int i = 0; i < baseLocations_.size(); i++) {
        output.writeInt32(4, baseLocations_.get(i));
      }
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, id_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, polygon_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < chokepoints_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(chokepoints_.get(i));
        }
        size += dataSize;
        size += 1 * getChokepointsList().size();
      }
      {
        int dataSize = 0;
        for (int i = 0; i < baseLocations_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeInt32SizeNoTag(baseLocations_.get(i));
        }
        size += dataSize;
        size += 1 * getBaseLocationsList().size();
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static org.bwapi.proxy.messages.TerrainMessages.Region parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Region parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Region parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Region parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Region parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Region parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Region parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Region parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Region parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static org.bwapi.proxy.messages.TerrainMessages.Region parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(org.bwapi.proxy.messages.TerrainMessages.Region prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code messages.Region}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder<Builder>
       implements org.bwapi.proxy.messages.TerrainMessages.RegionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Region_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Region_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.bwapi.proxy.messages.TerrainMessages.Region.class, org.bwapi.proxy.messages.TerrainMessages.Region.Builder.class);
      }

      // Construct using org.bwapi.proxy.messages.TerrainMessages.Region.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getPolygonFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        id_ = 0;
        bitField0_ = (bitField0_ & ~0x00000001);
        if (polygonBuilder_ == null) {
          polygon_ = org.bwapi.proxy.messages.TerrainMessages.Polygon.getDefaultInstance();
        } else {
          polygonBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        chokepoints_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        baseLocations_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.bwapi.proxy.messages.TerrainMessages.internal_static_messages_Region_descriptor;
      }

      public org.bwapi.proxy.messages.TerrainMessages.Region getDefaultInstanceForType() {
        return org.bwapi.proxy.messages.TerrainMessages.Region.getDefaultInstance();
      }

      public org.bwapi.proxy.messages.TerrainMessages.Region build() {
        org.bwapi.proxy.messages.TerrainMessages.Region result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.bwapi.proxy.messages.TerrainMessages.Region buildPartial() {
        org.bwapi.proxy.messages.TerrainMessages.Region result = new org.bwapi.proxy.messages.TerrainMessages.Region(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.id_ = id_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        if (polygonBuilder_ == null) {
          result.polygon_ = polygon_;
        } else {
          result.polygon_ = polygonBuilder_.build();
        }
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          chokepoints_ = java.util.Collections.unmodifiableList(chokepoints_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.chokepoints_ = chokepoints_;
        if (((bitField0_ & 0x00000008) == 0x00000008)) {
          baseLocations_ = java.util.Collections.unmodifiableList(baseLocations_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.baseLocations_ = baseLocations_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.bwapi.proxy.messages.TerrainMessages.Region) {
          return mergeFrom((org.bwapi.proxy.messages.TerrainMessages.Region)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.bwapi.proxy.messages.TerrainMessages.Region other) {
        if (other == org.bwapi.proxy.messages.TerrainMessages.Region.getDefaultInstance()) return this;
        if (other.hasId()) {
          setId(other.getId());
        }
        if (other.hasPolygon()) {
          mergePolygon(other.getPolygon());
        }
        if (!other.chokepoints_.isEmpty()) {
          if (chokepoints_.isEmpty()) {
            chokepoints_ = other.chokepoints_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureChokepointsIsMutable();
            chokepoints_.addAll(other.chokepoints_);
          }
          onChanged();
        }
        if (!other.baseLocations_.isEmpty()) {
          if (baseLocations_.isEmpty()) {
            baseLocations_ = other.baseLocations_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureBaseLocationsIsMutable();
            baseLocations_.addAll(other.baseLocations_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (!hasId()) {
          
          return false;
        }
        if (!hasPolygon()) {
          
          return false;
        }
        if (!getPolygon().isInitialized()) {
          
          return false;
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        org.bwapi.proxy.messages.TerrainMessages.Region parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.bwapi.proxy.messages.TerrainMessages.Region) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // required int32 id = 1;
      private int id_ ;
      /**
       * <code>required int32 id = 1;</code>
       */
      public boolean hasId() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * <code>required int32 id = 1;</code>
       */
      public int getId() {
        return id_;
      }
      /**
       * <code>required int32 id = 1;</code>
       */
      public Builder setId(int value) {
        bitField0_ |= 0x00000001;
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>required int32 id = 1;</code>
       */
      public Builder clearId() {
        bitField0_ = (bitField0_ & ~0x00000001);
        id_ = 0;
        onChanged();
        return this;
      }

      // required .messages.Polygon polygon = 2;
      private org.bwapi.proxy.messages.TerrainMessages.Polygon polygon_ = org.bwapi.proxy.messages.TerrainMessages.Polygon.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.TerrainMessages.Polygon, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder, org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder> polygonBuilder_;
      /**
       * <code>required .messages.Polygon polygon = 2;</code>
       */
      public boolean hasPolygon() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * <code>required .messages.Polygon polygon = 2;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Polygon getPolygon() {
        if (polygonBuilder_ == null) {
          return polygon_;
        } else {
          return polygonBuilder_.getMessage();
        }
      }
      /**
       * <code>required .messages.Polygon polygon = 2;</code>
       */
      public Builder setPolygon(org.bwapi.proxy.messages.TerrainMessages.Polygon value) {
        if (polygonBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          polygon_ = value;
          onChanged();
        } else {
          polygonBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <code>required .messages.Polygon polygon = 2;</code>
       */
      public Builder setPolygon(
          org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder builderForValue) {
        if (polygonBuilder_ == null) {
          polygon_ = builderForValue.build();
          onChanged();
        } else {
          polygonBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <code>required .messages.Polygon polygon = 2;</code>
       */
      public Builder mergePolygon(org.bwapi.proxy.messages.TerrainMessages.Polygon value) {
        if (polygonBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002) &&
              polygon_ != org.bwapi.proxy.messages.TerrainMessages.Polygon.getDefaultInstance()) {
            polygon_ =
              org.bwapi.proxy.messages.TerrainMessages.Polygon.newBuilder(polygon_).mergeFrom(value).buildPartial();
          } else {
            polygon_ = value;
          }
          onChanged();
        } else {
          polygonBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * <code>required .messages.Polygon polygon = 2;</code>
       */
      public Builder clearPolygon() {
        if (polygonBuilder_ == null) {
          polygon_ = org.bwapi.proxy.messages.TerrainMessages.Polygon.getDefaultInstance();
          onChanged();
        } else {
          polygonBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      /**
       * <code>required .messages.Polygon polygon = 2;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder getPolygonBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getPolygonFieldBuilder().getBuilder();
      }
      /**
       * <code>required .messages.Polygon polygon = 2;</code>
       */
      public org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder getPolygonOrBuilder() {
        if (polygonBuilder_ != null) {
          return polygonBuilder_.getMessageOrBuilder();
        } else {
          return polygon_;
        }
      }
      /**
       * <code>required .messages.Polygon polygon = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilder<
          org.bwapi.proxy.messages.TerrainMessages.Polygon, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder, org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder> 
          getPolygonFieldBuilder() {
        if (polygonBuilder_ == null) {
          polygonBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              org.bwapi.proxy.messages.TerrainMessages.Polygon, org.bwapi.proxy.messages.TerrainMessages.Polygon.Builder, org.bwapi.proxy.messages.TerrainMessages.PolygonOrBuilder>(
                  polygon_,
                  getParentForChildren(),
                  isClean());
          polygon_ = null;
        }
        return polygonBuilder_;
      }

      // repeated int32 chokepoints = 3;
      private java.util.List<java.lang.Integer> chokepoints_ = java.util.Collections.emptyList();
      private void ensureChokepointsIsMutable() {
        if (!((bitField0_ & 0x00000004) == 0x00000004)) {
          chokepoints_ = new java.util.ArrayList<java.lang.Integer>(chokepoints_);
          bitField0_ |= 0x00000004;
         }
      }
      /**
       * <code>repeated int32 chokepoints = 3;</code>
       */
      public java.util.List<java.lang.Integer>
          getChokepointsList() {
        return java.util.Collections.unmodifiableList(chokepoints_);
      }
      /**
       * <code>repeated int32 chokepoints = 3;</code>
       */
      public int getChokepointsCount() {
        return chokepoints_.size();
      }
      /**
       * <code>repeated int32 chokepoints = 3;</code>
       */
      public int getChokepoints(int index) {
        return chokepoints_.get(index);
      }
      /**
       * <code>repeated int32 chokepoints = 3;</code>
       */
      public Builder setChokepoints(
          int index, int value) {
        ensureChokepointsIsMutable();
        chokepoints_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 chokepoints = 3;</code>
       */
      public Builder addChokepoints(int value) {
        ensureChokepointsIsMutable();
        chokepoints_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 chokepoints = 3;</code>
       */
      public Builder addAllChokepoints(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureChokepointsIsMutable();
        super.addAll(values, chokepoints_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 chokepoints = 3;</code>
       */
      public Builder clearChokepoints() {
        chokepoints_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
        return this;
      }

      // repeated int32 baseLocations = 4;
      private java.util.List<java.lang.Integer> baseLocations_ = java.util.Collections.emptyList();
      private void ensureBaseLocationsIsMutable() {
        if (!((bitField0_ & 0x00000008) == 0x00000008)) {
          baseLocations_ = new java.util.ArrayList<java.lang.Integer>(baseLocations_);
          bitField0_ |= 0x00000008;
         }
      }
      /**
       * <code>repeated int32 baseLocations = 4;</code>
       */
      public java.util.List<java.lang.Integer>
          getBaseLocationsList() {
        return java.util.Collections.unmodifiableList(baseLocations_);
      }
      /**
       * <code>repeated int32 baseLocations = 4;</code>
       */
      public int getBaseLocationsCount() {
        return baseLocations_.size();
      }
      /**
       * <code>repeated int32 baseLocations = 4;</code>
       */
      public int getBaseLocations(int index) {
        return baseLocations_.get(index);
      }
      /**
       * <code>repeated int32 baseLocations = 4;</code>
       */
      public Builder setBaseLocations(
          int index, int value) {
        ensureBaseLocationsIsMutable();
        baseLocations_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 baseLocations = 4;</code>
       */
      public Builder addBaseLocations(int value) {
        ensureBaseLocationsIsMutable();
        baseLocations_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 baseLocations = 4;</code>
       */
      public Builder addAllBaseLocations(
          java.lang.Iterable<? extends java.lang.Integer> values) {
        ensureBaseLocationsIsMutable();
        super.addAll(values, baseLocations_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated int32 baseLocations = 4;</code>
       */
      public Builder clearBaseLocations() {
        baseLocations_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:messages.Region)
    }

    static {
      defaultInstance = new Region(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:messages.Region)
  }

  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_messages_DynamicTerrainInfo_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_messages_DynamicTerrainInfo_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_messages_StaticTerrainInfo_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_messages_StaticTerrainInfo_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_messages_BaseLocation_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_messages_BaseLocation_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_messages_Chokepoint_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_messages_Chokepoint_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_messages_Polygon_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_messages_Polygon_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_messages_Region_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_messages_Region_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\rterrain.proto\022\010messages\032\013types.proto\032\n" +
      "unit.proto\"M\n\022DynamicTerrainInfo\022\021\n\tisVi" +
      "sible\030\003 \003(\007\022\022\n\nisExplored\030\004 \003(\007\022\020\n\010hasCr" +
      "eep\030\005 \003(\007\"\326\001\n\021StaticTerrainInfo\022!\n\007regio" +
      "ns\030\001 \003(\0132\020.messages.Region\022)\n\013chokepoint" +
      "s\030\002 \003(\0132\024.messages.Chokepoint\022-\n\rbaseLoc" +
      "ations\030\003 \003(\0132\026.messages.BaseLocation\022\026\n\016" +
      "startLocations\030\004 \003(\005\022,\n\021unwalkablePolygo" +
      "n\030\005 \003(\0132\021.messages.Polygon\"\320\002\n\014BaseLocat" +
      "ion\022\n\n\002id\030\014 \002(\005\022$\n\010position\030\001 \002(\0132\022.mess",
      "ages.Position\022,\n\014tilePosition\030\r \002(\0132\026.me" +
      "ssages.TilePosition\022\016\n\006region\030\002 \002(\005\022\023\n\013n" +
      "umMinerals\030\003 \002(\005\022\016\n\006numGas\030\004 \002(\005\022\"\n\010mine" +
      "rals\030\005 \003(\0132\020.messages.UnitId\022(\n\016staticMi" +
      "nerals\030\006 \003(\0132\020.messages.UnitId\022!\n\007geyser" +
      "s\030\007 \003(\0132\020.messages.UnitId\022\016\n\006island\030\010 \002(" +
      "\010\022\023\n\013mineralOnly\030\n \002(\010\022\025\n\rstartLocation\030" +
      "\013 \002(\010\"\263\001\n\nChokepoint\022\n\n\002id\030\007 \002(\005\022\017\n\007regi" +
      "on1\030\001 \002(\005\022\017\n\007region2\030\002 \002(\005\022!\n\005side1\030\003 \002(" +
      "\0132\022.messages.Position\022!\n\005side2\030\004 \002(\0132\022.m",
      "essages.Position\022\"\n\006center\030\005 \002(\0132\022.messa" +
      "ges.Position\022\r\n\005width\030\006 \002(\001\"\226\001\n\007Polygon\022" +
      "$\n\010vertices\030\001 \003(\0132\022.messages.Position\022\014\n" +
      "\004area\030\002 \002(\001\022\021\n\tperimeter\030\003 \002(\001\022\"\n\006center" +
      "\030\004 \002(\0132\022.messages.Position\022 \n\005holes\030\005 \003(" +
      "\0132\021.messages.Polygon\"d\n\006Region\022\n\n\002id\030\001 \002" +
      "(\005\022\"\n\007polygon\030\002 \002(\0132\021.messages.Polygon\022\023" +
      "\n\013chokepoints\030\003 \003(\005\022\025\n\rbaseLocations\030\004 \003" +
      "(\005B+\n\030org.bwapi.proxy.messagesB\017TerrainM" +
      "essages"
    };
    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;
          internal_static_messages_DynamicTerrainInfo_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_messages_DynamicTerrainInfo_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_messages_DynamicTerrainInfo_descriptor,
              new java.lang.String[] { "IsVisible", "IsExplored", "HasCreep", });
          internal_static_messages_StaticTerrainInfo_descriptor =
            getDescriptor().getMessageTypes().get(1);
          internal_static_messages_StaticTerrainInfo_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_messages_StaticTerrainInfo_descriptor,
              new java.lang.String[] { "Regions", "Chokepoints", "BaseLocations", "StartLocations", "UnwalkablePolygon", });
          internal_static_messages_BaseLocation_descriptor =
            getDescriptor().getMessageTypes().get(2);
          internal_static_messages_BaseLocation_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_messages_BaseLocation_descriptor,
              new java.lang.String[] { "Id", "Position", "TilePosition", "Region", "NumMinerals", "NumGas", "Minerals", "StaticMinerals", "Geysers", "Island", "MineralOnly", "StartLocation", });
          internal_static_messages_Chokepoint_descriptor =
            getDescriptor().getMessageTypes().get(3);
          internal_static_messages_Chokepoint_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_messages_Chokepoint_descriptor,
              new java.lang.String[] { "Id", "Region1", "Region2", "Side1", "Side2", "Center", "Width", });
          internal_static_messages_Polygon_descriptor =
            getDescriptor().getMessageTypes().get(4);
          internal_static_messages_Polygon_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_messages_Polygon_descriptor,
              new java.lang.String[] { "Vertices", "Area", "Perimeter", "Center", "Holes", });
          internal_static_messages_Region_descriptor =
            getDescriptor().getMessageTypes().get(5);
          internal_static_messages_Region_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_messages_Region_descriptor,
              new java.lang.String[] { "Id", "Polygon", "Chokepoints", "BaseLocations", });
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          org.bwapi.proxy.messages.BasicTypes.getDescriptor(),
          org.bwapi.proxy.messages.GameMessages.getDescriptor(),
        }