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

apsara.odps.cupid.protocol.ProxyAm Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proxy_am.proto

package apsara.odps.cupid.protocol;

public final class ProxyAm {
  private ProxyAm() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface VoidOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.Void}
   */
  public static final class Void extends
      com.google.protobuf.GeneratedMessage
      implements VoidOrBuilder {
    // Use Void.newBuilder() to construct.
    private Void(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Void(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public Void getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Void(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw 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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Void_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Void_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.ProxyAm.Void.class, apsara.odps.cupid.protocol.ProxyAm.Void.Builder.class);
    }

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

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

    private void initFields() {
    }
    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();
      getUnknownFields().writeTo(output);
    }

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

      size = 0;
      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 apsara.odps.cupid.protocol.ProxyAm.Void parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Void parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Void parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Void parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Void parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Void parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Void parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Void parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Void parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Void 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(apsara.odps.cupid.protocol.ProxyAm.Void 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 apsara.odps.cupid.protocol.Void}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.ProxyAm.VoidOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Void_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Void_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.ProxyAm.Void.class, apsara.odps.cupid.protocol.ProxyAm.Void.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.ProxyAm.Void.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();
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Void_descriptor;
      }

      public apsara.odps.cupid.protocol.ProxyAm.Void getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.ProxyAm.Void.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.ProxyAm.Void build() {
        apsara.odps.cupid.protocol.ProxyAm.Void result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.ProxyAm.Void buildPartial() {
        apsara.odps.cupid.protocol.ProxyAm.Void result = new apsara.odps.cupid.protocol.ProxyAm.Void(this);
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.ProxyAm.Void) {
          return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.Void)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.Void other) {
        if (other == apsara.odps.cupid.protocol.ProxyAm.Void.getDefaultInstance()) return this;
        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 {
        apsara.odps.cupid.protocol.ProxyAm.Void parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.Void) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.Void)
    }

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

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.Void)
  }

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

    // optional string value = 1;
    /**
     * optional string value = 1;
     */
    boolean hasValue();
    /**
     * optional string value = 1;
     */
    java.lang.String getValue();
    /**
     * optional string value = 1;
     */
    com.google.protobuf.ByteString
        getValueBytes();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.String}
   */
  public static final class String extends
      com.google.protobuf.GeneratedMessage
      implements StringOrBuilder {
    // Use String.newBuilder() to construct.
    private String(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private String(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public String getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private String(
        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: {
              bitField0_ |= 0x00000001;
              value_ = input.readBytes();
              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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_String_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_String_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.ProxyAm.String.class, apsara.odps.cupid.protocol.ProxyAm.String.Builder.class);
    }

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

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

    private int bitField0_;
    // optional string value = 1;
    public static final int VALUE_FIELD_NUMBER = 1;
    private java.lang.Object value_;
    /**
     * optional string value = 1;
     */
    public boolean hasValue() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string value = 1;
     */
    public java.lang.String getValue() {
      java.lang.Object ref = value_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          value_ = s;
        }
        return s;
      }
    }
    /**
     * optional string value = 1;
     */
    public com.google.protobuf.ByteString
        getValueBytes() {
      java.lang.Object ref = value_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        value_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      value_ = "";
    }
    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();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getValueBytes());
      }
      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
          .computeBytesSize(1, getValueBytes());
      }
      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 apsara.odps.cupid.protocol.ProxyAm.String parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.String parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.String parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.String parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.String parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.String parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.String parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.String parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.String parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.String 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(apsara.odps.cupid.protocol.ProxyAm.String 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 apsara.odps.cupid.protocol.String}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.ProxyAm.StringOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_String_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_String_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.ProxyAm.String.class, apsara.odps.cupid.protocol.ProxyAm.String.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.ProxyAm.String.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();
        value_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_String_descriptor;
      }

      public apsara.odps.cupid.protocol.ProxyAm.String getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.ProxyAm.String build() {
        apsara.odps.cupid.protocol.ProxyAm.String result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.ProxyAm.String buildPartial() {
        apsara.odps.cupid.protocol.ProxyAm.String result = new apsara.odps.cupid.protocol.ProxyAm.String(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.value_ = value_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.ProxyAm.String) {
          return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.String)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.String other) {
        if (other == apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance()) return this;
        if (other.hasValue()) {
          bitField0_ |= 0x00000001;
          value_ = other.value_;
          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 {
        apsara.odps.cupid.protocol.ProxyAm.String parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.String) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional string value = 1;
      private java.lang.Object value_ = "";
      /**
       * optional string value = 1;
       */
      public boolean hasValue() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional string value = 1;
       */
      public java.lang.String getValue() {
        java.lang.Object ref = value_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          value_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string value = 1;
       */
      public com.google.protobuf.ByteString
          getValueBytes() {
        java.lang.Object ref = value_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          value_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string value = 1;
       */
      public Builder setValue(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        value_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string value = 1;
       */
      public Builder clearValue() {
        bitField0_ = (bitField0_ & ~0x00000001);
        value_ = getDefaultInstance().getValue();
        onChanged();
        return this;
      }
      /**
       * optional string value = 1;
       */
      public Builder setValueBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        value_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.String)
    }

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

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.String)
  }

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

    // optional int32 value = 1;
    /**
     * optional int32 value = 1;
     */
    boolean hasValue();
    /**
     * optional int32 value = 1;
     */
    int getValue();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.Int}
   */
  public static final class Int extends
      com.google.protobuf.GeneratedMessage
      implements IntOrBuilder {
    // Use Int.newBuilder() to construct.
    private Int(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Int(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public Int getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Int(
        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;
              value_ = 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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Int_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Int_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.ProxyAm.Int.class, apsara.odps.cupid.protocol.ProxyAm.Int.Builder.class);
    }

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

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

    private int bitField0_;
    // optional int32 value = 1;
    public static final int VALUE_FIELD_NUMBER = 1;
    private int value_;
    /**
     * optional int32 value = 1;
     */
    public boolean hasValue() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional int32 value = 1;
     */
    public int getValue() {
      return value_;
    }

    private void initFields() {
      value_ = 0;
    }
    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();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt32(1, value_);
      }
      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, value_);
      }
      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 apsara.odps.cupid.protocol.ProxyAm.Int parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Int parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Int parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Int parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Int parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Int parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Int parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Int parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Int parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Int 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(apsara.odps.cupid.protocol.ProxyAm.Int 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 apsara.odps.cupid.protocol.Int}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.ProxyAm.IntOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Int_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Int_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.ProxyAm.Int.class, apsara.odps.cupid.protocol.ProxyAm.Int.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.ProxyAm.Int.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();
        value_ = 0;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Int_descriptor;
      }

      public apsara.odps.cupid.protocol.ProxyAm.Int getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.ProxyAm.Int build() {
        apsara.odps.cupid.protocol.ProxyAm.Int result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.ProxyAm.Int buildPartial() {
        apsara.odps.cupid.protocol.ProxyAm.Int result = new apsara.odps.cupid.protocol.ProxyAm.Int(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.value_ = value_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.ProxyAm.Int) {
          return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.Int)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.Int other) {
        if (other == apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance()) return this;
        if (other.hasValue()) {
          setValue(other.getValue());
        }
        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 {
        apsara.odps.cupid.protocol.ProxyAm.Int parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.Int) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional int32 value = 1;
      private int value_ ;
      /**
       * optional int32 value = 1;
       */
      public boolean hasValue() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional int32 value = 1;
       */
      public int getValue() {
        return value_;
      }
      /**
       * optional int32 value = 1;
       */
      public Builder setValue(int value) {
        bitField0_ |= 0x00000001;
        value_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 value = 1;
       */
      public Builder clearValue() {
        bitField0_ = (bitField0_ & ~0x00000001);
        value_ = 0;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.Int)
    }

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

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.Int)
  }

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

    // optional bool value = 1;
    /**
     * optional bool value = 1;
     */
    boolean hasValue();
    /**
     * optional bool value = 1;
     */
    boolean getValue();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.Bool}
   */
  public static final class Bool extends
      com.google.protobuf.GeneratedMessage
      implements BoolOrBuilder {
    // Use Bool.newBuilder() to construct.
    private Bool(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Bool(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public Bool getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Bool(
        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;
              value_ = input.readBool();
              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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Bool_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Bool_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.ProxyAm.Bool.class, apsara.odps.cupid.protocol.ProxyAm.Bool.Builder.class);
    }

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

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

    private int bitField0_;
    // optional bool value = 1;
    public static final int VALUE_FIELD_NUMBER = 1;
    private boolean value_;
    /**
     * optional bool value = 1;
     */
    public boolean hasValue() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional bool value = 1;
     */
    public boolean getValue() {
      return value_;
    }

    private void initFields() {
      value_ = false;
    }
    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();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBool(1, value_);
      }
      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
          .computeBoolSize(1, value_);
      }
      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 apsara.odps.cupid.protocol.ProxyAm.Bool parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Bool parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Bool parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Bool parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Bool parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Bool parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Bool parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Bool parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Bool parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.Bool 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(apsara.odps.cupid.protocol.ProxyAm.Bool 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 apsara.odps.cupid.protocol.Bool}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.ProxyAm.BoolOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Bool_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Bool_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.ProxyAm.Bool.class, apsara.odps.cupid.protocol.ProxyAm.Bool.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.ProxyAm.Bool.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();
        value_ = false;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_Bool_descriptor;
      }

      public apsara.odps.cupid.protocol.ProxyAm.Bool getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.ProxyAm.Bool.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.ProxyAm.Bool build() {
        apsara.odps.cupid.protocol.ProxyAm.Bool result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.ProxyAm.Bool buildPartial() {
        apsara.odps.cupid.protocol.ProxyAm.Bool result = new apsara.odps.cupid.protocol.ProxyAm.Bool(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.value_ = value_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.ProxyAm.Bool) {
          return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.Bool)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.Bool other) {
        if (other == apsara.odps.cupid.protocol.ProxyAm.Bool.getDefaultInstance()) return this;
        if (other.hasValue()) {
          setValue(other.getValue());
        }
        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 {
        apsara.odps.cupid.protocol.ProxyAm.Bool parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.Bool) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional bool value = 1;
      private boolean value_ ;
      /**
       * optional bool value = 1;
       */
      public boolean hasValue() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional bool value = 1;
       */
      public boolean getValue() {
        return value_;
      }
      /**
       * optional bool value = 1;
       */
      public Builder setValue(boolean value) {
        bitField0_ |= 0x00000001;
        value_ = value;
        onChanged();
        return this;
      }
      /**
       * optional bool value = 1;
       */
      public Builder clearValue() {
        bitField0_ = (bitField0_ & ~0x00000001);
        value_ = false;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.Bool)
    }

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

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.Bool)
  }

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

    // optional string key = 1;
    /**
     * optional string key = 1;
     */
    boolean hasKey();
    /**
     * optional string key = 1;
     */
    java.lang.String getKey();
    /**
     * optional string key = 1;
     */
    com.google.protobuf.ByteString
        getKeyBytes();

    // optional string value = 2;
    /**
     * optional string value = 2;
     */
    boolean hasValue();
    /**
     * optional string value = 2;
     */
    java.lang.String getValue();
    /**
     * optional string value = 2;
     */
    com.google.protobuf.ByteString
        getValueBytes();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.StringToStringPair}
   */
  public static final class StringToStringPair extends
      com.google.protobuf.GeneratedMessage
      implements StringToStringPairOrBuilder {
    // Use StringToStringPair.newBuilder() to construct.
    private StringToStringPair(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private StringToStringPair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public StringToStringPair getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private StringToStringPair(
        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: {
              bitField0_ |= 0x00000001;
              key_ = input.readBytes();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              value_ = input.readBytes();
              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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_StringToStringPair_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_StringToStringPair_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.class, apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.Builder.class);
    }

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

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

    private int bitField0_;
    // optional string key = 1;
    public static final int KEY_FIELD_NUMBER = 1;
    private java.lang.Object key_;
    /**
     * optional string key = 1;
     */
    public boolean hasKey() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string key = 1;
     */
    public java.lang.String getKey() {
      java.lang.Object ref = key_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          key_ = s;
        }
        return s;
      }
    }
    /**
     * optional string key = 1;
     */
    public com.google.protobuf.ByteString
        getKeyBytes() {
      java.lang.Object ref = key_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        key_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string value = 2;
    public static final int VALUE_FIELD_NUMBER = 2;
    private java.lang.Object value_;
    /**
     * optional string value = 2;
     */
    public boolean hasValue() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional string value = 2;
     */
    public java.lang.String getValue() {
      java.lang.Object ref = value_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          value_ = s;
        }
        return s;
      }
    }
    /**
     * optional string value = 2;
     */
    public com.google.protobuf.ByteString
        getValueBytes() {
      java.lang.Object ref = value_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        value_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      key_ = "";
      value_ = "";
    }
    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();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getKeyBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getValueBytes());
      }
      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
          .computeBytesSize(1, getKeyBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getValueBytes());
      }
      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 apsara.odps.cupid.protocol.ProxyAm.StringToStringPair parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.StringToStringPair parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.StringToStringPair parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.StringToStringPair parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.StringToStringPair parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.StringToStringPair parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.StringToStringPair parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.StringToStringPair parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.StringToStringPair parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.StringToStringPair 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(apsara.odps.cupid.protocol.ProxyAm.StringToStringPair 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 apsara.odps.cupid.protocol.StringToStringPair}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.ProxyAm.StringToStringPairOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_StringToStringPair_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_StringToStringPair_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.class, apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.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();
        key_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        value_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_StringToStringPair_descriptor;
      }

      public apsara.odps.cupid.protocol.ProxyAm.StringToStringPair getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.ProxyAm.StringToStringPair build() {
        apsara.odps.cupid.protocol.ProxyAm.StringToStringPair result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.ProxyAm.StringToStringPair buildPartial() {
        apsara.odps.cupid.protocol.ProxyAm.StringToStringPair result = new apsara.odps.cupid.protocol.ProxyAm.StringToStringPair(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.key_ = key_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.value_ = value_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.ProxyAm.StringToStringPair) {
          return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.StringToStringPair)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.StringToStringPair other) {
        if (other == apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.getDefaultInstance()) return this;
        if (other.hasKey()) {
          bitField0_ |= 0x00000001;
          key_ = other.key_;
          onChanged();
        }
        if (other.hasValue()) {
          bitField0_ |= 0x00000002;
          value_ = other.value_;
          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 {
        apsara.odps.cupid.protocol.ProxyAm.StringToStringPair parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.StringToStringPair) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional string key = 1;
      private java.lang.Object key_ = "";
      /**
       * optional string key = 1;
       */
      public boolean hasKey() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional string key = 1;
       */
      public java.lang.String getKey() {
        java.lang.Object ref = key_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          key_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string key = 1;
       */
      public com.google.protobuf.ByteString
          getKeyBytes() {
        java.lang.Object ref = key_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          key_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string key = 1;
       */
      public Builder setKey(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        key_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string key = 1;
       */
      public Builder clearKey() {
        bitField0_ = (bitField0_ & ~0x00000001);
        key_ = getDefaultInstance().getKey();
        onChanged();
        return this;
      }
      /**
       * optional string key = 1;
       */
      public Builder setKeyBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        key_ = value;
        onChanged();
        return this;
      }

      // optional string value = 2;
      private java.lang.Object value_ = "";
      /**
       * optional string value = 2;
       */
      public boolean hasValue() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional string value = 2;
       */
      public java.lang.String getValue() {
        java.lang.Object ref = value_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          value_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string value = 2;
       */
      public com.google.protobuf.ByteString
          getValueBytes() {
        java.lang.Object ref = value_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          value_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string value = 2;
       */
      public Builder setValue(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        value_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string value = 2;
       */
      public Builder clearValue() {
        bitField0_ = (bitField0_ & ~0x00000002);
        value_ = getDefaultInstance().getValue();
        onChanged();
        return this;
      }
      /**
       * optional string value = 2;
       */
      public Builder setValueBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        value_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.StringToStringPair)
    }

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

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.StringToStringPair)
  }

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

    // optional int32 type = 1;
    /**
     * optional int32 type = 1;
     */
    boolean hasType();
    /**
     * optional int32 type = 1;
     */
    int getType();

    // optional string name = 2;
    /**
     * optional string name = 2;
     */
    boolean hasName();
    /**
     * optional string name = 2;
     */
    java.lang.String getName();
    /**
     * optional string name = 2;
     */
    com.google.protobuf.ByteString
        getNameBytes();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.ResourceLocation}
   */
  public static final class ResourceLocation extends
      com.google.protobuf.GeneratedMessage
      implements ResourceLocationOrBuilder {
    // Use ResourceLocation.newBuilder() to construct.
    private ResourceLocation(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private ResourceLocation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public ResourceLocation getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private ResourceLocation(
        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;
              type_ = input.readInt32();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              name_ = input.readBytes();
              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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceLocation_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceLocation_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.class, apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder.class);
    }

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

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

    private int bitField0_;
    // optional int32 type = 1;
    public static final int TYPE_FIELD_NUMBER = 1;
    private int type_;
    /**
     * optional int32 type = 1;
     */
    public boolean hasType() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional int32 type = 1;
     */
    public int getType() {
      return type_;
    }

    // optional string name = 2;
    public static final int NAME_FIELD_NUMBER = 2;
    private java.lang.Object name_;
    /**
     * optional string name = 2;
     */
    public boolean hasName() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional string name = 2;
     */
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          name_ = s;
        }
        return s;
      }
    }
    /**
     * optional string name = 2;
     */
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private void initFields() {
      type_ = 0;
      name_ = "";
    }
    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();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt32(1, type_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getNameBytes());
      }
      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, type_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getNameBytes());
      }
      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 apsara.odps.cupid.protocol.ProxyAm.ResourceLocation parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceLocation parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceLocation parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceLocation parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceLocation parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceLocation parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceLocation parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceLocation parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceLocation parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceLocation 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(apsara.odps.cupid.protocol.ProxyAm.ResourceLocation 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 apsara.odps.cupid.protocol.ResourceLocation}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.ProxyAm.ResourceLocationOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceLocation_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceLocation_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.class, apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.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();
        type_ = 0;
        bitField0_ = (bitField0_ & ~0x00000001);
        name_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceLocation_descriptor;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceLocation getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceLocation build() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceLocation result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceLocation buildPartial() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceLocation result = new apsara.odps.cupid.protocol.ProxyAm.ResourceLocation(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.type_ = type_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.name_ = name_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.ProxyAm.ResourceLocation) {
          return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.ResourceLocation)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.ResourceLocation other) {
        if (other == apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.getDefaultInstance()) return this;
        if (other.hasType()) {
          setType(other.getType());
        }
        if (other.hasName()) {
          bitField0_ |= 0x00000002;
          name_ = other.name_;
          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 {
        apsara.odps.cupid.protocol.ProxyAm.ResourceLocation parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.ResourceLocation) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional int32 type = 1;
      private int type_ ;
      /**
       * optional int32 type = 1;
       */
      public boolean hasType() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional int32 type = 1;
       */
      public int getType() {
        return type_;
      }
      /**
       * optional int32 type = 1;
       */
      public Builder setType(int value) {
        bitField0_ |= 0x00000001;
        type_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 type = 1;
       */
      public Builder clearType() {
        bitField0_ = (bitField0_ & ~0x00000001);
        type_ = 0;
        onChanged();
        return this;
      }

      // optional string name = 2;
      private java.lang.Object name_ = "";
      /**
       * optional string name = 2;
       */
      public boolean hasName() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional string name = 2;
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string name = 2;
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string name = 2;
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string name = 2;
       */
      public Builder clearName() {
        bitField0_ = (bitField0_ & ~0x00000002);
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * optional string name = 2;
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        name_ = value;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.ResourceLocation)
    }

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

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.ResourceLocation)
  }

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

    // optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
    /**
     * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
     */
    boolean hasLocation();
    /**
     * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceLocation getLocation();
    /**
     * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceLocationOrBuilder getLocationOrBuilder();

    // optional int32 count = 2;
    /**
     * optional int32 count = 2;
     */
    boolean hasCount();
    /**
     * optional int32 count = 2;
     */
    int getCount();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.ResourceAskItem}
   */
  public static final class ResourceAskItem extends
      com.google.protobuf.GeneratedMessage
      implements ResourceAskItemOrBuilder {
    // Use ResourceAskItem.newBuilder() to construct.
    private ResourceAskItem(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private ResourceAskItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public ResourceAskItem getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private ResourceAskItem(
        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: {
              apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = location_.toBuilder();
              }
              location_ = input.readMessage(apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(location_);
                location_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              count_ = 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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceAskItem_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceAskItem_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.class, apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.Builder.class);
    }

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

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

    private int bitField0_;
    // optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
    public static final int LOCATION_FIELD_NUMBER = 1;
    private apsara.odps.cupid.protocol.ProxyAm.ResourceLocation location_;
    /**
     * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
     */
    public boolean hasLocation() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceLocation getLocation() {
      return location_;
    }
    /**
     * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceLocationOrBuilder getLocationOrBuilder() {
      return location_;
    }

    // optional int32 count = 2;
    public static final int COUNT_FIELD_NUMBER = 2;
    private int count_;
    /**
     * optional int32 count = 2;
     */
    public boolean hasCount() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional int32 count = 2;
     */
    public int getCount() {
      return count_;
    }

    private void initFields() {
      location_ = apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.getDefaultInstance();
      count_ = 0;
    }
    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();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeMessage(1, location_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt32(2, count_);
      }
      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
          .computeMessageSize(1, location_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, count_);
      }
      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 apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem 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(apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem 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 apsara.odps.cupid.protocol.ResourceAskItem}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.ProxyAm.ResourceAskItemOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceAskItem_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceAskItem_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.class, apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      public Builder clear() {
        super.clear();
        if (locationBuilder_ == null) {
          location_ = apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.getDefaultInstance();
        } else {
          locationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        count_ = 0;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceAskItem_descriptor;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem build() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem buildPartial() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem result = new apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (locationBuilder_ == null) {
          result.location_ = location_;
        } else {
          result.location_ = locationBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.count_ = count_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem) {
          return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem other) {
        if (other == apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.getDefaultInstance()) return this;
        if (other.hasLocation()) {
          mergeLocation(other.getLocation());
        }
        if (other.hasCount()) {
          setCount(other.getCount());
        }
        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 {
        apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
      private apsara.odps.cupid.protocol.ProxyAm.ResourceLocation location_ = apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceLocation, apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceLocationOrBuilder> locationBuilder_;
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public boolean hasLocation() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceLocation getLocation() {
        if (locationBuilder_ == null) {
          return location_;
        } else {
          return locationBuilder_.getMessage();
        }
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public Builder setLocation(apsara.odps.cupid.protocol.ProxyAm.ResourceLocation value) {
        if (locationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          location_ = value;
          onChanged();
        } else {
          locationBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public Builder setLocation(
          apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder builderForValue) {
        if (locationBuilder_ == null) {
          location_ = builderForValue.build();
          onChanged();
        } else {
          locationBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public Builder mergeLocation(apsara.odps.cupid.protocol.ProxyAm.ResourceLocation value) {
        if (locationBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              location_ != apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.getDefaultInstance()) {
            location_ =
              apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.newBuilder(location_).mergeFrom(value).buildPartial();
          } else {
            location_ = value;
          }
          onChanged();
        } else {
          locationBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public Builder clearLocation() {
        if (locationBuilder_ == null) {
          location_ = apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.getDefaultInstance();
          onChanged();
        } else {
          locationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder getLocationBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getLocationFieldBuilder().getBuilder();
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceLocationOrBuilder getLocationOrBuilder() {
        if (locationBuilder_ != null) {
          return locationBuilder_.getMessageOrBuilder();
        } else {
          return location_;
        }
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceLocation, apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceLocationOrBuilder> 
          getLocationFieldBuilder() {
        if (locationBuilder_ == null) {
          locationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              apsara.odps.cupid.protocol.ProxyAm.ResourceLocation, apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceLocationOrBuilder>(
                  location_,
                  getParentForChildren(),
                  isClean());
          location_ = null;
        }
        return locationBuilder_;
      }

      // optional int32 count = 2;
      private int count_ ;
      /**
       * optional int32 count = 2;
       */
      public boolean hasCount() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional int32 count = 2;
       */
      public int getCount() {
        return count_;
      }
      /**
       * optional int32 count = 2;
       */
      public Builder setCount(int value) {
        bitField0_ |= 0x00000002;
        count_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 count = 2;
       */
      public Builder clearCount() {
        bitField0_ = (bitField0_ & ~0x00000002);
        count_ = 0;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.ResourceAskItem)
    }

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

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.ResourceAskItem)
  }

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

    // optional string machine = 1;
    /**
     * optional string machine = 1;
     */
    boolean hasMachine();
    /**
     * optional string machine = 1;
     */
    java.lang.String getMachine();
    /**
     * optional string machine = 1;
     */
    com.google.protobuf.ByteString
        getMachineBytes();

    // optional int32 count = 2;
    /**
     * optional int32 count = 2;
     */
    boolean hasCount();
    /**
     * optional int32 count = 2;
     */
    int getCount();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.ResourceMachineItem}
   */
  public static final class ResourceMachineItem extends
      com.google.protobuf.GeneratedMessage
      implements ResourceMachineItemOrBuilder {
    // Use ResourceMachineItem.newBuilder() to construct.
    private ResourceMachineItem(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private ResourceMachineItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public ResourceMachineItem getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private ResourceMachineItem(
        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: {
              bitField0_ |= 0x00000001;
              machine_ = input.readBytes();
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              count_ = 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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceMachineItem_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceMachineItem_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.class, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder.class);
    }

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

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

    private int bitField0_;
    // optional string machine = 1;
    public static final int MACHINE_FIELD_NUMBER = 1;
    private java.lang.Object machine_;
    /**
     * optional string machine = 1;
     */
    public boolean hasMachine() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string machine = 1;
     */
    public java.lang.String getMachine() {
      java.lang.Object ref = machine_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          machine_ = s;
        }
        return s;
      }
    }
    /**
     * optional string machine = 1;
     */
    public com.google.protobuf.ByteString
        getMachineBytes() {
      java.lang.Object ref = machine_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        machine_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional int32 count = 2;
    public static final int COUNT_FIELD_NUMBER = 2;
    private int count_;
    /**
     * optional int32 count = 2;
     */
    public boolean hasCount() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional int32 count = 2;
     */
    public int getCount() {
      return count_;
    }

    private void initFields() {
      machine_ = "";
      count_ = 0;
    }
    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();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getMachineBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt32(2, count_);
      }
      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
          .computeBytesSize(1, getMachineBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(2, count_);
      }
      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 apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem 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(apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem 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 apsara.odps.cupid.protocol.ResourceMachineItem}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceMachineItem_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceMachineItem_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.class, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.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();
        machine_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        count_ = 0;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceMachineItem_descriptor;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem build() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem buildPartial() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem result = new apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.machine_ = machine_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.count_ = count_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem) {
          return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem other) {
        if (other == apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.getDefaultInstance()) return this;
        if (other.hasMachine()) {
          bitField0_ |= 0x00000001;
          machine_ = other.machine_;
          onChanged();
        }
        if (other.hasCount()) {
          setCount(other.getCount());
        }
        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 {
        apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional string machine = 1;
      private java.lang.Object machine_ = "";
      /**
       * optional string machine = 1;
       */
      public boolean hasMachine() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional string machine = 1;
       */
      public java.lang.String getMachine() {
        java.lang.Object ref = machine_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          machine_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string machine = 1;
       */
      public com.google.protobuf.ByteString
          getMachineBytes() {
        java.lang.Object ref = machine_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          machine_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string machine = 1;
       */
      public Builder setMachine(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        machine_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string machine = 1;
       */
      public Builder clearMachine() {
        bitField0_ = (bitField0_ & ~0x00000001);
        machine_ = getDefaultInstance().getMachine();
        onChanged();
        return this;
      }
      /**
       * optional string machine = 1;
       */
      public Builder setMachineBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        machine_ = value;
        onChanged();
        return this;
      }

      // optional int32 count = 2;
      private int count_ ;
      /**
       * optional int32 count = 2;
       */
      public boolean hasCount() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional int32 count = 2;
       */
      public int getCount() {
        return count_;
      }
      /**
       * optional int32 count = 2;
       */
      public Builder setCount(int value) {
        bitField0_ |= 0x00000002;
        count_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 count = 2;
       */
      public Builder clearCount() {
        bitField0_ = (bitField0_ & ~0x00000002);
        count_ = 0;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.ResourceMachineItem)
    }

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

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.ResourceMachineItem)
  }

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

    // optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
    /**
     * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
     */
    boolean hasLocation();
    /**
     * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceLocation getLocation();
    /**
     * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceLocationOrBuilder getLocationOrBuilder();

    // optional bool add = 2;
    /**
     * optional bool add = 2;
     */
    boolean hasAdd();
    /**
     * optional bool add = 2;
     */
    boolean getAdd();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.ResourceBlacklistItem}
   */
  public static final class ResourceBlacklistItem extends
      com.google.protobuf.GeneratedMessage
      implements ResourceBlacklistItemOrBuilder {
    // Use ResourceBlacklistItem.newBuilder() to construct.
    private ResourceBlacklistItem(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private ResourceBlacklistItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public ResourceBlacklistItem getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private ResourceBlacklistItem(
        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: {
              apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder subBuilder = null;
              if (((bitField0_ & 0x00000001) == 0x00000001)) {
                subBuilder = location_.toBuilder();
              }
              location_ = input.readMessage(apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(location_);
                location_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000001;
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              add_ = input.readBool();
              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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceBlacklistItem_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceBlacklistItem_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.class, apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.Builder.class);
    }

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

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

    private int bitField0_;
    // optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
    public static final int LOCATION_FIELD_NUMBER = 1;
    private apsara.odps.cupid.protocol.ProxyAm.ResourceLocation location_;
    /**
     * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
     */
    public boolean hasLocation() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceLocation getLocation() {
      return location_;
    }
    /**
     * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceLocationOrBuilder getLocationOrBuilder() {
      return location_;
    }

    // optional bool add = 2;
    public static final int ADD_FIELD_NUMBER = 2;
    private boolean add_;
    /**
     * optional bool add = 2;
     */
    public boolean hasAdd() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional bool add = 2;
     */
    public boolean getAdd() {
      return add_;
    }

    private void initFields() {
      location_ = apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.getDefaultInstance();
      add_ = false;
    }
    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();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeMessage(1, location_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBool(2, add_);
      }
      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
          .computeMessageSize(1, location_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(2, add_);
      }
      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 apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem 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(apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem 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 apsara.odps.cupid.protocol.ResourceBlacklistItem}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItemOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceBlacklistItem_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceBlacklistItem_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.class, apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      public Builder clear() {
        super.clear();
        if (locationBuilder_ == null) {
          location_ = apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.getDefaultInstance();
        } else {
          locationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        add_ = false;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceBlacklistItem_descriptor;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem build() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem buildPartial() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem result = new apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        if (locationBuilder_ == null) {
          result.location_ = location_;
        } else {
          result.location_ = locationBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.add_ = add_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem) {
          return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem other) {
        if (other == apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.getDefaultInstance()) return this;
        if (other.hasLocation()) {
          mergeLocation(other.getLocation());
        }
        if (other.hasAdd()) {
          setAdd(other.getAdd());
        }
        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 {
        apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
      private apsara.odps.cupid.protocol.ProxyAm.ResourceLocation location_ = apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceLocation, apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceLocationOrBuilder> locationBuilder_;
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public boolean hasLocation() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceLocation getLocation() {
        if (locationBuilder_ == null) {
          return location_;
        } else {
          return locationBuilder_.getMessage();
        }
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public Builder setLocation(apsara.odps.cupid.protocol.ProxyAm.ResourceLocation value) {
        if (locationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          location_ = value;
          onChanged();
        } else {
          locationBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public Builder setLocation(
          apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder builderForValue) {
        if (locationBuilder_ == null) {
          location_ = builderForValue.build();
          onChanged();
        } else {
          locationBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public Builder mergeLocation(apsara.odps.cupid.protocol.ProxyAm.ResourceLocation value) {
        if (locationBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001) &&
              location_ != apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.getDefaultInstance()) {
            location_ =
              apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.newBuilder(location_).mergeFrom(value).buildPartial();
          } else {
            location_ = value;
          }
          onChanged();
        } else {
          locationBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        return this;
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public Builder clearLocation() {
        if (locationBuilder_ == null) {
          location_ = apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.getDefaultInstance();
          onChanged();
        } else {
          locationBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder getLocationBuilder() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getLocationFieldBuilder().getBuilder();
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceLocationOrBuilder getLocationOrBuilder() {
        if (locationBuilder_ != null) {
          return locationBuilder_.getMessageOrBuilder();
        } else {
          return location_;
        }
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceLocation location = 1;
       */
      private com.google.protobuf.SingleFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceLocation, apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceLocationOrBuilder> 
          getLocationFieldBuilder() {
        if (locationBuilder_ == null) {
          locationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              apsara.odps.cupid.protocol.ProxyAm.ResourceLocation, apsara.odps.cupid.protocol.ProxyAm.ResourceLocation.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceLocationOrBuilder>(
                  location_,
                  getParentForChildren(),
                  isClean());
          location_ = null;
        }
        return locationBuilder_;
      }

      // optional bool add = 2;
      private boolean add_ ;
      /**
       * optional bool add = 2;
       */
      public boolean hasAdd() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional bool add = 2;
       */
      public boolean getAdd() {
        return add_;
      }
      /**
       * optional bool add = 2;
       */
      public Builder setAdd(boolean value) {
        bitField0_ |= 0x00000002;
        add_ = value;
        onChanged();
        return this;
      }
      /**
       * optional bool add = 2;
       */
      public Builder clearAdd() {
        bitField0_ = (bitField0_ & ~0x00000002);
        add_ = false;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.ResourceBlacklistItem)
    }

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

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.ResourceBlacklistItem)
  }

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

    // repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
     */
    java.util.List 
        getAsksList();
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem getAsks(int index);
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
     */
    int getAsksCount();
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
     */
    java.util.List 
        getAsksOrBuilderList();
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceAskItemOrBuilder getAsksOrBuilder(
        int index);

    // repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
     */
    java.util.List 
        getReleasesList();
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem getReleases(int index);
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
     */
    int getReleasesCount();
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
     */
    java.util.List 
        getReleasesOrBuilderList();
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder getReleasesOrBuilder(
        int index);

    // repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
     */
    java.util.List 
        getBlacklistList();
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem getBlacklist(int index);
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
     */
    int getBlacklistCount();
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
     */
    java.util.List 
        getBlacklistOrBuilderList();
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItemOrBuilder getBlacklistOrBuilder(
        int index);

    // optional int32 maxSlotCount = 4;
    /**
     * optional int32 maxSlotCount = 4;
     */
    boolean hasMaxSlotCount();
    /**
     * optional int32 maxSlotCount = 4;
     */
    int getMaxSlotCount();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.ResourceRequest}
   */
  public static final class ResourceRequest extends
      com.google.protobuf.GeneratedMessage
      implements ResourceRequestOrBuilder {
    // Use ResourceRequest.newBuilder() to construct.
    private ResourceRequest(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private ResourceRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public ResourceRequest getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private ResourceRequest(
        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)) {
                asks_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              asks_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.PARSER, extensionRegistry));
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                releases_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000002;
              }
              releases_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.PARSER, extensionRegistry));
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
                blacklist_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000004;
              }
              blacklist_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.PARSER, extensionRegistry));
              break;
            }
            case 32: {
              bitField0_ |= 0x00000001;
              maxSlotCount_ = 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 {
        if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
          asks_ = java.util.Collections.unmodifiableList(asks_);
        }
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          releases_ = java.util.Collections.unmodifiableList(releases_);
        }
        if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
          blacklist_ = java.util.Collections.unmodifiableList(blacklist_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.class, apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.Builder.class);
    }

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

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

    private int bitField0_;
    // repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
    public static final int ASKS_FIELD_NUMBER = 1;
    private java.util.List asks_;
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
     */
    public java.util.List getAsksList() {
      return asks_;
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
     */
    public java.util.List 
        getAsksOrBuilderList() {
      return asks_;
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
     */
    public int getAsksCount() {
      return asks_.size();
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem getAsks(int index) {
      return asks_.get(index);
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceAskItemOrBuilder getAsksOrBuilder(
        int index) {
      return asks_.get(index);
    }

    // repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
    public static final int RELEASES_FIELD_NUMBER = 2;
    private java.util.List releases_;
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
     */
    public java.util.List getReleasesList() {
      return releases_;
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
     */
    public java.util.List 
        getReleasesOrBuilderList() {
      return releases_;
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
     */
    public int getReleasesCount() {
      return releases_.size();
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem getReleases(int index) {
      return releases_.get(index);
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder getReleasesOrBuilder(
        int index) {
      return releases_.get(index);
    }

    // repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
    public static final int BLACKLIST_FIELD_NUMBER = 3;
    private java.util.List blacklist_;
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
     */
    public java.util.List getBlacklistList() {
      return blacklist_;
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
     */
    public java.util.List 
        getBlacklistOrBuilderList() {
      return blacklist_;
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
     */
    public int getBlacklistCount() {
      return blacklist_.size();
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem getBlacklist(int index) {
      return blacklist_.get(index);
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItemOrBuilder getBlacklistOrBuilder(
        int index) {
      return blacklist_.get(index);
    }

    // optional int32 maxSlotCount = 4;
    public static final int MAXSLOTCOUNT_FIELD_NUMBER = 4;
    private int maxSlotCount_;
    /**
     * optional int32 maxSlotCount = 4;
     */
    public boolean hasMaxSlotCount() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional int32 maxSlotCount = 4;
     */
    public int getMaxSlotCount() {
      return maxSlotCount_;
    }

    private void initFields() {
      asks_ = java.util.Collections.emptyList();
      releases_ = java.util.Collections.emptyList();
      blacklist_ = java.util.Collections.emptyList();
      maxSlotCount_ = 0;
    }
    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 < asks_.size(); i++) {
        output.writeMessage(1, asks_.get(i));
      }
      for (int i = 0; i < releases_.size(); i++) {
        output.writeMessage(2, releases_.get(i));
      }
      for (int i = 0; i < blacklist_.size(); i++) {
        output.writeMessage(3, blacklist_.get(i));
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeInt32(4, maxSlotCount_);
      }
      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 < asks_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, asks_.get(i));
      }
      for (int i = 0; i < releases_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, releases_.get(i));
      }
      for (int i = 0; i < blacklist_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, blacklist_.get(i));
      }
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(4, maxSlotCount_);
      }
      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 apsara.odps.cupid.protocol.ProxyAm.ResourceRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequest 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(apsara.odps.cupid.protocol.ProxyAm.ResourceRequest 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 apsara.odps.cupid.protocol.ResourceRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.ProxyAm.ResourceRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceRequest_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.class, apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      public Builder clear() {
        super.clear();
        if (asksBuilder_ == null) {
          asks_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          asksBuilder_.clear();
        }
        if (releasesBuilder_ == null) {
          releases_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          releasesBuilder_.clear();
        }
        if (blacklistBuilder_ == null) {
          blacklist_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          blacklistBuilder_.clear();
        }
        maxSlotCount_ = 0;
        bitField0_ = (bitField0_ & ~0x00000008);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceRequest_descriptor;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequest getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequest build() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequest buildPartial() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceRequest result = new apsara.odps.cupid.protocol.ProxyAm.ResourceRequest(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (asksBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            asks_ = java.util.Collections.unmodifiableList(asks_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.asks_ = asks_;
        } else {
          result.asks_ = asksBuilder_.build();
        }
        if (releasesBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            releases_ = java.util.Collections.unmodifiableList(releases_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.releases_ = releases_;
        } else {
          result.releases_ = releasesBuilder_.build();
        }
        if (blacklistBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004)) {
            blacklist_ = java.util.Collections.unmodifiableList(blacklist_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.blacklist_ = blacklist_;
        } else {
          result.blacklist_ = blacklistBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
          to_bitField0_ |= 0x00000001;
        }
        result.maxSlotCount_ = maxSlotCount_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.ProxyAm.ResourceRequest) {
          return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.ResourceRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.ResourceRequest other) {
        if (other == apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.getDefaultInstance()) return this;
        if (asksBuilder_ == null) {
          if (!other.asks_.isEmpty()) {
            if (asks_.isEmpty()) {
              asks_ = other.asks_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureAsksIsMutable();
              asks_.addAll(other.asks_);
            }
            onChanged();
          }
        } else {
          if (!other.asks_.isEmpty()) {
            if (asksBuilder_.isEmpty()) {
              asksBuilder_.dispose();
              asksBuilder_ = null;
              asks_ = other.asks_;
              bitField0_ = (bitField0_ & ~0x00000001);
              asksBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getAsksFieldBuilder() : null;
            } else {
              asksBuilder_.addAllMessages(other.asks_);
            }
          }
        }
        if (releasesBuilder_ == null) {
          if (!other.releases_.isEmpty()) {
            if (releases_.isEmpty()) {
              releases_ = other.releases_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureReleasesIsMutable();
              releases_.addAll(other.releases_);
            }
            onChanged();
          }
        } else {
          if (!other.releases_.isEmpty()) {
            if (releasesBuilder_.isEmpty()) {
              releasesBuilder_.dispose();
              releasesBuilder_ = null;
              releases_ = other.releases_;
              bitField0_ = (bitField0_ & ~0x00000002);
              releasesBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getReleasesFieldBuilder() : null;
            } else {
              releasesBuilder_.addAllMessages(other.releases_);
            }
          }
        }
        if (blacklistBuilder_ == null) {
          if (!other.blacklist_.isEmpty()) {
            if (blacklist_.isEmpty()) {
              blacklist_ = other.blacklist_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureBlacklistIsMutable();
              blacklist_.addAll(other.blacklist_);
            }
            onChanged();
          }
        } else {
          if (!other.blacklist_.isEmpty()) {
            if (blacklistBuilder_.isEmpty()) {
              blacklistBuilder_.dispose();
              blacklistBuilder_ = null;
              blacklist_ = other.blacklist_;
              bitField0_ = (bitField0_ & ~0x00000004);
              blacklistBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getBlacklistFieldBuilder() : null;
            } else {
              blacklistBuilder_.addAllMessages(other.blacklist_);
            }
          }
        }
        if (other.hasMaxSlotCount()) {
          setMaxSlotCount(other.getMaxSlotCount());
        }
        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 {
        apsara.odps.cupid.protocol.ProxyAm.ResourceRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.ResourceRequest) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
      private java.util.List asks_ =
        java.util.Collections.emptyList();
      private void ensureAsksIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          asks_ = new java.util.ArrayList(asks_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem, apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceAskItemOrBuilder> asksBuilder_;

      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public java.util.List getAsksList() {
        if (asksBuilder_ == null) {
          return java.util.Collections.unmodifiableList(asks_);
        } else {
          return asksBuilder_.getMessageList();
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public int getAsksCount() {
        if (asksBuilder_ == null) {
          return asks_.size();
        } else {
          return asksBuilder_.getCount();
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem getAsks(int index) {
        if (asksBuilder_ == null) {
          return asks_.get(index);
        } else {
          return asksBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public Builder setAsks(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem value) {
        if (asksBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAsksIsMutable();
          asks_.set(index, value);
          onChanged();
        } else {
          asksBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public Builder setAsks(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.Builder builderForValue) {
        if (asksBuilder_ == null) {
          ensureAsksIsMutable();
          asks_.set(index, builderForValue.build());
          onChanged();
        } else {
          asksBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public Builder addAsks(apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem value) {
        if (asksBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAsksIsMutable();
          asks_.add(value);
          onChanged();
        } else {
          asksBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public Builder addAsks(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem value) {
        if (asksBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureAsksIsMutable();
          asks_.add(index, value);
          onChanged();
        } else {
          asksBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public Builder addAsks(
          apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.Builder builderForValue) {
        if (asksBuilder_ == null) {
          ensureAsksIsMutable();
          asks_.add(builderForValue.build());
          onChanged();
        } else {
          asksBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public Builder addAsks(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.Builder builderForValue) {
        if (asksBuilder_ == null) {
          ensureAsksIsMutable();
          asks_.add(index, builderForValue.build());
          onChanged();
        } else {
          asksBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public Builder addAllAsks(
          java.lang.Iterable values) {
        if (asksBuilder_ == null) {
          ensureAsksIsMutable();
          super.addAll(values, asks_);
          onChanged();
        } else {
          asksBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public Builder clearAsks() {
        if (asksBuilder_ == null) {
          asks_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          asksBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public Builder removeAsks(int index) {
        if (asksBuilder_ == null) {
          ensureAsksIsMutable();
          asks_.remove(index);
          onChanged();
        } else {
          asksBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.Builder getAsksBuilder(
          int index) {
        return getAsksFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceAskItemOrBuilder getAsksOrBuilder(
          int index) {
        if (asksBuilder_ == null) {
          return asks_.get(index);  } else {
          return asksBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public java.util.List 
           getAsksOrBuilderList() {
        if (asksBuilder_ != null) {
          return asksBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(asks_);
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.Builder addAsksBuilder() {
        return getAsksFieldBuilder().addBuilder(
            apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.getDefaultInstance());
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.Builder addAsksBuilder(
          int index) {
        return getAsksFieldBuilder().addBuilder(
            index, apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.getDefaultInstance());
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceAskItem asks = 1;
       */
      public java.util.List 
           getAsksBuilderList() {
        return getAsksFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem, apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceAskItemOrBuilder> 
          getAsksFieldBuilder() {
        if (asksBuilder_ == null) {
          asksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem, apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceAskItemOrBuilder>(
                  asks_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          asks_ = null;
        }
        return asksBuilder_;
      }

      // repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
      private java.util.List releases_ =
        java.util.Collections.emptyList();
      private void ensureReleasesIsMutable() {
        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
          releases_ = new java.util.ArrayList(releases_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder> releasesBuilder_;

      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public java.util.List getReleasesList() {
        if (releasesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(releases_);
        } else {
          return releasesBuilder_.getMessageList();
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public int getReleasesCount() {
        if (releasesBuilder_ == null) {
          return releases_.size();
        } else {
          return releasesBuilder_.getCount();
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem getReleases(int index) {
        if (releasesBuilder_ == null) {
          return releases_.get(index);
        } else {
          return releasesBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public Builder setReleases(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem value) {
        if (releasesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureReleasesIsMutable();
          releases_.set(index, value);
          onChanged();
        } else {
          releasesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public Builder setReleases(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder builderForValue) {
        if (releasesBuilder_ == null) {
          ensureReleasesIsMutable();
          releases_.set(index, builderForValue.build());
          onChanged();
        } else {
          releasesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public Builder addReleases(apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem value) {
        if (releasesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureReleasesIsMutable();
          releases_.add(value);
          onChanged();
        } else {
          releasesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public Builder addReleases(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem value) {
        if (releasesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureReleasesIsMutable();
          releases_.add(index, value);
          onChanged();
        } else {
          releasesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public Builder addReleases(
          apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder builderForValue) {
        if (releasesBuilder_ == null) {
          ensureReleasesIsMutable();
          releases_.add(builderForValue.build());
          onChanged();
        } else {
          releasesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public Builder addReleases(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder builderForValue) {
        if (releasesBuilder_ == null) {
          ensureReleasesIsMutable();
          releases_.add(index, builderForValue.build());
          onChanged();
        } else {
          releasesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public Builder addAllReleases(
          java.lang.Iterable values) {
        if (releasesBuilder_ == null) {
          ensureReleasesIsMutable();
          super.addAll(values, releases_);
          onChanged();
        } else {
          releasesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public Builder clearReleases() {
        if (releasesBuilder_ == null) {
          releases_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          releasesBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public Builder removeReleases(int index) {
        if (releasesBuilder_ == null) {
          ensureReleasesIsMutable();
          releases_.remove(index);
          onChanged();
        } else {
          releasesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder getReleasesBuilder(
          int index) {
        return getReleasesFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder getReleasesOrBuilder(
          int index) {
        if (releasesBuilder_ == null) {
          return releases_.get(index);  } else {
          return releasesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public java.util.List 
           getReleasesOrBuilderList() {
        if (releasesBuilder_ != null) {
          return releasesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(releases_);
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder addReleasesBuilder() {
        return getReleasesFieldBuilder().addBuilder(
            apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.getDefaultInstance());
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder addReleasesBuilder(
          int index) {
        return getReleasesFieldBuilder().addBuilder(
            index, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.getDefaultInstance());
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceMachineItem releases = 2;
       */
      public java.util.List 
           getReleasesBuilderList() {
        return getReleasesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder> 
          getReleasesFieldBuilder() {
        if (releasesBuilder_ == null) {
          releasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder>(
                  releases_,
                  ((bitField0_ & 0x00000002) == 0x00000002),
                  getParentForChildren(),
                  isClean());
          releases_ = null;
        }
        return releasesBuilder_;
      }

      // repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
      private java.util.List blacklist_ =
        java.util.Collections.emptyList();
      private void ensureBlacklistIsMutable() {
        if (!((bitField0_ & 0x00000004) == 0x00000004)) {
          blacklist_ = new java.util.ArrayList(blacklist_);
          bitField0_ |= 0x00000004;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem, apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItemOrBuilder> blacklistBuilder_;

      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public java.util.List getBlacklistList() {
        if (blacklistBuilder_ == null) {
          return java.util.Collections.unmodifiableList(blacklist_);
        } else {
          return blacklistBuilder_.getMessageList();
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public int getBlacklistCount() {
        if (blacklistBuilder_ == null) {
          return blacklist_.size();
        } else {
          return blacklistBuilder_.getCount();
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem getBlacklist(int index) {
        if (blacklistBuilder_ == null) {
          return blacklist_.get(index);
        } else {
          return blacklistBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public Builder setBlacklist(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem value) {
        if (blacklistBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBlacklistIsMutable();
          blacklist_.set(index, value);
          onChanged();
        } else {
          blacklistBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public Builder setBlacklist(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.Builder builderForValue) {
        if (blacklistBuilder_ == null) {
          ensureBlacklistIsMutable();
          blacklist_.set(index, builderForValue.build());
          onChanged();
        } else {
          blacklistBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public Builder addBlacklist(apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem value) {
        if (blacklistBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBlacklistIsMutable();
          blacklist_.add(value);
          onChanged();
        } else {
          blacklistBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public Builder addBlacklist(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem value) {
        if (blacklistBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureBlacklistIsMutable();
          blacklist_.add(index, value);
          onChanged();
        } else {
          blacklistBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public Builder addBlacklist(
          apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.Builder builderForValue) {
        if (blacklistBuilder_ == null) {
          ensureBlacklistIsMutable();
          blacklist_.add(builderForValue.build());
          onChanged();
        } else {
          blacklistBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public Builder addBlacklist(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.Builder builderForValue) {
        if (blacklistBuilder_ == null) {
          ensureBlacklistIsMutable();
          blacklist_.add(index, builderForValue.build());
          onChanged();
        } else {
          blacklistBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public Builder addAllBlacklist(
          java.lang.Iterable values) {
        if (blacklistBuilder_ == null) {
          ensureBlacklistIsMutable();
          super.addAll(values, blacklist_);
          onChanged();
        } else {
          blacklistBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public Builder clearBlacklist() {
        if (blacklistBuilder_ == null) {
          blacklist_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          blacklistBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public Builder removeBlacklist(int index) {
        if (blacklistBuilder_ == null) {
          ensureBlacklistIsMutable();
          blacklist_.remove(index);
          onChanged();
        } else {
          blacklistBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.Builder getBlacklistBuilder(
          int index) {
        return getBlacklistFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItemOrBuilder getBlacklistOrBuilder(
          int index) {
        if (blacklistBuilder_ == null) {
          return blacklist_.get(index);  } else {
          return blacklistBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public java.util.List 
           getBlacklistOrBuilderList() {
        if (blacklistBuilder_ != null) {
          return blacklistBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(blacklist_);
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.Builder addBlacklistBuilder() {
        return getBlacklistFieldBuilder().addBuilder(
            apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.getDefaultInstance());
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.Builder addBlacklistBuilder(
          int index) {
        return getBlacklistFieldBuilder().addBuilder(
            index, apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.getDefaultInstance());
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceBlacklistItem blacklist = 3;
       */
      public java.util.List 
           getBlacklistBuilderList() {
        return getBlacklistFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem, apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItemOrBuilder> 
          getBlacklistFieldBuilder() {
        if (blacklistBuilder_ == null) {
          blacklistBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem, apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItemOrBuilder>(
                  blacklist_,
                  ((bitField0_ & 0x00000004) == 0x00000004),
                  getParentForChildren(),
                  isClean());
          blacklist_ = null;
        }
        return blacklistBuilder_;
      }

      // optional int32 maxSlotCount = 4;
      private int maxSlotCount_ ;
      /**
       * optional int32 maxSlotCount = 4;
       */
      public boolean hasMaxSlotCount() {
        return ((bitField0_ & 0x00000008) == 0x00000008);
      }
      /**
       * optional int32 maxSlotCount = 4;
       */
      public int getMaxSlotCount() {
        return maxSlotCount_;
      }
      /**
       * optional int32 maxSlotCount = 4;
       */
      public Builder setMaxSlotCount(int value) {
        bitField0_ |= 0x00000008;
        maxSlotCount_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int32 maxSlotCount = 4;
       */
      public Builder clearMaxSlotCount() {
        bitField0_ = (bitField0_ & ~0x00000008);
        maxSlotCount_ = 0;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.ResourceRequest)
    }

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

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.ResourceRequest)
  }

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

    // optional string roleName = 1;
    /**
     * optional string roleName = 1;
     */
    boolean hasRoleName();
    /**
     * optional string roleName = 1;
     */
    java.lang.String getRoleName();
    /**
     * optional string roleName = 1;
     */
    com.google.protobuf.ByteString
        getRoleNameBytes();

    // optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
    /**
     * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
     */
    boolean hasResourceRequest();
    /**
     * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceRequest getResourceRequest();
    /**
     * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceRequestOrBuilder getResourceRequestOrBuilder();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.ResourceRequestItem}
   */
  public static final class ResourceRequestItem extends
      com.google.protobuf.GeneratedMessage
      implements ResourceRequestItemOrBuilder {
    // Use ResourceRequestItem.newBuilder() to construct.
    private ResourceRequestItem(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private ResourceRequestItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public ResourceRequestItem getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private ResourceRequestItem(
        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: {
              bitField0_ |= 0x00000001;
              roleName_ = input.readBytes();
              break;
            }
            case 18: {
              apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.Builder subBuilder = null;
              if (((bitField0_ & 0x00000002) == 0x00000002)) {
                subBuilder = resourceRequest_.toBuilder();
              }
              resourceRequest_ = input.readMessage(apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.PARSER, extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(resourceRequest_);
                resourceRequest_ = subBuilder.buildPartial();
              }
              bitField0_ |= 0x00000002;
              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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceRequestItem_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceRequestItem_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.class, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.Builder.class);
    }

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

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

    private int bitField0_;
    // optional string roleName = 1;
    public static final int ROLENAME_FIELD_NUMBER = 1;
    private java.lang.Object roleName_;
    /**
     * optional string roleName = 1;
     */
    public boolean hasRoleName() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string roleName = 1;
     */
    public java.lang.String getRoleName() {
      java.lang.Object ref = roleName_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          roleName_ = s;
        }
        return s;
      }
    }
    /**
     * optional string roleName = 1;
     */
    public com.google.protobuf.ByteString
        getRoleNameBytes() {
      java.lang.Object ref = roleName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        roleName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
    public static final int RESOURCEREQUEST_FIELD_NUMBER = 2;
    private apsara.odps.cupid.protocol.ProxyAm.ResourceRequest resourceRequest_;
    /**
     * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
     */
    public boolean hasResourceRequest() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceRequest getResourceRequest() {
      return resourceRequest_;
    }
    /**
     * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceRequestOrBuilder getResourceRequestOrBuilder() {
      return resourceRequest_;
    }

    private void initFields() {
      roleName_ = "";
      resourceRequest_ = apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.getDefaultInstance();
    }
    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();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getRoleNameBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeMessage(2, resourceRequest_);
      }
      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
          .computeBytesSize(1, getRoleNameBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, resourceRequest_);
      }
      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 apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem 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(apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem 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 apsara.odps.cupid.protocol.ResourceRequestItem}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItemOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceRequestItem_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceRequestItem_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.class, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      public Builder clear() {
        super.clear();
        roleName_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        if (resourceRequestBuilder_ == null) {
          resourceRequest_ = apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.getDefaultInstance();
        } else {
          resourceRequestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceRequestItem_descriptor;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem build() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem buildPartial() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem result = new apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.roleName_ = roleName_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        if (resourceRequestBuilder_ == null) {
          result.resourceRequest_ = resourceRequest_;
        } else {
          result.resourceRequest_ = resourceRequestBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem) {
          return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem other) {
        if (other == apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.getDefaultInstance()) return this;
        if (other.hasRoleName()) {
          bitField0_ |= 0x00000001;
          roleName_ = other.roleName_;
          onChanged();
        }
        if (other.hasResourceRequest()) {
          mergeResourceRequest(other.getResourceRequest());
        }
        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 {
        apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional string roleName = 1;
      private java.lang.Object roleName_ = "";
      /**
       * optional string roleName = 1;
       */
      public boolean hasRoleName() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional string roleName = 1;
       */
      public java.lang.String getRoleName() {
        java.lang.Object ref = roleName_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          roleName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string roleName = 1;
       */
      public com.google.protobuf.ByteString
          getRoleNameBytes() {
        java.lang.Object ref = roleName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          roleName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string roleName = 1;
       */
      public Builder setRoleName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        roleName_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string roleName = 1;
       */
      public Builder clearRoleName() {
        bitField0_ = (bitField0_ & ~0x00000001);
        roleName_ = getDefaultInstance().getRoleName();
        onChanged();
        return this;
      }
      /**
       * optional string roleName = 1;
       */
      public Builder setRoleNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        roleName_ = value;
        onChanged();
        return this;
      }

      // optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
      private apsara.odps.cupid.protocol.ProxyAm.ResourceRequest resourceRequest_ = apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceRequest, apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestOrBuilder> resourceRequestBuilder_;
      /**
       * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
       */
      public boolean hasResourceRequest() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequest getResourceRequest() {
        if (resourceRequestBuilder_ == null) {
          return resourceRequest_;
        } else {
          return resourceRequestBuilder_.getMessage();
        }
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
       */
      public Builder setResourceRequest(apsara.odps.cupid.protocol.ProxyAm.ResourceRequest value) {
        if (resourceRequestBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          resourceRequest_ = value;
          onChanged();
        } else {
          resourceRequestBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
       */
      public Builder setResourceRequest(
          apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.Builder builderForValue) {
        if (resourceRequestBuilder_ == null) {
          resourceRequest_ = builderForValue.build();
          onChanged();
        } else {
          resourceRequestBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
       */
      public Builder mergeResourceRequest(apsara.odps.cupid.protocol.ProxyAm.ResourceRequest value) {
        if (resourceRequestBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002) &&
              resourceRequest_ != apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.getDefaultInstance()) {
            resourceRequest_ =
              apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.newBuilder(resourceRequest_).mergeFrom(value).buildPartial();
          } else {
            resourceRequest_ = value;
          }
          onChanged();
        } else {
          resourceRequestBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
       */
      public Builder clearResourceRequest() {
        if (resourceRequestBuilder_ == null) {
          resourceRequest_ = apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.getDefaultInstance();
          onChanged();
        } else {
          resourceRequestBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.Builder getResourceRequestBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getResourceRequestFieldBuilder().getBuilder();
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequestOrBuilder getResourceRequestOrBuilder() {
        if (resourceRequestBuilder_ != null) {
          return resourceRequestBuilder_.getMessageOrBuilder();
        } else {
          return resourceRequest_;
        }
      }
      /**
       * optional .apsara.odps.cupid.protocol.ResourceRequest resourceRequest = 2;
       */
      private com.google.protobuf.SingleFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceRequest, apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestOrBuilder> 
          getResourceRequestFieldBuilder() {
        if (resourceRequestBuilder_ == null) {
          resourceRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              apsara.odps.cupid.protocol.ProxyAm.ResourceRequest, apsara.odps.cupid.protocol.ProxyAm.ResourceRequest.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestOrBuilder>(
                  resourceRequest_,
                  getParentForChildren(),
                  isClean());
          resourceRequest_ = null;
        }
        return resourceRequestBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.ResourceRequestItem)
    }

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

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.ResourceRequestItem)
  }

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

    // repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
     */
    java.util.List 
        getResReqsList();
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem getResReqs(int index);
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
     */
    int getResReqsCount();
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
     */
    java.util.List 
        getResReqsOrBuilderList();
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
     */
    apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItemOrBuilder getResReqsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.RequireResourceRequest}
   */
  public static final class RequireResourceRequest extends
      com.google.protobuf.GeneratedMessage
      implements RequireResourceRequestOrBuilder {
    // Use RequireResourceRequest.newBuilder() to construct.
    private RequireResourceRequest(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private RequireResourceRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public RequireResourceRequest getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private RequireResourceRequest(
        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)) {
                resReqs_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              resReqs_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.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)) {
          resReqs_ = java.util.Collections.unmodifiableList(resReqs_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RequireResourceRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RequireResourceRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest.class, apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest.Builder.class);
    }

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

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

    // repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
    public static final int RESREQS_FIELD_NUMBER = 1;
    private java.util.List resReqs_;
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
     */
    public java.util.List getResReqsList() {
      return resReqs_;
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
     */
    public java.util.List 
        getResReqsOrBuilderList() {
      return resReqs_;
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
     */
    public int getResReqsCount() {
      return resReqs_.size();
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem getResReqs(int index) {
      return resReqs_.get(index);
    }
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
     */
    public apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItemOrBuilder getResReqsOrBuilder(
        int index) {
      return resReqs_.get(index);
    }

    private void initFields() {
      resReqs_ = 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 < resReqs_.size(); i++) {
        output.writeMessage(1, resReqs_.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 < resReqs_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, resReqs_.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 apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest 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(apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest 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 apsara.odps.cupid.protocol.RequireResourceRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RequireResourceRequest_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RequireResourceRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest.class, apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

      public Builder clear() {
        super.clear();
        if (resReqsBuilder_ == null) {
          resReqs_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          resReqsBuilder_.clear();
        }
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RequireResourceRequest_descriptor;
      }

      public apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest build() {
        apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest buildPartial() {
        apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest result = new apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest(this);
        int from_bitField0_ = bitField0_;
        if (resReqsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) == 0x00000001)) {
            resReqs_ = java.util.Collections.unmodifiableList(resReqs_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.resReqs_ = resReqs_;
        } else {
          result.resReqs_ = resReqsBuilder_.build();
        }
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest) {
          return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest other) {
        if (other == apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest.getDefaultInstance()) return this;
        if (resReqsBuilder_ == null) {
          if (!other.resReqs_.isEmpty()) {
            if (resReqs_.isEmpty()) {
              resReqs_ = other.resReqs_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureResReqsIsMutable();
              resReqs_.addAll(other.resReqs_);
            }
            onChanged();
          }
        } else {
          if (!other.resReqs_.isEmpty()) {
            if (resReqsBuilder_.isEmpty()) {
              resReqsBuilder_.dispose();
              resReqsBuilder_ = null;
              resReqs_ = other.resReqs_;
              bitField0_ = (bitField0_ & ~0x00000001);
              resReqsBuilder_ = 
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                   getResReqsFieldBuilder() : null;
            } else {
              resReqsBuilder_.addAllMessages(other.resReqs_);
            }
          }
        }
        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 {
        apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
      private java.util.List resReqs_ =
        java.util.Collections.emptyList();
      private void ensureResReqsIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          resReqs_ = new java.util.ArrayList(resReqs_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItemOrBuilder> resReqsBuilder_;

      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public java.util.List getResReqsList() {
        if (resReqsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(resReqs_);
        } else {
          return resReqsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public int getResReqsCount() {
        if (resReqsBuilder_ == null) {
          return resReqs_.size();
        } else {
          return resReqsBuilder_.getCount();
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem getResReqs(int index) {
        if (resReqsBuilder_ == null) {
          return resReqs_.get(index);
        } else {
          return resReqsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public Builder setResReqs(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem value) {
        if (resReqsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResReqsIsMutable();
          resReqs_.set(index, value);
          onChanged();
        } else {
          resReqsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public Builder setResReqs(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.Builder builderForValue) {
        if (resReqsBuilder_ == null) {
          ensureResReqsIsMutable();
          resReqs_.set(index, builderForValue.build());
          onChanged();
        } else {
          resReqsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public Builder addResReqs(apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem value) {
        if (resReqsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResReqsIsMutable();
          resReqs_.add(value);
          onChanged();
        } else {
          resReqsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public Builder addResReqs(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem value) {
        if (resReqsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureResReqsIsMutable();
          resReqs_.add(index, value);
          onChanged();
        } else {
          resReqsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public Builder addResReqs(
          apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.Builder builderForValue) {
        if (resReqsBuilder_ == null) {
          ensureResReqsIsMutable();
          resReqs_.add(builderForValue.build());
          onChanged();
        } else {
          resReqsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public Builder addResReqs(
          int index, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.Builder builderForValue) {
        if (resReqsBuilder_ == null) {
          ensureResReqsIsMutable();
          resReqs_.add(index, builderForValue.build());
          onChanged();
        } else {
          resReqsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public Builder addAllResReqs(
          java.lang.Iterable values) {
        if (resReqsBuilder_ == null) {
          ensureResReqsIsMutable();
          super.addAll(values, resReqs_);
          onChanged();
        } else {
          resReqsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public Builder clearResReqs() {
        if (resReqsBuilder_ == null) {
          resReqs_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          resReqsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public Builder removeResReqs(int index) {
        if (resReqsBuilder_ == null) {
          ensureResReqsIsMutable();
          resReqs_.remove(index);
          onChanged();
        } else {
          resReqsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.Builder getResReqsBuilder(
          int index) {
        return getResReqsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItemOrBuilder getResReqsOrBuilder(
          int index) {
        if (resReqsBuilder_ == null) {
          return resReqs_.get(index);  } else {
          return resReqsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public java.util.List 
           getResReqsOrBuilderList() {
        if (resReqsBuilder_ != null) {
          return resReqsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(resReqs_);
        }
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.Builder addResReqsBuilder() {
        return getResReqsFieldBuilder().addBuilder(
            apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.getDefaultInstance());
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.Builder addResReqsBuilder(
          int index) {
        return getResReqsFieldBuilder().addBuilder(
            index, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.getDefaultInstance());
      }
      /**
       * repeated .apsara.odps.cupid.protocol.ResourceRequestItem resReqs = 1;
       */
      public java.util.List 
           getResReqsBuilderList() {
        return getResReqsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItemOrBuilder> 
          getResReqsFieldBuilder() {
        if (resReqsBuilder_ == null) {
          resReqsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItemOrBuilder>(
                  resReqs_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          resReqs_ = null;
        }
        return resReqsBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.RequireResourceRequest)
    }

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

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.RequireResourceRequest)
  }

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

    // optional string resource = 1;
    /**
     * optional string resource = 1;
     */
    boolean hasResource();
    /**
     * optional string resource = 1;
     */
    java.lang.String getResource();
    /**
     * optional string resource = 1;
     */
    com.google.protobuf.ByteString
        getResourceBytes();

    // optional int64 count = 2;
    /**
     * optional int64 count = 2;
     */
    boolean hasCount();
    /**
     * optional int64 count = 2;
     */
    long getCount();
  }
  /**
   * Protobuf type {@code apsara.odps.cupid.protocol.ResourceDescItem}
   */
  public static final class ResourceDescItem extends
      com.google.protobuf.GeneratedMessage
      implements ResourceDescItemOrBuilder {
    // Use ResourceDescItem.newBuilder() to construct.
    private ResourceDescItem(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private ResourceDescItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

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

    public ResourceDescItem getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private ResourceDescItem(
        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: {
              bitField0_ |= 0x00000001;
              resource_ = input.readBytes();
              break;
            }
            case 16: {
              bitField0_ |= 0x00000002;
              count_ = input.readInt64();
              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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceDescItem_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceDescItem_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.class, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder.class);
    }

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

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

    private int bitField0_;
    // optional string resource = 1;
    public static final int RESOURCE_FIELD_NUMBER = 1;
    private java.lang.Object resource_;
    /**
     * optional string resource = 1;
     */
    public boolean hasResource() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * optional string resource = 1;
     */
    public java.lang.String getResource() {
      java.lang.Object ref = resource_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          resource_ = s;
        }
        return s;
      }
    }
    /**
     * optional string resource = 1;
     */
    public com.google.protobuf.ByteString
        getResourceBytes() {
      java.lang.Object ref = resource_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        resource_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional int64 count = 2;
    public static final int COUNT_FIELD_NUMBER = 2;
    private long count_;
    /**
     * optional int64 count = 2;
     */
    public boolean hasCount() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional int64 count = 2;
     */
    public long getCount() {
      return count_;
    }

    private void initFields() {
      resource_ = "";
      count_ = 0L;
    }
    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();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getResourceBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeInt64(2, count_);
      }
      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
          .computeBytesSize(1, getResourceBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, count_);
      }
      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 apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem 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(apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem 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 apsara.odps.cupid.protocol.ResourceDescItem}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceDescItem_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceDescItem_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.class, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder.class);
      }

      // Construct using apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.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();
        resource_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        count_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

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

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_ResourceDescItem_descriptor;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem getDefaultInstanceForType() {
        return apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.getDefaultInstance();
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem build() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem buildPartial() {
        apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem result = new apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.resource_ = resource_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.count_ = count_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem) {
          return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem other) {
        if (other == apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.getDefaultInstance()) return this;
        if (other.hasResource()) {
          bitField0_ |= 0x00000001;
          resource_ = other.resource_;
          onChanged();
        }
        if (other.hasCount()) {
          setCount(other.getCount());
        }
        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 {
        apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // optional string resource = 1;
      private java.lang.Object resource_ = "";
      /**
       * optional string resource = 1;
       */
      public boolean hasResource() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * optional string resource = 1;
       */
      public java.lang.String getResource() {
        java.lang.Object ref = resource_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          resource_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string resource = 1;
       */
      public com.google.protobuf.ByteString
          getResourceBytes() {
        java.lang.Object ref = resource_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          resource_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string resource = 1;
       */
      public Builder setResource(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        resource_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string resource = 1;
       */
      public Builder clearResource() {
        bitField0_ = (bitField0_ & ~0x00000001);
        resource_ = getDefaultInstance().getResource();
        onChanged();
        return this;
      }
      /**
       * optional string resource = 1;
       */
      public Builder setResourceBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        resource_ = value;
        onChanged();
        return this;
      }

      // optional int64 count = 2;
      private long count_ ;
      /**
       * optional int64 count = 2;
       */
      public boolean hasCount() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional int64 count = 2;
       */
      public long getCount() {
        return count_;
      }
      /**
       * optional int64 count = 2;
       */
      public Builder setCount(long value) {
        bitField0_ |= 0x00000002;
        count_ = value;
        onChanged();
        return this;
      }
      /**
       * optional int64 count = 2;
       */
      public Builder clearCount() {
        bitField0_ = (bitField0_ & ~0x00000002);
        count_ = 0L;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.ResourceDescItem)
    }

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

    // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.ResourceDescItem)
  }

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

    // repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1;
    /**
     * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1;
     *
     * 
     *not include executableUri and packageCapability, the parent process should cover them.
     * 
*/ java.util.List getResourcesList(); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
     *not include executableUri and packageCapability, the parent process should cover them.
     * 
*/ apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem getResources(int index); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
     *not include executableUri and packageCapability, the parent process should cover them.
     * 
*/ int getResourcesCount(); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
     *not include executableUri and packageCapability, the parent process should cover them.
     * 
*/ java.util.List getResourcesOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
     *not include executableUri and packageCapability, the parent process should cover them.
     * 
*/ apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder getResourcesOrBuilder( int index); // repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ java.util.List getParamsList(); /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ apsara.odps.cupid.protocol.ProxyAm.StringToStringPair getParams(int index); /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ int getParamsCount(); /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ java.util.List getParamsOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ apsara.odps.cupid.protocol.ProxyAm.StringToStringPairOrBuilder getParamsOrBuilder( int index); // optional int64 slotId = 3; /** * optional int64 slotId = 3; */ boolean hasSlotId(); /** * optional int64 slotId = 3; */ long getSlotId(); // optional double resHardLimitRatio = 4; /** * optional double resHardLimitRatio = 4; */ boolean hasResHardLimitRatio(); /** * optional double resHardLimitRatio = 4; */ double getResHardLimitRatio(); } /** * Protobuf type {@code apsara.odps.cupid.protocol.WorkerProcessInfo} */ public static final class WorkerProcessInfo extends com.google.protobuf.GeneratedMessage implements WorkerProcessInfoOrBuilder { // Use WorkerProcessInfo.newBuilder() to construct. private WorkerProcessInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private WorkerProcessInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final WorkerProcessInfo defaultInstance; public static WorkerProcessInfo getDefaultInstance() { return defaultInstance; } public WorkerProcessInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WorkerProcessInfo( 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)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } resources_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { params_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } params_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.PARSER, extensionRegistry)); break; } case 24: { bitField0_ |= 0x00000001; slotId_ = input.readInt64(); break; } case 33: { bitField0_ |= 0x00000002; resHardLimitRatio_ = input.readDouble(); 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)) { resources_ = java.util.Collections.unmodifiableList(resources_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { params_ = java.util.Collections.unmodifiableList(params_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerProcessInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerProcessInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.class, apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WorkerProcessInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WorkerProcessInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
     *not include executableUri and packageCapability, the parent process should cover them.
     * 
*/ public java.util.List getResourcesList() { return resources_; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
     *not include executableUri and packageCapability, the parent process should cover them.
     * 
*/ public java.util.List getResourcesOrBuilderList() { return resources_; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
     *not include executableUri and packageCapability, the parent process should cover them.
     * 
*/ public int getResourcesCount() { return resources_.size(); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
     *not include executableUri and packageCapability, the parent process should cover them.
     * 
*/ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem getResources(int index) { return resources_.get(index); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
     *not include executableUri and packageCapability, the parent process should cover them.
     * 
*/ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } // repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; public static final int PARAMS_FIELD_NUMBER = 2; private java.util.List params_; /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public java.util.List getParamsList() { return params_; } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public java.util.List getParamsOrBuilderList() { return params_; } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public int getParamsCount() { return params_.size(); } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public apsara.odps.cupid.protocol.ProxyAm.StringToStringPair getParams(int index) { return params_.get(index); } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public apsara.odps.cupid.protocol.ProxyAm.StringToStringPairOrBuilder getParamsOrBuilder( int index) { return params_.get(index); } // optional int64 slotId = 3; public static final int SLOTID_FIELD_NUMBER = 3; private long slotId_; /** * optional int64 slotId = 3; */ public boolean hasSlotId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 slotId = 3; */ public long getSlotId() { return slotId_; } // optional double resHardLimitRatio = 4; public static final int RESHARDLIMITRATIO_FIELD_NUMBER = 4; private double resHardLimitRatio_; /** * optional double resHardLimitRatio = 4; */ public boolean hasResHardLimitRatio() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional double resHardLimitRatio = 4; */ public double getResHardLimitRatio() { return resHardLimitRatio_; } private void initFields() { resources_ = java.util.Collections.emptyList(); params_ = java.util.Collections.emptyList(); slotId_ = 0L; resHardLimitRatio_ = 0D; } 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 < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } for (int i = 0; i < params_.size(); i++) { output.writeMessage(2, params_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(3, slotId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeDouble(4, resHardLimitRatio_); } 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 < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, resources_.get(i)); } for (int i = 0; i < params_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, params_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, slotId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, resHardLimitRatio_); } 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 apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo 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(apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo 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 apsara.odps.cupid.protocol.WorkerProcessInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerProcessInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerProcessInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.class, apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getResourcesFieldBuilder(); getParamsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resourcesBuilder_.clear(); } if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { paramsBuilder_.clear(); } slotId_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); resHardLimitRatio_ = 0D; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerProcessInfo_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo build() { apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo buildPartial() { apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo result = new apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000001); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (paramsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { params_ = java.util.Collections.unmodifiableList(params_); bitField0_ = (bitField0_ & ~0x00000002); } result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000001; } result.slotId_ = slotId_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000002; } result.resHardLimitRatio_ = resHardLimitRatio_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo other) { if (other == apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.getDefaultInstance()) return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); resourcesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (paramsBuilder_ == null) { if (!other.params_.isEmpty()) { if (params_.isEmpty()) { params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureParamsIsMutable(); params_.addAll(other.params_); } onChanged(); } } else { if (!other.params_.isEmpty()) { if (paramsBuilder_.isEmpty()) { paramsBuilder_.dispose(); paramsBuilder_ = null; params_ = other.params_; bitField0_ = (bitField0_ & ~0x00000002); paramsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getParamsFieldBuilder() : null; } else { paramsBuilder_.addAllMessages(other.params_); } } } if (other.hasSlotId()) { setSlotId(other.getSlotId()); } if (other.hasResHardLimitRatio()) { setResHardLimitRatio(other.getResHardLimitRatio()); } 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 { apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder> resourcesBuilder_; /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public Builder setResources( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public Builder setResources( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public Builder addResources(apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public Builder addResources( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public Builder addResources( apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public Builder addResources( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); super.addAll(values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resources = 1; * *
       *not include executableUri and packageCapability, the parent process should cover them.
       * 
*/ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>( resources_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } // repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; private java.util.List params_ = java.util.Collections.emptyList(); private void ensureParamsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { params_ = new java.util.ArrayList(params_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.StringToStringPair, apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.Builder, apsara.odps.cupid.protocol.ProxyAm.StringToStringPairOrBuilder> paramsBuilder_; /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public java.util.List getParamsList() { if (paramsBuilder_ == null) { return java.util.Collections.unmodifiableList(params_); } else { return paramsBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public int getParamsCount() { if (paramsBuilder_ == null) { return params_.size(); } else { return paramsBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public apsara.odps.cupid.protocol.ProxyAm.StringToStringPair getParams(int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public Builder setParams( int index, apsara.odps.cupid.protocol.ProxyAm.StringToStringPair value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.set(index, value); onChanged(); } else { paramsBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public Builder setParams( int index, apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.set(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public Builder addParams(apsara.odps.cupid.protocol.ProxyAm.StringToStringPair value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.add(value); onChanged(); } else { paramsBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public Builder addParams( int index, apsara.odps.cupid.protocol.ProxyAm.StringToStringPair value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParamsIsMutable(); params_.add(index, value); onChanged(); } else { paramsBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public Builder addParams( apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public Builder addParams( int index, apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.Builder builderForValue) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.add(index, builderForValue.build()); onChanged(); } else { paramsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public Builder addAllParams( java.lang.Iterable values) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); super.addAll(values, params_); onChanged(); } else { paramsBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public Builder clearParams() { if (paramsBuilder_ == null) { params_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { paramsBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public Builder removeParams(int index) { if (paramsBuilder_ == null) { ensureParamsIsMutable(); params_.remove(index); onChanged(); } else { paramsBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.Builder getParamsBuilder( int index) { return getParamsFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public apsara.odps.cupid.protocol.ProxyAm.StringToStringPairOrBuilder getParamsOrBuilder( int index) { if (paramsBuilder_ == null) { return params_.get(index); } else { return paramsBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public java.util.List getParamsOrBuilderList() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(params_); } } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.Builder addParamsBuilder() { return getParamsFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.Builder addParamsBuilder( int index) { return getParamsFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.StringToStringPair params = 2; */ public java.util.List getParamsBuilderList() { return getParamsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.StringToStringPair, apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.Builder, apsara.odps.cupid.protocol.ProxyAm.StringToStringPairOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.StringToStringPair, apsara.odps.cupid.protocol.ProxyAm.StringToStringPair.Builder, apsara.odps.cupid.protocol.ProxyAm.StringToStringPairOrBuilder>( params_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } // optional int64 slotId = 3; private long slotId_ ; /** * optional int64 slotId = 3; */ public boolean hasSlotId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int64 slotId = 3; */ public long getSlotId() { return slotId_; } /** * optional int64 slotId = 3; */ public Builder setSlotId(long value) { bitField0_ |= 0x00000004; slotId_ = value; onChanged(); return this; } /** * optional int64 slotId = 3; */ public Builder clearSlotId() { bitField0_ = (bitField0_ & ~0x00000004); slotId_ = 0L; onChanged(); return this; } // optional double resHardLimitRatio = 4; private double resHardLimitRatio_ ; /** * optional double resHardLimitRatio = 4; */ public boolean hasResHardLimitRatio() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional double resHardLimitRatio = 4; */ public double getResHardLimitRatio() { return resHardLimitRatio_; } /** * optional double resHardLimitRatio = 4; */ public Builder setResHardLimitRatio(double value) { bitField0_ |= 0x00000008; resHardLimitRatio_ = value; onChanged(); return this; } /** * optional double resHardLimitRatio = 4; */ public Builder clearResHardLimitRatio() { bitField0_ = (bitField0_ & ~0x00000008); resHardLimitRatio_ = 0D; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.WorkerProcessInfo) } static { defaultInstance = new WorkerProcessInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.WorkerProcessInfo) } public interface WorkerItemOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string workerName = 1; /** * optional string workerName = 1; */ boolean hasWorkerName(); /** * optional string workerName = 1; */ java.lang.String getWorkerName(); /** * optional string workerName = 1; */ com.google.protobuf.ByteString getWorkerNameBytes(); // optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ boolean hasProcInfo(); /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo getProcInfo(); /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfoOrBuilder getProcInfoOrBuilder(); } /** * Protobuf type {@code apsara.odps.cupid.protocol.WorkerItem} */ public static final class WorkerItem extends com.google.protobuf.GeneratedMessage implements WorkerItemOrBuilder { // Use WorkerItem.newBuilder() to construct. private WorkerItem(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private WorkerItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final WorkerItem defaultInstance; public static WorkerItem getDefaultInstance() { return defaultInstance; } public WorkerItem getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WorkerItem( 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: { bitField0_ |= 0x00000001; workerName_ = input.readBytes(); break; } case 18: { apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = procInfo_.toBuilder(); } procInfo_ = input.readMessage(apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(procInfo_); procInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; 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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerItem_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.WorkerItem.class, apsara.odps.cupid.protocol.ProxyAm.WorkerItem.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WorkerItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WorkerItem(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string workerName = 1; public static final int WORKERNAME_FIELD_NUMBER = 1; private java.lang.Object workerName_; /** * optional string workerName = 1; */ public boolean hasWorkerName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string workerName = 1; */ public java.lang.String getWorkerName() { java.lang.Object ref = workerName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { workerName_ = s; } return s; } } /** * optional string workerName = 1; */ public com.google.protobuf.ByteString getWorkerNameBytes() { java.lang.Object ref = workerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); workerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; public static final int PROCINFO_FIELD_NUMBER = 2; private apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo procInfo_; /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ public boolean hasProcInfo() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo getProcInfo() { return procInfo_; } /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfoOrBuilder getProcInfoOrBuilder() { return procInfo_; } private void initFields() { workerName_ = ""; procInfo_ = apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.getDefaultInstance(); } 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(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getWorkerNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, procInfo_); } 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 .computeBytesSize(1, getWorkerNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, procInfo_); } 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 apsara.odps.cupid.protocol.ProxyAm.WorkerItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerItem parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerItem 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(apsara.odps.cupid.protocol.ProxyAm.WorkerItem 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 apsara.odps.cupid.protocol.WorkerItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.WorkerItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerItem_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.WorkerItem.class, apsara.odps.cupid.protocol.ProxyAm.WorkerItem.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.WorkerItem.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getProcInfoFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); workerName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (procInfoBuilder_ == null) { procInfo_ = apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.getDefaultInstance(); } else { procInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerItem_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.WorkerItem getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.WorkerItem.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.WorkerItem build() { apsara.odps.cupid.protocol.ProxyAm.WorkerItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.WorkerItem buildPartial() { apsara.odps.cupid.protocol.ProxyAm.WorkerItem result = new apsara.odps.cupid.protocol.ProxyAm.WorkerItem(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.workerName_ = workerName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (procInfoBuilder_ == null) { result.procInfo_ = procInfo_; } else { result.procInfo_ = procInfoBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.WorkerItem) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.WorkerItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.WorkerItem other) { if (other == apsara.odps.cupid.protocol.ProxyAm.WorkerItem.getDefaultInstance()) return this; if (other.hasWorkerName()) { bitField0_ |= 0x00000001; workerName_ = other.workerName_; onChanged(); } if (other.hasProcInfo()) { mergeProcInfo(other.getProcInfo()); } 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 { apsara.odps.cupid.protocol.ProxyAm.WorkerItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.WorkerItem) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string workerName = 1; private java.lang.Object workerName_ = ""; /** * optional string workerName = 1; */ public boolean hasWorkerName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string workerName = 1; */ public java.lang.String getWorkerName() { java.lang.Object ref = workerName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); workerName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string workerName = 1; */ public com.google.protobuf.ByteString getWorkerNameBytes() { java.lang.Object ref = workerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); workerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string workerName = 1; */ public Builder setWorkerName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; workerName_ = value; onChanged(); return this; } /** * optional string workerName = 1; */ public Builder clearWorkerName() { bitField0_ = (bitField0_ & ~0x00000001); workerName_ = getDefaultInstance().getWorkerName(); onChanged(); return this; } /** * optional string workerName = 1; */ public Builder setWorkerNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; workerName_ = value; onChanged(); return this; } // optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; private apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo procInfo_ = apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo, apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfoOrBuilder> procInfoBuilder_; /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ public boolean hasProcInfo() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo getProcInfo() { if (procInfoBuilder_ == null) { return procInfo_; } else { return procInfoBuilder_.getMessage(); } } /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ public Builder setProcInfo(apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo value) { if (procInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } procInfo_ = value; onChanged(); } else { procInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ public Builder setProcInfo( apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.Builder builderForValue) { if (procInfoBuilder_ == null) { procInfo_ = builderForValue.build(); onChanged(); } else { procInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ public Builder mergeProcInfo(apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo value) { if (procInfoBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && procInfo_ != apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.getDefaultInstance()) { procInfo_ = apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.newBuilder(procInfo_).mergeFrom(value).buildPartial(); } else { procInfo_ = value; } onChanged(); } else { procInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ public Builder clearProcInfo() { if (procInfoBuilder_ == null) { procInfo_ = apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.getDefaultInstance(); onChanged(); } else { procInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.Builder getProcInfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getProcInfoFieldBuilder().getBuilder(); } /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfoOrBuilder getProcInfoOrBuilder() { if (procInfoBuilder_ != null) { return procInfoBuilder_.getMessageOrBuilder(); } else { return procInfo_; } } /** * optional .apsara.odps.cupid.protocol.WorkerProcessInfo procInfo = 2; */ private com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo, apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfoOrBuilder> getProcInfoFieldBuilder() { if (procInfoBuilder_ == null) { procInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo, apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfo.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerProcessInfoOrBuilder>( procInfo_, getParentForChildren(), isClean()); procInfo_ = null; } return procInfoBuilder_; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.WorkerItem) } static { defaultInstance = new WorkerItem(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.WorkerItem) } public interface WorkerListOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ java.util.List getStartListList(); /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ apsara.odps.cupid.protocol.ProxyAm.WorkerItem getStartList(int index); /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ int getStartListCount(); /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ java.util.List getStartListOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ apsara.odps.cupid.protocol.ProxyAm.WorkerItemOrBuilder getStartListOrBuilder( int index); // repeated string stopList = 2; /** * repeated string stopList = 2; */ java.util.List getStopListList(); /** * repeated string stopList = 2; */ int getStopListCount(); /** * repeated string stopList = 2; */ java.lang.String getStopList(int index); /** * repeated string stopList = 2; */ com.google.protobuf.ByteString getStopListBytes(int index); } /** * Protobuf type {@code apsara.odps.cupid.protocol.WorkerList} */ public static final class WorkerList extends com.google.protobuf.GeneratedMessage implements WorkerListOrBuilder { // Use WorkerList.newBuilder() to construct. private WorkerList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private WorkerList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final WorkerList defaultInstance; public static WorkerList getDefaultInstance() { return defaultInstance; } public WorkerList getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WorkerList( 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)) { startList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } startList_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.WorkerItem.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { stopList_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } stopList_.add(input.readBytes()); 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)) { startList_ = java.util.Collections.unmodifiableList(startList_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { stopList_ = new com.google.protobuf.UnmodifiableLazyStringList(stopList_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerList_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerList_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.WorkerList.class, apsara.odps.cupid.protocol.ProxyAm.WorkerList.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WorkerList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WorkerList(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; public static final int STARTLIST_FIELD_NUMBER = 1; private java.util.List startList_; /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public java.util.List getStartListList() { return startList_; } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public java.util.List getStartListOrBuilderList() { return startList_; } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public int getStartListCount() { return startList_.size(); } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerItem getStartList(int index) { return startList_.get(index); } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerItemOrBuilder getStartListOrBuilder( int index) { return startList_.get(index); } // repeated string stopList = 2; public static final int STOPLIST_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList stopList_; /** * repeated string stopList = 2; */ public java.util.List getStopListList() { return stopList_; } /** * repeated string stopList = 2; */ public int getStopListCount() { return stopList_.size(); } /** * repeated string stopList = 2; */ public java.lang.String getStopList(int index) { return stopList_.get(index); } /** * repeated string stopList = 2; */ public com.google.protobuf.ByteString getStopListBytes(int index) { return stopList_.getByteString(index); } private void initFields() { startList_ = java.util.Collections.emptyList(); stopList_ = com.google.protobuf.LazyStringArrayList.EMPTY; } 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 < startList_.size(); i++) { output.writeMessage(1, startList_.get(i)); } for (int i = 0; i < stopList_.size(); i++) { output.writeBytes(2, stopList_.getByteString(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 < startList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, startList_.get(i)); } { int dataSize = 0; for (int i = 0; i < stopList_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(stopList_.getByteString(i)); } size += dataSize; size += 1 * getStopListList().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 apsara.odps.cupid.protocol.ProxyAm.WorkerList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerList parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerList 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(apsara.odps.cupid.protocol.ProxyAm.WorkerList 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 apsara.odps.cupid.protocol.WorkerList} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.WorkerListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerList_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerList_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.WorkerList.class, apsara.odps.cupid.protocol.ProxyAm.WorkerList.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.WorkerList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getStartListFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (startListBuilder_ == null) { startList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { startListBuilder_.clear(); } stopList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerList_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.WorkerList getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.WorkerList.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.WorkerList build() { apsara.odps.cupid.protocol.ProxyAm.WorkerList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.WorkerList buildPartial() { apsara.odps.cupid.protocol.ProxyAm.WorkerList result = new apsara.odps.cupid.protocol.ProxyAm.WorkerList(this); int from_bitField0_ = bitField0_; if (startListBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { startList_ = java.util.Collections.unmodifiableList(startList_); bitField0_ = (bitField0_ & ~0x00000001); } result.startList_ = startList_; } else { result.startList_ = startListBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { stopList_ = new com.google.protobuf.UnmodifiableLazyStringList( stopList_); bitField0_ = (bitField0_ & ~0x00000002); } result.stopList_ = stopList_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.WorkerList) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.WorkerList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.WorkerList other) { if (other == apsara.odps.cupid.protocol.ProxyAm.WorkerList.getDefaultInstance()) return this; if (startListBuilder_ == null) { if (!other.startList_.isEmpty()) { if (startList_.isEmpty()) { startList_ = other.startList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureStartListIsMutable(); startList_.addAll(other.startList_); } onChanged(); } } else { if (!other.startList_.isEmpty()) { if (startListBuilder_.isEmpty()) { startListBuilder_.dispose(); startListBuilder_ = null; startList_ = other.startList_; bitField0_ = (bitField0_ & ~0x00000001); startListBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getStartListFieldBuilder() : null; } else { startListBuilder_.addAllMessages(other.startList_); } } } if (!other.stopList_.isEmpty()) { if (stopList_.isEmpty()) { stopList_ = other.stopList_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStopListIsMutable(); stopList_.addAll(other.stopList_); } 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 { apsara.odps.cupid.protocol.ProxyAm.WorkerList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.WorkerList) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; private java.util.List startList_ = java.util.Collections.emptyList(); private void ensureStartListIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { startList_ = new java.util.ArrayList(startList_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerItem, apsara.odps.cupid.protocol.ProxyAm.WorkerItem.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerItemOrBuilder> startListBuilder_; /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public java.util.List getStartListList() { if (startListBuilder_ == null) { return java.util.Collections.unmodifiableList(startList_); } else { return startListBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public int getStartListCount() { if (startListBuilder_ == null) { return startList_.size(); } else { return startListBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerItem getStartList(int index) { if (startListBuilder_ == null) { return startList_.get(index); } else { return startListBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public Builder setStartList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerItem value) { if (startListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStartListIsMutable(); startList_.set(index, value); onChanged(); } else { startListBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public Builder setStartList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerItem.Builder builderForValue) { if (startListBuilder_ == null) { ensureStartListIsMutable(); startList_.set(index, builderForValue.build()); onChanged(); } else { startListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public Builder addStartList(apsara.odps.cupid.protocol.ProxyAm.WorkerItem value) { if (startListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStartListIsMutable(); startList_.add(value); onChanged(); } else { startListBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public Builder addStartList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerItem value) { if (startListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStartListIsMutable(); startList_.add(index, value); onChanged(); } else { startListBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public Builder addStartList( apsara.odps.cupid.protocol.ProxyAm.WorkerItem.Builder builderForValue) { if (startListBuilder_ == null) { ensureStartListIsMutable(); startList_.add(builderForValue.build()); onChanged(); } else { startListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public Builder addStartList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerItem.Builder builderForValue) { if (startListBuilder_ == null) { ensureStartListIsMutable(); startList_.add(index, builderForValue.build()); onChanged(); } else { startListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public Builder addAllStartList( java.lang.Iterable values) { if (startListBuilder_ == null) { ensureStartListIsMutable(); super.addAll(values, startList_); onChanged(); } else { startListBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public Builder clearStartList() { if (startListBuilder_ == null) { startList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { startListBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public Builder removeStartList(int index) { if (startListBuilder_ == null) { ensureStartListIsMutable(); startList_.remove(index); onChanged(); } else { startListBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerItem.Builder getStartListBuilder( int index) { return getStartListFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerItemOrBuilder getStartListOrBuilder( int index) { if (startListBuilder_ == null) { return startList_.get(index); } else { return startListBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public java.util.List getStartListOrBuilderList() { if (startListBuilder_ != null) { return startListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(startList_); } } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerItem.Builder addStartListBuilder() { return getStartListFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.WorkerItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerItem.Builder addStartListBuilder( int index) { return getStartListFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.WorkerItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.WorkerItem startList = 1; */ public java.util.List getStartListBuilderList() { return getStartListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerItem, apsara.odps.cupid.protocol.ProxyAm.WorkerItem.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerItemOrBuilder> getStartListFieldBuilder() { if (startListBuilder_ == null) { startListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerItem, apsara.odps.cupid.protocol.ProxyAm.WorkerItem.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerItemOrBuilder>( startList_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); startList_ = null; } return startListBuilder_; } // repeated string stopList = 2; private com.google.protobuf.LazyStringList stopList_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStopListIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { stopList_ = new com.google.protobuf.LazyStringArrayList(stopList_); bitField0_ |= 0x00000002; } } /** * repeated string stopList = 2; */ public java.util.List getStopListList() { return java.util.Collections.unmodifiableList(stopList_); } /** * repeated string stopList = 2; */ public int getStopListCount() { return stopList_.size(); } /** * repeated string stopList = 2; */ public java.lang.String getStopList(int index) { return stopList_.get(index); } /** * repeated string stopList = 2; */ public com.google.protobuf.ByteString getStopListBytes(int index) { return stopList_.getByteString(index); } /** * repeated string stopList = 2; */ public Builder setStopList( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStopListIsMutable(); stopList_.set(index, value); onChanged(); return this; } /** * repeated string stopList = 2; */ public Builder addStopList( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStopListIsMutable(); stopList_.add(value); onChanged(); return this; } /** * repeated string stopList = 2; */ public Builder addAllStopList( java.lang.Iterable values) { ensureStopListIsMutable(); super.addAll(values, stopList_); onChanged(); return this; } /** * repeated string stopList = 2; */ public Builder clearStopList() { stopList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string stopList = 2; */ public Builder addStopListBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureStopListIsMutable(); stopList_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.WorkerList) } static { defaultInstance = new WorkerList(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.WorkerList) } public interface WorkerListItemOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string roleName = 1; /** * optional string roleName = 1; */ boolean hasRoleName(); /** * optional string roleName = 1; */ java.lang.String getRoleName(); /** * optional string roleName = 1; */ com.google.protobuf.ByteString getRoleNameBytes(); // optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ boolean hasWorkerList(); /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ apsara.odps.cupid.protocol.ProxyAm.WorkerList getWorkerList(); /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ apsara.odps.cupid.protocol.ProxyAm.WorkerListOrBuilder getWorkerListOrBuilder(); } /** * Protobuf type {@code apsara.odps.cupid.protocol.WorkerListItem} */ public static final class WorkerListItem extends com.google.protobuf.GeneratedMessage implements WorkerListItemOrBuilder { // Use WorkerListItem.newBuilder() to construct. private WorkerListItem(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private WorkerListItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final WorkerListItem defaultInstance; public static WorkerListItem getDefaultInstance() { return defaultInstance; } public WorkerListItem getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WorkerListItem( 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: { bitField0_ |= 0x00000001; roleName_ = input.readBytes(); break; } case 18: { apsara.odps.cupid.protocol.ProxyAm.WorkerList.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = workerList_.toBuilder(); } workerList_ = input.readMessage(apsara.odps.cupid.protocol.ProxyAm.WorkerList.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(workerList_); workerList_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; 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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerListItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerListItem_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.class, apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WorkerListItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WorkerListItem(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string roleName = 1; public static final int ROLENAME_FIELD_NUMBER = 1; private java.lang.Object roleName_; /** * optional string roleName = 1; */ public boolean hasRoleName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string roleName = 1; */ public java.lang.String getRoleName() { java.lang.Object ref = roleName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { roleName_ = s; } return s; } } /** * optional string roleName = 1; */ public com.google.protobuf.ByteString getRoleNameBytes() { java.lang.Object ref = roleName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); roleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; public static final int WORKERLIST_FIELD_NUMBER = 2; private apsara.odps.cupid.protocol.ProxyAm.WorkerList workerList_; /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ public boolean hasWorkerList() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerList getWorkerList() { return workerList_; } /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerListOrBuilder getWorkerListOrBuilder() { return workerList_; } private void initFields() { roleName_ = ""; workerList_ = apsara.odps.cupid.protocol.ProxyAm.WorkerList.getDefaultInstance(); } 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(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getRoleNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, workerList_); } 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 .computeBytesSize(1, getRoleNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, workerList_); } 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 apsara.odps.cupid.protocol.ProxyAm.WorkerListItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerListItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerListItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerListItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerListItem parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerListItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerListItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerListItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerListItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerListItem 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(apsara.odps.cupid.protocol.ProxyAm.WorkerListItem 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 apsara.odps.cupid.protocol.WorkerListItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.WorkerListItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerListItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerListItem_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.class, apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getWorkerListFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); roleName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (workerListBuilder_ == null) { workerList_ = apsara.odps.cupid.protocol.ProxyAm.WorkerList.getDefaultInstance(); } else { workerListBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerListItem_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.WorkerListItem getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.WorkerListItem build() { apsara.odps.cupid.protocol.ProxyAm.WorkerListItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.WorkerListItem buildPartial() { apsara.odps.cupid.protocol.ProxyAm.WorkerListItem result = new apsara.odps.cupid.protocol.ProxyAm.WorkerListItem(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.roleName_ = roleName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (workerListBuilder_ == null) { result.workerList_ = workerList_; } else { result.workerList_ = workerListBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.WorkerListItem) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.WorkerListItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.WorkerListItem other) { if (other == apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.getDefaultInstance()) return this; if (other.hasRoleName()) { bitField0_ |= 0x00000001; roleName_ = other.roleName_; onChanged(); } if (other.hasWorkerList()) { mergeWorkerList(other.getWorkerList()); } 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 { apsara.odps.cupid.protocol.ProxyAm.WorkerListItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.WorkerListItem) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string roleName = 1; private java.lang.Object roleName_ = ""; /** * optional string roleName = 1; */ public boolean hasRoleName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string roleName = 1; */ public java.lang.String getRoleName() { java.lang.Object ref = roleName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); roleName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string roleName = 1; */ public com.google.protobuf.ByteString getRoleNameBytes() { java.lang.Object ref = roleName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); roleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string roleName = 1; */ public Builder setRoleName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; roleName_ = value; onChanged(); return this; } /** * optional string roleName = 1; */ public Builder clearRoleName() { bitField0_ = (bitField0_ & ~0x00000001); roleName_ = getDefaultInstance().getRoleName(); onChanged(); return this; } /** * optional string roleName = 1; */ public Builder setRoleNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; roleName_ = value; onChanged(); return this; } // optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; private apsara.odps.cupid.protocol.ProxyAm.WorkerList workerList_ = apsara.odps.cupid.protocol.ProxyAm.WorkerList.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerList, apsara.odps.cupid.protocol.ProxyAm.WorkerList.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerListOrBuilder> workerListBuilder_; /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ public boolean hasWorkerList() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerList getWorkerList() { if (workerListBuilder_ == null) { return workerList_; } else { return workerListBuilder_.getMessage(); } } /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ public Builder setWorkerList(apsara.odps.cupid.protocol.ProxyAm.WorkerList value) { if (workerListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workerList_ = value; onChanged(); } else { workerListBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ public Builder setWorkerList( apsara.odps.cupid.protocol.ProxyAm.WorkerList.Builder builderForValue) { if (workerListBuilder_ == null) { workerList_ = builderForValue.build(); onChanged(); } else { workerListBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ public Builder mergeWorkerList(apsara.odps.cupid.protocol.ProxyAm.WorkerList value) { if (workerListBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && workerList_ != apsara.odps.cupid.protocol.ProxyAm.WorkerList.getDefaultInstance()) { workerList_ = apsara.odps.cupid.protocol.ProxyAm.WorkerList.newBuilder(workerList_).mergeFrom(value).buildPartial(); } else { workerList_ = value; } onChanged(); } else { workerListBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ public Builder clearWorkerList() { if (workerListBuilder_ == null) { workerList_ = apsara.odps.cupid.protocol.ProxyAm.WorkerList.getDefaultInstance(); onChanged(); } else { workerListBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerList.Builder getWorkerListBuilder() { bitField0_ |= 0x00000002; onChanged(); return getWorkerListFieldBuilder().getBuilder(); } /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerListOrBuilder getWorkerListOrBuilder() { if (workerListBuilder_ != null) { return workerListBuilder_.getMessageOrBuilder(); } else { return workerList_; } } /** * optional .apsara.odps.cupid.protocol.WorkerList workerList = 2; */ private com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerList, apsara.odps.cupid.protocol.ProxyAm.WorkerList.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerListOrBuilder> getWorkerListFieldBuilder() { if (workerListBuilder_ == null) { workerListBuilder_ = new com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerList, apsara.odps.cupid.protocol.ProxyAm.WorkerList.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerListOrBuilder>( workerList_, getParentForChildren(), isClean()); workerList_ = null; } return workerListBuilder_; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.WorkerListItem) } static { defaultInstance = new WorkerListItem(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.WorkerListItem) } public interface SendWorkerListRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ java.util.List getWorkerListList(); /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ apsara.odps.cupid.protocol.ProxyAm.WorkerListItem getWorkerList(int index); /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ int getWorkerListCount(); /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ java.util.List getWorkerListOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ apsara.odps.cupid.protocol.ProxyAm.WorkerListItemOrBuilder getWorkerListOrBuilder( int index); } /** * Protobuf type {@code apsara.odps.cupid.protocol.SendWorkerListRequest} */ public static final class SendWorkerListRequest extends com.google.protobuf.GeneratedMessage implements SendWorkerListRequestOrBuilder { // Use SendWorkerListRequest.newBuilder() to construct. private SendWorkerListRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SendWorkerListRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SendWorkerListRequest defaultInstance; public static SendWorkerListRequest getDefaultInstance() { return defaultInstance; } public SendWorkerListRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SendWorkerListRequest( 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)) { workerList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } workerList_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.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)) { workerList_ = java.util.Collections.unmodifiableList(workerList_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_SendWorkerListRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_SendWorkerListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest.class, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SendWorkerListRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SendWorkerListRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; public static final int WORKERLIST_FIELD_NUMBER = 1; private java.util.List workerList_; /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public java.util.List getWorkerListList() { return workerList_; } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public java.util.List getWorkerListOrBuilderList() { return workerList_; } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public int getWorkerListCount() { return workerList_.size(); } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerListItem getWorkerList(int index) { return workerList_.get(index); } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerListItemOrBuilder getWorkerListOrBuilder( int index) { return workerList_.get(index); } private void initFields() { workerList_ = 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 < workerList_.size(); i++) { output.writeMessage(1, workerList_.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 < workerList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, workerList_.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 apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest 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(apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest 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 apsara.odps.cupid.protocol.SendWorkerListRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_SendWorkerListRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_SendWorkerListRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest.class, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getWorkerListFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (workerListBuilder_ == null) { workerList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { workerListBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_SendWorkerListRequest_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest build() { apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest buildPartial() { apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest result = new apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest(this); int from_bitField0_ = bitField0_; if (workerListBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { workerList_ = java.util.Collections.unmodifiableList(workerList_); bitField0_ = (bitField0_ & ~0x00000001); } result.workerList_ = workerList_; } else { result.workerList_ = workerListBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest other) { if (other == apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest.getDefaultInstance()) return this; if (workerListBuilder_ == null) { if (!other.workerList_.isEmpty()) { if (workerList_.isEmpty()) { workerList_ = other.workerList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureWorkerListIsMutable(); workerList_.addAll(other.workerList_); } onChanged(); } } else { if (!other.workerList_.isEmpty()) { if (workerListBuilder_.isEmpty()) { workerListBuilder_.dispose(); workerListBuilder_ = null; workerList_ = other.workerList_; bitField0_ = (bitField0_ & ~0x00000001); workerListBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getWorkerListFieldBuilder() : null; } else { workerListBuilder_.addAllMessages(other.workerList_); } } } 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 { apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; private java.util.List workerList_ = java.util.Collections.emptyList(); private void ensureWorkerListIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { workerList_ = new java.util.ArrayList(workerList_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerListItem, apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerListItemOrBuilder> workerListBuilder_; /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public java.util.List getWorkerListList() { if (workerListBuilder_ == null) { return java.util.Collections.unmodifiableList(workerList_); } else { return workerListBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public int getWorkerListCount() { if (workerListBuilder_ == null) { return workerList_.size(); } else { return workerListBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerListItem getWorkerList(int index) { if (workerListBuilder_ == null) { return workerList_.get(index); } else { return workerListBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public Builder setWorkerList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerListItem value) { if (workerListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWorkerListIsMutable(); workerList_.set(index, value); onChanged(); } else { workerListBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public Builder setWorkerList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.Builder builderForValue) { if (workerListBuilder_ == null) { ensureWorkerListIsMutable(); workerList_.set(index, builderForValue.build()); onChanged(); } else { workerListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public Builder addWorkerList(apsara.odps.cupid.protocol.ProxyAm.WorkerListItem value) { if (workerListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWorkerListIsMutable(); workerList_.add(value); onChanged(); } else { workerListBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public Builder addWorkerList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerListItem value) { if (workerListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWorkerListIsMutable(); workerList_.add(index, value); onChanged(); } else { workerListBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public Builder addWorkerList( apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.Builder builderForValue) { if (workerListBuilder_ == null) { ensureWorkerListIsMutable(); workerList_.add(builderForValue.build()); onChanged(); } else { workerListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public Builder addWorkerList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.Builder builderForValue) { if (workerListBuilder_ == null) { ensureWorkerListIsMutable(); workerList_.add(index, builderForValue.build()); onChanged(); } else { workerListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public Builder addAllWorkerList( java.lang.Iterable values) { if (workerListBuilder_ == null) { ensureWorkerListIsMutable(); super.addAll(values, workerList_); onChanged(); } else { workerListBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public Builder clearWorkerList() { if (workerListBuilder_ == null) { workerList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { workerListBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public Builder removeWorkerList(int index) { if (workerListBuilder_ == null) { ensureWorkerListIsMutable(); workerList_.remove(index); onChanged(); } else { workerListBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.Builder getWorkerListBuilder( int index) { return getWorkerListFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerListItemOrBuilder getWorkerListOrBuilder( int index) { if (workerListBuilder_ == null) { return workerList_.get(index); } else { return workerListBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public java.util.List getWorkerListOrBuilderList() { if (workerListBuilder_ != null) { return workerListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(workerList_); } } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.Builder addWorkerListBuilder() { return getWorkerListFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.Builder addWorkerListBuilder( int index) { return getWorkerListFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.WorkerListItem workerList = 1; */ public java.util.List getWorkerListBuilderList() { return getWorkerListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerListItem, apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerListItemOrBuilder> getWorkerListFieldBuilder() { if (workerListBuilder_ == null) { workerListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerListItem, apsara.odps.cupid.protocol.ProxyAm.WorkerListItem.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerListItemOrBuilder>( workerList_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); workerList_ = null; } return workerListBuilder_; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.SendWorkerListRequest) } static { defaultInstance = new SendWorkerListRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.SendWorkerListRequest) } public interface AddRoleRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string roleName = 1; /** * optional string roleName = 1; */ boolean hasRoleName(); /** * optional string roleName = 1; */ java.lang.String getRoleName(); /** * optional string roleName = 1; */ com.google.protobuf.ByteString getRoleNameBytes(); // optional int64 slotId = 2; /** * optional int64 slotId = 2; */ boolean hasSlotId(); /** * optional int64 slotId = 2; */ long getSlotId(); // optional bool isStable = 3; /** * optional bool isStable = 3; */ boolean hasIsStable(); /** * optional bool isStable = 3; */ boolean getIsStable(); // repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ java.util.List getResourceDescList(); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem getResourceDesc(int index); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ int getResourceDescCount(); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ java.util.List getResourceDescOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder getResourceDescOrBuilder( int index); } /** * Protobuf type {@code apsara.odps.cupid.protocol.AddRoleRequest} */ public static final class AddRoleRequest extends com.google.protobuf.GeneratedMessage implements AddRoleRequestOrBuilder { // Use AddRoleRequest.newBuilder() to construct. private AddRoleRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AddRoleRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AddRoleRequest defaultInstance; public static AddRoleRequest getDefaultInstance() { return defaultInstance; } public AddRoleRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddRoleRequest( 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: { bitField0_ |= 0x00000001; roleName_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; slotId_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; isStable_ = input.readBool(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { resourceDesc_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } resourceDesc_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.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_ & 0x00000008) == 0x00000008)) { resourceDesc_ = java.util.Collections.unmodifiableList(resourceDesc_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AddRoleRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AddRoleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest.class, apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AddRoleRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddRoleRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string roleName = 1; public static final int ROLENAME_FIELD_NUMBER = 1; private java.lang.Object roleName_; /** * optional string roleName = 1; */ public boolean hasRoleName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string roleName = 1; */ public java.lang.String getRoleName() { java.lang.Object ref = roleName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { roleName_ = s; } return s; } } /** * optional string roleName = 1; */ public com.google.protobuf.ByteString getRoleNameBytes() { java.lang.Object ref = roleName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); roleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 slotId = 2; public static final int SLOTID_FIELD_NUMBER = 2; private long slotId_; /** * optional int64 slotId = 2; */ public boolean hasSlotId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 slotId = 2; */ public long getSlotId() { return slotId_; } // optional bool isStable = 3; public static final int ISSTABLE_FIELD_NUMBER = 3; private boolean isStable_; /** * optional bool isStable = 3; */ public boolean hasIsStable() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool isStable = 3; */ public boolean getIsStable() { return isStable_; } // repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; public static final int RESOURCEDESC_FIELD_NUMBER = 4; private java.util.List resourceDesc_; /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public java.util.List getResourceDescList() { return resourceDesc_; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public java.util.List getResourceDescOrBuilderList() { return resourceDesc_; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public int getResourceDescCount() { return resourceDesc_.size(); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem getResourceDesc(int index) { return resourceDesc_.get(index); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder getResourceDescOrBuilder( int index) { return resourceDesc_.get(index); } private void initFields() { roleName_ = ""; slotId_ = 0L; isStable_ = false; resourceDesc_ = 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(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getRoleNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, slotId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, isStable_); } for (int i = 0; i < resourceDesc_.size(); i++) { output.writeMessage(4, resourceDesc_.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 .computeBytesSize(1, getRoleNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, slotId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isStable_); } for (int i = 0; i < resourceDesc_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, resourceDesc_.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 apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest 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(apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest 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 apsara.odps.cupid.protocol.AddRoleRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.AddRoleRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AddRoleRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AddRoleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest.class, apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getResourceDescFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); roleName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); slotId_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); isStable_ = false; bitField0_ = (bitField0_ & ~0x00000004); if (resourceDescBuilder_ == null) { resourceDesc_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { resourceDescBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AddRoleRequest_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest build() { apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest buildPartial() { apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest result = new apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.roleName_ = roleName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.slotId_ = slotId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.isStable_ = isStable_; if (resourceDescBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { resourceDesc_ = java.util.Collections.unmodifiableList(resourceDesc_); bitField0_ = (bitField0_ & ~0x00000008); } result.resourceDesc_ = resourceDesc_; } else { result.resourceDesc_ = resourceDescBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest other) { if (other == apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest.getDefaultInstance()) return this; if (other.hasRoleName()) { bitField0_ |= 0x00000001; roleName_ = other.roleName_; onChanged(); } if (other.hasSlotId()) { setSlotId(other.getSlotId()); } if (other.hasIsStable()) { setIsStable(other.getIsStable()); } if (resourceDescBuilder_ == null) { if (!other.resourceDesc_.isEmpty()) { if (resourceDesc_.isEmpty()) { resourceDesc_ = other.resourceDesc_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureResourceDescIsMutable(); resourceDesc_.addAll(other.resourceDesc_); } onChanged(); } } else { if (!other.resourceDesc_.isEmpty()) { if (resourceDescBuilder_.isEmpty()) { resourceDescBuilder_.dispose(); resourceDescBuilder_ = null; resourceDesc_ = other.resourceDesc_; bitField0_ = (bitField0_ & ~0x00000008); resourceDescBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getResourceDescFieldBuilder() : null; } else { resourceDescBuilder_.addAllMessages(other.resourceDesc_); } } } 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 { apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string roleName = 1; private java.lang.Object roleName_ = ""; /** * optional string roleName = 1; */ public boolean hasRoleName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string roleName = 1; */ public java.lang.String getRoleName() { java.lang.Object ref = roleName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); roleName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string roleName = 1; */ public com.google.protobuf.ByteString getRoleNameBytes() { java.lang.Object ref = roleName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); roleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string roleName = 1; */ public Builder setRoleName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; roleName_ = value; onChanged(); return this; } /** * optional string roleName = 1; */ public Builder clearRoleName() { bitField0_ = (bitField0_ & ~0x00000001); roleName_ = getDefaultInstance().getRoleName(); onChanged(); return this; } /** * optional string roleName = 1; */ public Builder setRoleNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; roleName_ = value; onChanged(); return this; } // optional int64 slotId = 2; private long slotId_ ; /** * optional int64 slotId = 2; */ public boolean hasSlotId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int64 slotId = 2; */ public long getSlotId() { return slotId_; } /** * optional int64 slotId = 2; */ public Builder setSlotId(long value) { bitField0_ |= 0x00000002; slotId_ = value; onChanged(); return this; } /** * optional int64 slotId = 2; */ public Builder clearSlotId() { bitField0_ = (bitField0_ & ~0x00000002); slotId_ = 0L; onChanged(); return this; } // optional bool isStable = 3; private boolean isStable_ ; /** * optional bool isStable = 3; */ public boolean hasIsStable() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool isStable = 3; */ public boolean getIsStable() { return isStable_; } /** * optional bool isStable = 3; */ public Builder setIsStable(boolean value) { bitField0_ |= 0x00000004; isStable_ = value; onChanged(); return this; } /** * optional bool isStable = 3; */ public Builder clearIsStable() { bitField0_ = (bitField0_ & ~0x00000004); isStable_ = false; onChanged(); return this; } // repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; private java.util.List resourceDesc_ = java.util.Collections.emptyList(); private void ensureResourceDescIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { resourceDesc_ = new java.util.ArrayList(resourceDesc_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder> resourceDescBuilder_; /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public java.util.List getResourceDescList() { if (resourceDescBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceDesc_); } else { return resourceDescBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public int getResourceDescCount() { if (resourceDescBuilder_ == null) { return resourceDesc_.size(); } else { return resourceDescBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem getResourceDesc(int index) { if (resourceDescBuilder_ == null) { return resourceDesc_.get(index); } else { return resourceDescBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public Builder setResourceDesc( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem value) { if (resourceDescBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceDescIsMutable(); resourceDesc_.set(index, value); onChanged(); } else { resourceDescBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public Builder setResourceDesc( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder builderForValue) { if (resourceDescBuilder_ == null) { ensureResourceDescIsMutable(); resourceDesc_.set(index, builderForValue.build()); onChanged(); } else { resourceDescBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public Builder addResourceDesc(apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem value) { if (resourceDescBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceDescIsMutable(); resourceDesc_.add(value); onChanged(); } else { resourceDescBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public Builder addResourceDesc( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem value) { if (resourceDescBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceDescIsMutable(); resourceDesc_.add(index, value); onChanged(); } else { resourceDescBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public Builder addResourceDesc( apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder builderForValue) { if (resourceDescBuilder_ == null) { ensureResourceDescIsMutable(); resourceDesc_.add(builderForValue.build()); onChanged(); } else { resourceDescBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public Builder addResourceDesc( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder builderForValue) { if (resourceDescBuilder_ == null) { ensureResourceDescIsMutable(); resourceDesc_.add(index, builderForValue.build()); onChanged(); } else { resourceDescBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public Builder addAllResourceDesc( java.lang.Iterable values) { if (resourceDescBuilder_ == null) { ensureResourceDescIsMutable(); super.addAll(values, resourceDesc_); onChanged(); } else { resourceDescBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public Builder clearResourceDesc() { if (resourceDescBuilder_ == null) { resourceDesc_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { resourceDescBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public Builder removeResourceDesc(int index) { if (resourceDescBuilder_ == null) { ensureResourceDescIsMutable(); resourceDesc_.remove(index); onChanged(); } else { resourceDescBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder getResourceDescBuilder( int index) { return getResourceDescFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder getResourceDescOrBuilder( int index) { if (resourceDescBuilder_ == null) { return resourceDesc_.get(index); } else { return resourceDescBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public java.util.List getResourceDescOrBuilderList() { if (resourceDescBuilder_ != null) { return resourceDescBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resourceDesc_); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder addResourceDescBuilder() { return getResourceDescFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder addResourceDescBuilder( int index) { return getResourceDescFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem resourceDesc = 4; */ public java.util.List getResourceDescBuilderList() { return getResourceDescFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder> getResourceDescFieldBuilder() { if (resourceDescBuilder_ == null) { resourceDescBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>( resourceDesc_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); resourceDesc_ = null; } return resourceDescBuilder_; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.AddRoleRequest) } static { defaultInstance = new AddRoleRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.AddRoleRequest) } public interface AssignmentItemOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string roleName = 1; /** * optional string roleName = 1; */ boolean hasRoleName(); /** * optional string roleName = 1; */ java.lang.String getRoleName(); /** * optional string roleName = 1; */ com.google.protobuf.ByteString getRoleNameBytes(); // repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ java.util.List getResourcesList(); /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem getResources(int index); /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ int getResourcesCount(); /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ java.util.List getResourcesOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder getResourcesOrBuilder( int index); } /** * Protobuf type {@code apsara.odps.cupid.protocol.AssignmentItem} */ public static final class AssignmentItem extends com.google.protobuf.GeneratedMessage implements AssignmentItemOrBuilder { // Use AssignmentItem.newBuilder() to construct. private AssignmentItem(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AssignmentItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AssignmentItem defaultInstance; public static AssignmentItem getDefaultInstance() { return defaultInstance; } public AssignmentItem getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AssignmentItem( 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: { bitField0_ |= 0x00000001; roleName_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { resources_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } resources_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.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_ & 0x00000002) == 0x00000002)) { resources_ = java.util.Collections.unmodifiableList(resources_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AssignmentItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AssignmentItem_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.class, apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AssignmentItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AssignmentItem(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string roleName = 1; public static final int ROLENAME_FIELD_NUMBER = 1; private java.lang.Object roleName_; /** * optional string roleName = 1; */ public boolean hasRoleName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string roleName = 1; */ public java.lang.String getRoleName() { java.lang.Object ref = roleName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { roleName_ = s; } return s; } } /** * optional string roleName = 1; */ public com.google.protobuf.ByteString getRoleNameBytes() { java.lang.Object ref = roleName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); roleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; public static final int RESOURCES_FIELD_NUMBER = 2; private java.util.List resources_; /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public java.util.List getResourcesList() { return resources_; } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public java.util.List getResourcesOrBuilderList() { return resources_; } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public int getResourcesCount() { return resources_.size(); } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem getResources(int index) { return resources_.get(index); } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder getResourcesOrBuilder( int index) { return resources_.get(index); } private void initFields() { roleName_ = ""; resources_ = 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(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getRoleNameBytes()); } for (int i = 0; i < resources_.size(); i++) { output.writeMessage(2, resources_.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 .computeBytesSize(1, getRoleNameBytes()); } for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, resources_.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 apsara.odps.cupid.protocol.ProxyAm.AssignmentItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.AssignmentItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.AssignmentItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.AssignmentItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.AssignmentItem parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.AssignmentItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.AssignmentItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.AssignmentItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.AssignmentItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.AssignmentItem 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(apsara.odps.cupid.protocol.ProxyAm.AssignmentItem 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 apsara.odps.cupid.protocol.AssignmentItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.AssignmentItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AssignmentItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AssignmentItem_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.class, apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); roleName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { resourcesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AssignmentItem_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.AssignmentItem getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.AssignmentItem build() { apsara.odps.cupid.protocol.ProxyAm.AssignmentItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.AssignmentItem buildPartial() { apsara.odps.cupid.protocol.ProxyAm.AssignmentItem result = new apsara.odps.cupid.protocol.ProxyAm.AssignmentItem(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.roleName_ = roleName_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000002); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.AssignmentItem) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.AssignmentItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.AssignmentItem other) { if (other == apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.getDefaultInstance()) return this; if (other.hasRoleName()) { bitField0_ |= 0x00000001; roleName_ = other.roleName_; onChanged(); } if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000002); resourcesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } 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 { apsara.odps.cupid.protocol.ProxyAm.AssignmentItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.AssignmentItem) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string roleName = 1; private java.lang.Object roleName_ = ""; /** * optional string roleName = 1; */ public boolean hasRoleName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string roleName = 1; */ public java.lang.String getRoleName() { java.lang.Object ref = roleName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); roleName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string roleName = 1; */ public com.google.protobuf.ByteString getRoleNameBytes() { java.lang.Object ref = roleName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); roleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string roleName = 1; */ public Builder setRoleName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; roleName_ = value; onChanged(); return this; } /** * optional string roleName = 1; */ public Builder clearRoleName() { bitField0_ = (bitField0_ & ~0x00000001); roleName_ = getDefaultInstance().getRoleName(); onChanged(); return this; } /** * optional string roleName = 1; */ public Builder setRoleNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; roleName_ = value; onChanged(); return this; } // repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder> resourcesBuilder_; /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public Builder setResources( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public Builder setResources( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public Builder addResources(apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public Builder addResources( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public Builder addResources( apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public Builder addResources( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); super.addAll(values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder getResourcesOrBuilder( int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public java.util.List getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder addResourcesBuilder() { return getResourcesFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.ResourceMachineItem resources = 2; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder>( resources_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.AssignmentItem) } static { defaultInstance = new AssignmentItem(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.AssignmentItem) } public interface RoleMachineItemOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string roleName = 1; /** * optional string roleName = 1; */ boolean hasRoleName(); /** * optional string roleName = 1; */ java.lang.String getRoleName(); /** * optional string roleName = 1; */ com.google.protobuf.ByteString getRoleNameBytes(); // repeated string machines = 2; /** * repeated string machines = 2; */ java.util.List getMachinesList(); /** * repeated string machines = 2; */ int getMachinesCount(); /** * repeated string machines = 2; */ java.lang.String getMachines(int index); /** * repeated string machines = 2; */ com.google.protobuf.ByteString getMachinesBytes(int index); } /** * Protobuf type {@code apsara.odps.cupid.protocol.RoleMachineItem} */ public static final class RoleMachineItem extends com.google.protobuf.GeneratedMessage implements RoleMachineItemOrBuilder { // Use RoleMachineItem.newBuilder() to construct. private RoleMachineItem(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RoleMachineItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RoleMachineItem defaultInstance; public static RoleMachineItem getDefaultInstance() { return defaultInstance; } public RoleMachineItem getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RoleMachineItem( 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: { bitField0_ |= 0x00000001; roleName_ = input.readBytes(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { machines_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } machines_.add(input.readBytes()); 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_ & 0x00000002) == 0x00000002)) { machines_ = new com.google.protobuf.UnmodifiableLazyStringList(machines_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RoleMachineItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RoleMachineItem_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.class, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RoleMachineItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RoleMachineItem(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string roleName = 1; public static final int ROLENAME_FIELD_NUMBER = 1; private java.lang.Object roleName_; /** * optional string roleName = 1; */ public boolean hasRoleName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string roleName = 1; */ public java.lang.String getRoleName() { java.lang.Object ref = roleName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { roleName_ = s; } return s; } } /** * optional string roleName = 1; */ public com.google.protobuf.ByteString getRoleNameBytes() { java.lang.Object ref = roleName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); roleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated string machines = 2; public static final int MACHINES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList machines_; /** * repeated string machines = 2; */ public java.util.List getMachinesList() { return machines_; } /** * repeated string machines = 2; */ public int getMachinesCount() { return machines_.size(); } /** * repeated string machines = 2; */ public java.lang.String getMachines(int index) { return machines_.get(index); } /** * repeated string machines = 2; */ public com.google.protobuf.ByteString getMachinesBytes(int index) { return machines_.getByteString(index); } private void initFields() { roleName_ = ""; machines_ = com.google.protobuf.LazyStringArrayList.EMPTY; } 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(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getRoleNameBytes()); } for (int i = 0; i < machines_.size(); i++) { output.writeBytes(2, machines_.getByteString(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 .computeBytesSize(1, getRoleNameBytes()); } { int dataSize = 0; for (int i = 0; i < machines_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(machines_.getByteString(i)); } size += dataSize; size += 1 * getMachinesList().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 apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem 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(apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem 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 apsara.odps.cupid.protocol.RoleMachineItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RoleMachineItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RoleMachineItem_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.class, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.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(); roleName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); machines_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RoleMachineItem_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem build() { apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem buildPartial() { apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem result = new apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.roleName_ = roleName_; if (((bitField0_ & 0x00000002) == 0x00000002)) { machines_ = new com.google.protobuf.UnmodifiableLazyStringList( machines_); bitField0_ = (bitField0_ & ~0x00000002); } result.machines_ = machines_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem other) { if (other == apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.getDefaultInstance()) return this; if (other.hasRoleName()) { bitField0_ |= 0x00000001; roleName_ = other.roleName_; onChanged(); } if (!other.machines_.isEmpty()) { if (machines_.isEmpty()) { machines_ = other.machines_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMachinesIsMutable(); machines_.addAll(other.machines_); } 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 { apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string roleName = 1; private java.lang.Object roleName_ = ""; /** * optional string roleName = 1; */ public boolean hasRoleName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string roleName = 1; */ public java.lang.String getRoleName() { java.lang.Object ref = roleName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); roleName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string roleName = 1; */ public com.google.protobuf.ByteString getRoleNameBytes() { java.lang.Object ref = roleName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); roleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string roleName = 1; */ public Builder setRoleName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; roleName_ = value; onChanged(); return this; } /** * optional string roleName = 1; */ public Builder clearRoleName() { bitField0_ = (bitField0_ & ~0x00000001); roleName_ = getDefaultInstance().getRoleName(); onChanged(); return this; } /** * optional string roleName = 1; */ public Builder setRoleNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; roleName_ = value; onChanged(); return this; } // repeated string machines = 2; private com.google.protobuf.LazyStringList machines_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMachinesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { machines_ = new com.google.protobuf.LazyStringArrayList(machines_); bitField0_ |= 0x00000002; } } /** * repeated string machines = 2; */ public java.util.List getMachinesList() { return java.util.Collections.unmodifiableList(machines_); } /** * repeated string machines = 2; */ public int getMachinesCount() { return machines_.size(); } /** * repeated string machines = 2; */ public java.lang.String getMachines(int index) { return machines_.get(index); } /** * repeated string machines = 2; */ public com.google.protobuf.ByteString getMachinesBytes(int index) { return machines_.getByteString(index); } /** * repeated string machines = 2; */ public Builder setMachines( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMachinesIsMutable(); machines_.set(index, value); onChanged(); return this; } /** * repeated string machines = 2; */ public Builder addMachines( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMachinesIsMutable(); machines_.add(value); onChanged(); return this; } /** * repeated string machines = 2; */ public Builder addAllMachines( java.lang.Iterable values) { ensureMachinesIsMutable(); super.addAll(values, machines_); onChanged(); return this; } /** * repeated string machines = 2; */ public Builder clearMachines() { machines_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string machines = 2; */ public Builder addMachinesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureMachinesIsMutable(); machines_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.RoleMachineItem) } static { defaultInstance = new RoleMachineItem(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.RoleMachineItem) } public interface AssignedResourceChangeEventInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ java.util.List getAssignListList(); /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ apsara.odps.cupid.protocol.ProxyAm.AssignmentItem getAssignList(int index); /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ int getAssignListCount(); /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ java.util.List getAssignListOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ apsara.odps.cupid.protocol.ProxyAm.AssignmentItemOrBuilder getAssignListOrBuilder( int index); // repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ java.util.List getTimeoutMachineListList(); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem getTimeoutMachineList(int index); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ int getTimeoutMachineListCount(); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ java.util.List getTimeoutMachineListOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder getTimeoutMachineListOrBuilder( int index); // repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ java.util.List getAliveMachineListList(); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem getAliveMachineList(int index); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ int getAliveMachineListCount(); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ java.util.List getAliveMachineListOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder getAliveMachineListOrBuilder( int index); // repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ java.util.List getDecrStableMachineInClusterBlacklistList(); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem getDecrStableMachineInClusterBlacklist(int index); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ int getDecrStableMachineInClusterBlacklistCount(); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ java.util.List getDecrStableMachineInClusterBlacklistOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder getDecrStableMachineInClusterBlacklistOrBuilder( int index); // repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ java.util.List getIncrStableMachineInClusterBlacklistList(); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem getIncrStableMachineInClusterBlacklist(int index); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ int getIncrStableMachineInClusterBlacklistCount(); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ java.util.List getIncrStableMachineInClusterBlacklistOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder getIncrStableMachineInClusterBlacklistOrBuilder( int index); } /** * Protobuf type {@code apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo} */ public static final class AssignedResourceChangeEventInfo extends com.google.protobuf.GeneratedMessage implements AssignedResourceChangeEventInfoOrBuilder { // Use AssignedResourceChangeEventInfo.newBuilder() to construct. private AssignedResourceChangeEventInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AssignedResourceChangeEventInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AssignedResourceChangeEventInfo defaultInstance; public static AssignedResourceChangeEventInfo getDefaultInstance() { return defaultInstance; } public AssignedResourceChangeEventInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AssignedResourceChangeEventInfo( 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)) { assignList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } assignList_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { timeoutMachineList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } timeoutMachineList_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.PARSER, extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { aliveMachineList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } aliveMachineList_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.PARSER, extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { decrStableMachineInClusterBlacklist_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } decrStableMachineInClusterBlacklist_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.PARSER, extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { incrStableMachineInClusterBlacklist_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } incrStableMachineInClusterBlacklist_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.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)) { assignList_ = java.util.Collections.unmodifiableList(assignList_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { timeoutMachineList_ = java.util.Collections.unmodifiableList(timeoutMachineList_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { aliveMachineList_ = java.util.Collections.unmodifiableList(aliveMachineList_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { decrStableMachineInClusterBlacklist_ = java.util.Collections.unmodifiableList(decrStableMachineInClusterBlacklist_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { incrStableMachineInClusterBlacklist_ = java.util.Collections.unmodifiableList(incrStableMachineInClusterBlacklist_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AssignedResourceChangeEventInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AssignedResourceChangeEventInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.class, apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AssignedResourceChangeEventInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AssignedResourceChangeEventInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; public static final int ASSIGNLIST_FIELD_NUMBER = 1; private java.util.List assignList_; /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public java.util.List getAssignListList() { return assignList_; } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public java.util.List getAssignListOrBuilderList() { return assignList_; } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public int getAssignListCount() { return assignList_.size(); } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.AssignmentItem getAssignList(int index) { return assignList_.get(index); } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.AssignmentItemOrBuilder getAssignListOrBuilder( int index) { return assignList_.get(index); } // repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; public static final int TIMEOUTMACHINELIST_FIELD_NUMBER = 2; private java.util.List timeoutMachineList_; /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public java.util.List getTimeoutMachineListList() { return timeoutMachineList_; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public java.util.List getTimeoutMachineListOrBuilderList() { return timeoutMachineList_; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public int getTimeoutMachineListCount() { return timeoutMachineList_.size(); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem getTimeoutMachineList(int index) { return timeoutMachineList_.get(index); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder getTimeoutMachineListOrBuilder( int index) { return timeoutMachineList_.get(index); } // repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; public static final int ALIVEMACHINELIST_FIELD_NUMBER = 3; private java.util.List aliveMachineList_; /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public java.util.List getAliveMachineListList() { return aliveMachineList_; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public java.util.List getAliveMachineListOrBuilderList() { return aliveMachineList_; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public int getAliveMachineListCount() { return aliveMachineList_.size(); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem getAliveMachineList(int index) { return aliveMachineList_.get(index); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder getAliveMachineListOrBuilder( int index) { return aliveMachineList_.get(index); } // repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; public static final int DECRSTABLEMACHINEINCLUSTERBLACKLIST_FIELD_NUMBER = 4; private java.util.List decrStableMachineInClusterBlacklist_; /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public java.util.List getDecrStableMachineInClusterBlacklistList() { return decrStableMachineInClusterBlacklist_; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public java.util.List getDecrStableMachineInClusterBlacklistOrBuilderList() { return decrStableMachineInClusterBlacklist_; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public int getDecrStableMachineInClusterBlacklistCount() { return decrStableMachineInClusterBlacklist_.size(); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem getDecrStableMachineInClusterBlacklist(int index) { return decrStableMachineInClusterBlacklist_.get(index); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder getDecrStableMachineInClusterBlacklistOrBuilder( int index) { return decrStableMachineInClusterBlacklist_.get(index); } // repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; public static final int INCRSTABLEMACHINEINCLUSTERBLACKLIST_FIELD_NUMBER = 5; private java.util.List incrStableMachineInClusterBlacklist_; /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public java.util.List getIncrStableMachineInClusterBlacklistList() { return incrStableMachineInClusterBlacklist_; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public java.util.List getIncrStableMachineInClusterBlacklistOrBuilderList() { return incrStableMachineInClusterBlacklist_; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public int getIncrStableMachineInClusterBlacklistCount() { return incrStableMachineInClusterBlacklist_.size(); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem getIncrStableMachineInClusterBlacklist(int index) { return incrStableMachineInClusterBlacklist_.get(index); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder getIncrStableMachineInClusterBlacklistOrBuilder( int index) { return incrStableMachineInClusterBlacklist_.get(index); } private void initFields() { assignList_ = java.util.Collections.emptyList(); timeoutMachineList_ = java.util.Collections.emptyList(); aliveMachineList_ = java.util.Collections.emptyList(); decrStableMachineInClusterBlacklist_ = java.util.Collections.emptyList(); incrStableMachineInClusterBlacklist_ = 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 < assignList_.size(); i++) { output.writeMessage(1, assignList_.get(i)); } for (int i = 0; i < timeoutMachineList_.size(); i++) { output.writeMessage(2, timeoutMachineList_.get(i)); } for (int i = 0; i < aliveMachineList_.size(); i++) { output.writeMessage(3, aliveMachineList_.get(i)); } for (int i = 0; i < decrStableMachineInClusterBlacklist_.size(); i++) { output.writeMessage(4, decrStableMachineInClusterBlacklist_.get(i)); } for (int i = 0; i < incrStableMachineInClusterBlacklist_.size(); i++) { output.writeMessage(5, incrStableMachineInClusterBlacklist_.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 < assignList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, assignList_.get(i)); } for (int i = 0; i < timeoutMachineList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, timeoutMachineList_.get(i)); } for (int i = 0; i < aliveMachineList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, aliveMachineList_.get(i)); } for (int i = 0; i < decrStableMachineInClusterBlacklist_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, decrStableMachineInClusterBlacklist_.get(i)); } for (int i = 0; i < incrStableMachineInClusterBlacklist_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, incrStableMachineInClusterBlacklist_.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 apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo 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(apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo 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 apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AssignedResourceChangeEventInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AssignedResourceChangeEventInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.class, apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAssignListFieldBuilder(); getTimeoutMachineListFieldBuilder(); getAliveMachineListFieldBuilder(); getDecrStableMachineInClusterBlacklistFieldBuilder(); getIncrStableMachineInClusterBlacklistFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (assignListBuilder_ == null) { assignList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { assignListBuilder_.clear(); } if (timeoutMachineListBuilder_ == null) { timeoutMachineList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { timeoutMachineListBuilder_.clear(); } if (aliveMachineListBuilder_ == null) { aliveMachineList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { aliveMachineListBuilder_.clear(); } if (decrStableMachineInClusterBlacklistBuilder_ == null) { decrStableMachineInClusterBlacklist_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { decrStableMachineInClusterBlacklistBuilder_.clear(); } if (incrStableMachineInClusterBlacklistBuilder_ == null) { incrStableMachineInClusterBlacklist_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { incrStableMachineInClusterBlacklistBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_AssignedResourceChangeEventInfo_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo build() { apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo buildPartial() { apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo result = new apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo(this); int from_bitField0_ = bitField0_; if (assignListBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { assignList_ = java.util.Collections.unmodifiableList(assignList_); bitField0_ = (bitField0_ & ~0x00000001); } result.assignList_ = assignList_; } else { result.assignList_ = assignListBuilder_.build(); } if (timeoutMachineListBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { timeoutMachineList_ = java.util.Collections.unmodifiableList(timeoutMachineList_); bitField0_ = (bitField0_ & ~0x00000002); } result.timeoutMachineList_ = timeoutMachineList_; } else { result.timeoutMachineList_ = timeoutMachineListBuilder_.build(); } if (aliveMachineListBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { aliveMachineList_ = java.util.Collections.unmodifiableList(aliveMachineList_); bitField0_ = (bitField0_ & ~0x00000004); } result.aliveMachineList_ = aliveMachineList_; } else { result.aliveMachineList_ = aliveMachineListBuilder_.build(); } if (decrStableMachineInClusterBlacklistBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { decrStableMachineInClusterBlacklist_ = java.util.Collections.unmodifiableList(decrStableMachineInClusterBlacklist_); bitField0_ = (bitField0_ & ~0x00000008); } result.decrStableMachineInClusterBlacklist_ = decrStableMachineInClusterBlacklist_; } else { result.decrStableMachineInClusterBlacklist_ = decrStableMachineInClusterBlacklistBuilder_.build(); } if (incrStableMachineInClusterBlacklistBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { incrStableMachineInClusterBlacklist_ = java.util.Collections.unmodifiableList(incrStableMachineInClusterBlacklist_); bitField0_ = (bitField0_ & ~0x00000010); } result.incrStableMachineInClusterBlacklist_ = incrStableMachineInClusterBlacklist_; } else { result.incrStableMachineInClusterBlacklist_ = incrStableMachineInClusterBlacklistBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo other) { if (other == apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.getDefaultInstance()) return this; if (assignListBuilder_ == null) { if (!other.assignList_.isEmpty()) { if (assignList_.isEmpty()) { assignList_ = other.assignList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAssignListIsMutable(); assignList_.addAll(other.assignList_); } onChanged(); } } else { if (!other.assignList_.isEmpty()) { if (assignListBuilder_.isEmpty()) { assignListBuilder_.dispose(); assignListBuilder_ = null; assignList_ = other.assignList_; bitField0_ = (bitField0_ & ~0x00000001); assignListBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAssignListFieldBuilder() : null; } else { assignListBuilder_.addAllMessages(other.assignList_); } } } if (timeoutMachineListBuilder_ == null) { if (!other.timeoutMachineList_.isEmpty()) { if (timeoutMachineList_.isEmpty()) { timeoutMachineList_ = other.timeoutMachineList_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTimeoutMachineListIsMutable(); timeoutMachineList_.addAll(other.timeoutMachineList_); } onChanged(); } } else { if (!other.timeoutMachineList_.isEmpty()) { if (timeoutMachineListBuilder_.isEmpty()) { timeoutMachineListBuilder_.dispose(); timeoutMachineListBuilder_ = null; timeoutMachineList_ = other.timeoutMachineList_; bitField0_ = (bitField0_ & ~0x00000002); timeoutMachineListBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTimeoutMachineListFieldBuilder() : null; } else { timeoutMachineListBuilder_.addAllMessages(other.timeoutMachineList_); } } } if (aliveMachineListBuilder_ == null) { if (!other.aliveMachineList_.isEmpty()) { if (aliveMachineList_.isEmpty()) { aliveMachineList_ = other.aliveMachineList_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAliveMachineListIsMutable(); aliveMachineList_.addAll(other.aliveMachineList_); } onChanged(); } } else { if (!other.aliveMachineList_.isEmpty()) { if (aliveMachineListBuilder_.isEmpty()) { aliveMachineListBuilder_.dispose(); aliveMachineListBuilder_ = null; aliveMachineList_ = other.aliveMachineList_; bitField0_ = (bitField0_ & ~0x00000004); aliveMachineListBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAliveMachineListFieldBuilder() : null; } else { aliveMachineListBuilder_.addAllMessages(other.aliveMachineList_); } } } if (decrStableMachineInClusterBlacklistBuilder_ == null) { if (!other.decrStableMachineInClusterBlacklist_.isEmpty()) { if (decrStableMachineInClusterBlacklist_.isEmpty()) { decrStableMachineInClusterBlacklist_ = other.decrStableMachineInClusterBlacklist_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDecrStableMachineInClusterBlacklistIsMutable(); decrStableMachineInClusterBlacklist_.addAll(other.decrStableMachineInClusterBlacklist_); } onChanged(); } } else { if (!other.decrStableMachineInClusterBlacklist_.isEmpty()) { if (decrStableMachineInClusterBlacklistBuilder_.isEmpty()) { decrStableMachineInClusterBlacklistBuilder_.dispose(); decrStableMachineInClusterBlacklistBuilder_ = null; decrStableMachineInClusterBlacklist_ = other.decrStableMachineInClusterBlacklist_; bitField0_ = (bitField0_ & ~0x00000008); decrStableMachineInClusterBlacklistBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDecrStableMachineInClusterBlacklistFieldBuilder() : null; } else { decrStableMachineInClusterBlacklistBuilder_.addAllMessages(other.decrStableMachineInClusterBlacklist_); } } } if (incrStableMachineInClusterBlacklistBuilder_ == null) { if (!other.incrStableMachineInClusterBlacklist_.isEmpty()) { if (incrStableMachineInClusterBlacklist_.isEmpty()) { incrStableMachineInClusterBlacklist_ = other.incrStableMachineInClusterBlacklist_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureIncrStableMachineInClusterBlacklistIsMutable(); incrStableMachineInClusterBlacklist_.addAll(other.incrStableMachineInClusterBlacklist_); } onChanged(); } } else { if (!other.incrStableMachineInClusterBlacklist_.isEmpty()) { if (incrStableMachineInClusterBlacklistBuilder_.isEmpty()) { incrStableMachineInClusterBlacklistBuilder_.dispose(); incrStableMachineInClusterBlacklistBuilder_ = null; incrStableMachineInClusterBlacklist_ = other.incrStableMachineInClusterBlacklist_; bitField0_ = (bitField0_ & ~0x00000010); incrStableMachineInClusterBlacklistBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getIncrStableMachineInClusterBlacklistFieldBuilder() : null; } else { incrStableMachineInClusterBlacklistBuilder_.addAllMessages(other.incrStableMachineInClusterBlacklist_); } } } 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 { apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; private java.util.List assignList_ = java.util.Collections.emptyList(); private void ensureAssignListIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { assignList_ = new java.util.ArrayList(assignList_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.AssignmentItem, apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.Builder, apsara.odps.cupid.protocol.ProxyAm.AssignmentItemOrBuilder> assignListBuilder_; /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public java.util.List getAssignListList() { if (assignListBuilder_ == null) { return java.util.Collections.unmodifiableList(assignList_); } else { return assignListBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public int getAssignListCount() { if (assignListBuilder_ == null) { return assignList_.size(); } else { return assignListBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.AssignmentItem getAssignList(int index) { if (assignListBuilder_ == null) { return assignList_.get(index); } else { return assignListBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public Builder setAssignList( int index, apsara.odps.cupid.protocol.ProxyAm.AssignmentItem value) { if (assignListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssignListIsMutable(); assignList_.set(index, value); onChanged(); } else { assignListBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public Builder setAssignList( int index, apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.Builder builderForValue) { if (assignListBuilder_ == null) { ensureAssignListIsMutable(); assignList_.set(index, builderForValue.build()); onChanged(); } else { assignListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public Builder addAssignList(apsara.odps.cupid.protocol.ProxyAm.AssignmentItem value) { if (assignListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssignListIsMutable(); assignList_.add(value); onChanged(); } else { assignListBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public Builder addAssignList( int index, apsara.odps.cupid.protocol.ProxyAm.AssignmentItem value) { if (assignListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssignListIsMutable(); assignList_.add(index, value); onChanged(); } else { assignListBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public Builder addAssignList( apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.Builder builderForValue) { if (assignListBuilder_ == null) { ensureAssignListIsMutable(); assignList_.add(builderForValue.build()); onChanged(); } else { assignListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public Builder addAssignList( int index, apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.Builder builderForValue) { if (assignListBuilder_ == null) { ensureAssignListIsMutable(); assignList_.add(index, builderForValue.build()); onChanged(); } else { assignListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public Builder addAllAssignList( java.lang.Iterable values) { if (assignListBuilder_ == null) { ensureAssignListIsMutable(); super.addAll(values, assignList_); onChanged(); } else { assignListBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public Builder clearAssignList() { if (assignListBuilder_ == null) { assignList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { assignListBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public Builder removeAssignList(int index) { if (assignListBuilder_ == null) { ensureAssignListIsMutable(); assignList_.remove(index); onChanged(); } else { assignListBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.Builder getAssignListBuilder( int index) { return getAssignListFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.AssignmentItemOrBuilder getAssignListOrBuilder( int index) { if (assignListBuilder_ == null) { return assignList_.get(index); } else { return assignListBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public java.util.List getAssignListOrBuilderList() { if (assignListBuilder_ != null) { return assignListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(assignList_); } } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.Builder addAssignListBuilder() { return getAssignListFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.Builder addAssignListBuilder( int index) { return getAssignListFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.AssignmentItem assignList = 1; */ public java.util.List getAssignListBuilderList() { return getAssignListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.AssignmentItem, apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.Builder, apsara.odps.cupid.protocol.ProxyAm.AssignmentItemOrBuilder> getAssignListFieldBuilder() { if (assignListBuilder_ == null) { assignListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.AssignmentItem, apsara.odps.cupid.protocol.ProxyAm.AssignmentItem.Builder, apsara.odps.cupid.protocol.ProxyAm.AssignmentItemOrBuilder>( assignList_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); assignList_ = null; } return assignListBuilder_; } // repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; private java.util.List timeoutMachineList_ = java.util.Collections.emptyList(); private void ensureTimeoutMachineListIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { timeoutMachineList_ = new java.util.ArrayList(timeoutMachineList_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder> timeoutMachineListBuilder_; /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public java.util.List getTimeoutMachineListList() { if (timeoutMachineListBuilder_ == null) { return java.util.Collections.unmodifiableList(timeoutMachineList_); } else { return timeoutMachineListBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public int getTimeoutMachineListCount() { if (timeoutMachineListBuilder_ == null) { return timeoutMachineList_.size(); } else { return timeoutMachineListBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem getTimeoutMachineList(int index) { if (timeoutMachineListBuilder_ == null) { return timeoutMachineList_.get(index); } else { return timeoutMachineListBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public Builder setTimeoutMachineList( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem value) { if (timeoutMachineListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTimeoutMachineListIsMutable(); timeoutMachineList_.set(index, value); onChanged(); } else { timeoutMachineListBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public Builder setTimeoutMachineList( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder builderForValue) { if (timeoutMachineListBuilder_ == null) { ensureTimeoutMachineListIsMutable(); timeoutMachineList_.set(index, builderForValue.build()); onChanged(); } else { timeoutMachineListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public Builder addTimeoutMachineList(apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem value) { if (timeoutMachineListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTimeoutMachineListIsMutable(); timeoutMachineList_.add(value); onChanged(); } else { timeoutMachineListBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public Builder addTimeoutMachineList( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem value) { if (timeoutMachineListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTimeoutMachineListIsMutable(); timeoutMachineList_.add(index, value); onChanged(); } else { timeoutMachineListBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public Builder addTimeoutMachineList( apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder builderForValue) { if (timeoutMachineListBuilder_ == null) { ensureTimeoutMachineListIsMutable(); timeoutMachineList_.add(builderForValue.build()); onChanged(); } else { timeoutMachineListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public Builder addTimeoutMachineList( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder builderForValue) { if (timeoutMachineListBuilder_ == null) { ensureTimeoutMachineListIsMutable(); timeoutMachineList_.add(index, builderForValue.build()); onChanged(); } else { timeoutMachineListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public Builder addAllTimeoutMachineList( java.lang.Iterable values) { if (timeoutMachineListBuilder_ == null) { ensureTimeoutMachineListIsMutable(); super.addAll(values, timeoutMachineList_); onChanged(); } else { timeoutMachineListBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public Builder clearTimeoutMachineList() { if (timeoutMachineListBuilder_ == null) { timeoutMachineList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { timeoutMachineListBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public Builder removeTimeoutMachineList(int index) { if (timeoutMachineListBuilder_ == null) { ensureTimeoutMachineListIsMutable(); timeoutMachineList_.remove(index); onChanged(); } else { timeoutMachineListBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder getTimeoutMachineListBuilder( int index) { return getTimeoutMachineListFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder getTimeoutMachineListOrBuilder( int index) { if (timeoutMachineListBuilder_ == null) { return timeoutMachineList_.get(index); } else { return timeoutMachineListBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public java.util.List getTimeoutMachineListOrBuilderList() { if (timeoutMachineListBuilder_ != null) { return timeoutMachineListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(timeoutMachineList_); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder addTimeoutMachineListBuilder() { return getTimeoutMachineListFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder addTimeoutMachineListBuilder( int index) { return getTimeoutMachineListFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem timeoutMachineList = 2; */ public java.util.List getTimeoutMachineListBuilderList() { return getTimeoutMachineListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder> getTimeoutMachineListFieldBuilder() { if (timeoutMachineListBuilder_ == null) { timeoutMachineListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>( timeoutMachineList_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); timeoutMachineList_ = null; } return timeoutMachineListBuilder_; } // repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; private java.util.List aliveMachineList_ = java.util.Collections.emptyList(); private void ensureAliveMachineListIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { aliveMachineList_ = new java.util.ArrayList(aliveMachineList_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder> aliveMachineListBuilder_; /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public java.util.List getAliveMachineListList() { if (aliveMachineListBuilder_ == null) { return java.util.Collections.unmodifiableList(aliveMachineList_); } else { return aliveMachineListBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public int getAliveMachineListCount() { if (aliveMachineListBuilder_ == null) { return aliveMachineList_.size(); } else { return aliveMachineListBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem getAliveMachineList(int index) { if (aliveMachineListBuilder_ == null) { return aliveMachineList_.get(index); } else { return aliveMachineListBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public Builder setAliveMachineList( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem value) { if (aliveMachineListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAliveMachineListIsMutable(); aliveMachineList_.set(index, value); onChanged(); } else { aliveMachineListBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public Builder setAliveMachineList( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder builderForValue) { if (aliveMachineListBuilder_ == null) { ensureAliveMachineListIsMutable(); aliveMachineList_.set(index, builderForValue.build()); onChanged(); } else { aliveMachineListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public Builder addAliveMachineList(apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem value) { if (aliveMachineListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAliveMachineListIsMutable(); aliveMachineList_.add(value); onChanged(); } else { aliveMachineListBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public Builder addAliveMachineList( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem value) { if (aliveMachineListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAliveMachineListIsMutable(); aliveMachineList_.add(index, value); onChanged(); } else { aliveMachineListBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public Builder addAliveMachineList( apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder builderForValue) { if (aliveMachineListBuilder_ == null) { ensureAliveMachineListIsMutable(); aliveMachineList_.add(builderForValue.build()); onChanged(); } else { aliveMachineListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public Builder addAliveMachineList( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder builderForValue) { if (aliveMachineListBuilder_ == null) { ensureAliveMachineListIsMutable(); aliveMachineList_.add(index, builderForValue.build()); onChanged(); } else { aliveMachineListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public Builder addAllAliveMachineList( java.lang.Iterable values) { if (aliveMachineListBuilder_ == null) { ensureAliveMachineListIsMutable(); super.addAll(values, aliveMachineList_); onChanged(); } else { aliveMachineListBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public Builder clearAliveMachineList() { if (aliveMachineListBuilder_ == null) { aliveMachineList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { aliveMachineListBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public Builder removeAliveMachineList(int index) { if (aliveMachineListBuilder_ == null) { ensureAliveMachineListIsMutable(); aliveMachineList_.remove(index); onChanged(); } else { aliveMachineListBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder getAliveMachineListBuilder( int index) { return getAliveMachineListFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder getAliveMachineListOrBuilder( int index) { if (aliveMachineListBuilder_ == null) { return aliveMachineList_.get(index); } else { return aliveMachineListBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public java.util.List getAliveMachineListOrBuilderList() { if (aliveMachineListBuilder_ != null) { return aliveMachineListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(aliveMachineList_); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder addAliveMachineListBuilder() { return getAliveMachineListFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder addAliveMachineListBuilder( int index) { return getAliveMachineListFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem aliveMachineList = 3; */ public java.util.List getAliveMachineListBuilderList() { return getAliveMachineListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder> getAliveMachineListFieldBuilder() { if (aliveMachineListBuilder_ == null) { aliveMachineListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>( aliveMachineList_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); aliveMachineList_ = null; } return aliveMachineListBuilder_; } // repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; private java.util.List decrStableMachineInClusterBlacklist_ = java.util.Collections.emptyList(); private void ensureDecrStableMachineInClusterBlacklistIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { decrStableMachineInClusterBlacklist_ = new java.util.ArrayList(decrStableMachineInClusterBlacklist_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder> decrStableMachineInClusterBlacklistBuilder_; /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public java.util.List getDecrStableMachineInClusterBlacklistList() { if (decrStableMachineInClusterBlacklistBuilder_ == null) { return java.util.Collections.unmodifiableList(decrStableMachineInClusterBlacklist_); } else { return decrStableMachineInClusterBlacklistBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public int getDecrStableMachineInClusterBlacklistCount() { if (decrStableMachineInClusterBlacklistBuilder_ == null) { return decrStableMachineInClusterBlacklist_.size(); } else { return decrStableMachineInClusterBlacklistBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem getDecrStableMachineInClusterBlacklist(int index) { if (decrStableMachineInClusterBlacklistBuilder_ == null) { return decrStableMachineInClusterBlacklist_.get(index); } else { return decrStableMachineInClusterBlacklistBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public Builder setDecrStableMachineInClusterBlacklist( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem value) { if (decrStableMachineInClusterBlacklistBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDecrStableMachineInClusterBlacklistIsMutable(); decrStableMachineInClusterBlacklist_.set(index, value); onChanged(); } else { decrStableMachineInClusterBlacklistBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public Builder setDecrStableMachineInClusterBlacklist( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder builderForValue) { if (decrStableMachineInClusterBlacklistBuilder_ == null) { ensureDecrStableMachineInClusterBlacklistIsMutable(); decrStableMachineInClusterBlacklist_.set(index, builderForValue.build()); onChanged(); } else { decrStableMachineInClusterBlacklistBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public Builder addDecrStableMachineInClusterBlacklist(apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem value) { if (decrStableMachineInClusterBlacklistBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDecrStableMachineInClusterBlacklistIsMutable(); decrStableMachineInClusterBlacklist_.add(value); onChanged(); } else { decrStableMachineInClusterBlacklistBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public Builder addDecrStableMachineInClusterBlacklist( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem value) { if (decrStableMachineInClusterBlacklistBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDecrStableMachineInClusterBlacklistIsMutable(); decrStableMachineInClusterBlacklist_.add(index, value); onChanged(); } else { decrStableMachineInClusterBlacklistBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public Builder addDecrStableMachineInClusterBlacklist( apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder builderForValue) { if (decrStableMachineInClusterBlacklistBuilder_ == null) { ensureDecrStableMachineInClusterBlacklistIsMutable(); decrStableMachineInClusterBlacklist_.add(builderForValue.build()); onChanged(); } else { decrStableMachineInClusterBlacklistBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public Builder addDecrStableMachineInClusterBlacklist( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder builderForValue) { if (decrStableMachineInClusterBlacklistBuilder_ == null) { ensureDecrStableMachineInClusterBlacklistIsMutable(); decrStableMachineInClusterBlacklist_.add(index, builderForValue.build()); onChanged(); } else { decrStableMachineInClusterBlacklistBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public Builder addAllDecrStableMachineInClusterBlacklist( java.lang.Iterable values) { if (decrStableMachineInClusterBlacklistBuilder_ == null) { ensureDecrStableMachineInClusterBlacklistIsMutable(); super.addAll(values, decrStableMachineInClusterBlacklist_); onChanged(); } else { decrStableMachineInClusterBlacklistBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public Builder clearDecrStableMachineInClusterBlacklist() { if (decrStableMachineInClusterBlacklistBuilder_ == null) { decrStableMachineInClusterBlacklist_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { decrStableMachineInClusterBlacklistBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public Builder removeDecrStableMachineInClusterBlacklist(int index) { if (decrStableMachineInClusterBlacklistBuilder_ == null) { ensureDecrStableMachineInClusterBlacklistIsMutable(); decrStableMachineInClusterBlacklist_.remove(index); onChanged(); } else { decrStableMachineInClusterBlacklistBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder getDecrStableMachineInClusterBlacklistBuilder( int index) { return getDecrStableMachineInClusterBlacklistFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder getDecrStableMachineInClusterBlacklistOrBuilder( int index) { if (decrStableMachineInClusterBlacklistBuilder_ == null) { return decrStableMachineInClusterBlacklist_.get(index); } else { return decrStableMachineInClusterBlacklistBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public java.util.List getDecrStableMachineInClusterBlacklistOrBuilderList() { if (decrStableMachineInClusterBlacklistBuilder_ != null) { return decrStableMachineInClusterBlacklistBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(decrStableMachineInClusterBlacklist_); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder addDecrStableMachineInClusterBlacklistBuilder() { return getDecrStableMachineInClusterBlacklistFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder addDecrStableMachineInClusterBlacklistBuilder( int index) { return getDecrStableMachineInClusterBlacklistFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem decrStableMachineInClusterBlacklist = 4; */ public java.util.List getDecrStableMachineInClusterBlacklistBuilderList() { return getDecrStableMachineInClusterBlacklistFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder> getDecrStableMachineInClusterBlacklistFieldBuilder() { if (decrStableMachineInClusterBlacklistBuilder_ == null) { decrStableMachineInClusterBlacklistBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>( decrStableMachineInClusterBlacklist_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); decrStableMachineInClusterBlacklist_ = null; } return decrStableMachineInClusterBlacklistBuilder_; } // repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; private java.util.List incrStableMachineInClusterBlacklist_ = java.util.Collections.emptyList(); private void ensureIncrStableMachineInClusterBlacklistIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { incrStableMachineInClusterBlacklist_ = new java.util.ArrayList(incrStableMachineInClusterBlacklist_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder> incrStableMachineInClusterBlacklistBuilder_; /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public java.util.List getIncrStableMachineInClusterBlacklistList() { if (incrStableMachineInClusterBlacklistBuilder_ == null) { return java.util.Collections.unmodifiableList(incrStableMachineInClusterBlacklist_); } else { return incrStableMachineInClusterBlacklistBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public int getIncrStableMachineInClusterBlacklistCount() { if (incrStableMachineInClusterBlacklistBuilder_ == null) { return incrStableMachineInClusterBlacklist_.size(); } else { return incrStableMachineInClusterBlacklistBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem getIncrStableMachineInClusterBlacklist(int index) { if (incrStableMachineInClusterBlacklistBuilder_ == null) { return incrStableMachineInClusterBlacklist_.get(index); } else { return incrStableMachineInClusterBlacklistBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public Builder setIncrStableMachineInClusterBlacklist( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem value) { if (incrStableMachineInClusterBlacklistBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIncrStableMachineInClusterBlacklistIsMutable(); incrStableMachineInClusterBlacklist_.set(index, value); onChanged(); } else { incrStableMachineInClusterBlacklistBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public Builder setIncrStableMachineInClusterBlacklist( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder builderForValue) { if (incrStableMachineInClusterBlacklistBuilder_ == null) { ensureIncrStableMachineInClusterBlacklistIsMutable(); incrStableMachineInClusterBlacklist_.set(index, builderForValue.build()); onChanged(); } else { incrStableMachineInClusterBlacklistBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public Builder addIncrStableMachineInClusterBlacklist(apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem value) { if (incrStableMachineInClusterBlacklistBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIncrStableMachineInClusterBlacklistIsMutable(); incrStableMachineInClusterBlacklist_.add(value); onChanged(); } else { incrStableMachineInClusterBlacklistBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public Builder addIncrStableMachineInClusterBlacklist( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem value) { if (incrStableMachineInClusterBlacklistBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureIncrStableMachineInClusterBlacklistIsMutable(); incrStableMachineInClusterBlacklist_.add(index, value); onChanged(); } else { incrStableMachineInClusterBlacklistBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public Builder addIncrStableMachineInClusterBlacklist( apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder builderForValue) { if (incrStableMachineInClusterBlacklistBuilder_ == null) { ensureIncrStableMachineInClusterBlacklistIsMutable(); incrStableMachineInClusterBlacklist_.add(builderForValue.build()); onChanged(); } else { incrStableMachineInClusterBlacklistBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public Builder addIncrStableMachineInClusterBlacklist( int index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder builderForValue) { if (incrStableMachineInClusterBlacklistBuilder_ == null) { ensureIncrStableMachineInClusterBlacklistIsMutable(); incrStableMachineInClusterBlacklist_.add(index, builderForValue.build()); onChanged(); } else { incrStableMachineInClusterBlacklistBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public Builder addAllIncrStableMachineInClusterBlacklist( java.lang.Iterable values) { if (incrStableMachineInClusterBlacklistBuilder_ == null) { ensureIncrStableMachineInClusterBlacklistIsMutable(); super.addAll(values, incrStableMachineInClusterBlacklist_); onChanged(); } else { incrStableMachineInClusterBlacklistBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public Builder clearIncrStableMachineInClusterBlacklist() { if (incrStableMachineInClusterBlacklistBuilder_ == null) { incrStableMachineInClusterBlacklist_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { incrStableMachineInClusterBlacklistBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public Builder removeIncrStableMachineInClusterBlacklist(int index) { if (incrStableMachineInClusterBlacklistBuilder_ == null) { ensureIncrStableMachineInClusterBlacklistIsMutable(); incrStableMachineInClusterBlacklist_.remove(index); onChanged(); } else { incrStableMachineInClusterBlacklistBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder getIncrStableMachineInClusterBlacklistBuilder( int index) { return getIncrStableMachineInClusterBlacklistFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder getIncrStableMachineInClusterBlacklistOrBuilder( int index) { if (incrStableMachineInClusterBlacklistBuilder_ == null) { return incrStableMachineInClusterBlacklist_.get(index); } else { return incrStableMachineInClusterBlacklistBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public java.util.List getIncrStableMachineInClusterBlacklistOrBuilderList() { if (incrStableMachineInClusterBlacklistBuilder_ != null) { return incrStableMachineInClusterBlacklistBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(incrStableMachineInClusterBlacklist_); } } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder addIncrStableMachineInClusterBlacklistBuilder() { return getIncrStableMachineInClusterBlacklistFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder addIncrStableMachineInClusterBlacklistBuilder( int index) { return getIncrStableMachineInClusterBlacklistFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.RoleMachineItem incrStableMachineInClusterBlacklist = 5; */ public java.util.List getIncrStableMachineInClusterBlacklistBuilderList() { return getIncrStableMachineInClusterBlacklistFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder> getIncrStableMachineInClusterBlacklistFieldBuilder() { if (incrStableMachineInClusterBlacklistBuilder_ == null) { incrStableMachineInClusterBlacklistBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem.Builder, apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>( incrStableMachineInClusterBlacklist_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); incrStableMachineInClusterBlacklist_ = null; } return incrStableMachineInClusterBlacklistBuilder_; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo) } static { defaultInstance = new AssignedResourceChangeEventInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo) } public interface SendWorkerListResponseEventInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated string startWorkerList = 1; /** * repeated string startWorkerList = 1; */ java.util.List getStartWorkerListList(); /** * repeated string startWorkerList = 1; */ int getStartWorkerListCount(); /** * repeated string startWorkerList = 1; */ java.lang.String getStartWorkerList(int index); /** * repeated string startWorkerList = 1; */ com.google.protobuf.ByteString getStartWorkerListBytes(int index); // repeated string stopWorkerList = 2; /** * repeated string stopWorkerList = 2; */ java.util.List getStopWorkerListList(); /** * repeated string stopWorkerList = 2; */ int getStopWorkerListCount(); /** * repeated string stopWorkerList = 2; */ java.lang.String getStopWorkerList(int index); /** * repeated string stopWorkerList = 2; */ com.google.protobuf.ByteString getStopWorkerListBytes(int index); } /** * Protobuf type {@code apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo} */ public static final class SendWorkerListResponseEventInfo extends com.google.protobuf.GeneratedMessage implements SendWorkerListResponseEventInfoOrBuilder { // Use SendWorkerListResponseEventInfo.newBuilder() to construct. private SendWorkerListResponseEventInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SendWorkerListResponseEventInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SendWorkerListResponseEventInfo defaultInstance; public static SendWorkerListResponseEventInfo getDefaultInstance() { return defaultInstance; } public SendWorkerListResponseEventInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SendWorkerListResponseEventInfo( 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)) { startWorkerList_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } startWorkerList_.add(input.readBytes()); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { stopWorkerList_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } stopWorkerList_.add(input.readBytes()); 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)) { startWorkerList_ = new com.google.protobuf.UnmodifiableLazyStringList(startWorkerList_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { stopWorkerList_ = new com.google.protobuf.UnmodifiableLazyStringList(stopWorkerList_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_SendWorkerListResponseEventInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_SendWorkerListResponseEventInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.class, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SendWorkerListResponseEventInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SendWorkerListResponseEventInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated string startWorkerList = 1; public static final int STARTWORKERLIST_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList startWorkerList_; /** * repeated string startWorkerList = 1; */ public java.util.List getStartWorkerListList() { return startWorkerList_; } /** * repeated string startWorkerList = 1; */ public int getStartWorkerListCount() { return startWorkerList_.size(); } /** * repeated string startWorkerList = 1; */ public java.lang.String getStartWorkerList(int index) { return startWorkerList_.get(index); } /** * repeated string startWorkerList = 1; */ public com.google.protobuf.ByteString getStartWorkerListBytes(int index) { return startWorkerList_.getByteString(index); } // repeated string stopWorkerList = 2; public static final int STOPWORKERLIST_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList stopWorkerList_; /** * repeated string stopWorkerList = 2; */ public java.util.List getStopWorkerListList() { return stopWorkerList_; } /** * repeated string stopWorkerList = 2; */ public int getStopWorkerListCount() { return stopWorkerList_.size(); } /** * repeated string stopWorkerList = 2; */ public java.lang.String getStopWorkerList(int index) { return stopWorkerList_.get(index); } /** * repeated string stopWorkerList = 2; */ public com.google.protobuf.ByteString getStopWorkerListBytes(int index) { return stopWorkerList_.getByteString(index); } private void initFields() { startWorkerList_ = com.google.protobuf.LazyStringArrayList.EMPTY; stopWorkerList_ = com.google.protobuf.LazyStringArrayList.EMPTY; } 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 < startWorkerList_.size(); i++) { output.writeBytes(1, startWorkerList_.getByteString(i)); } for (int i = 0; i < stopWorkerList_.size(); i++) { output.writeBytes(2, stopWorkerList_.getByteString(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < startWorkerList_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(startWorkerList_.getByteString(i)); } size += dataSize; size += 1 * getStartWorkerListList().size(); } { int dataSize = 0; for (int i = 0; i < stopWorkerList_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(stopWorkerList_.getByteString(i)); } size += dataSize; size += 1 * getStopWorkerListList().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 apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo 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(apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo 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 apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_SendWorkerListResponseEventInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_SendWorkerListResponseEventInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.class, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.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(); startWorkerList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); stopWorkerList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_SendWorkerListResponseEventInfo_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo build() { apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo buildPartial() { apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo result = new apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { startWorkerList_ = new com.google.protobuf.UnmodifiableLazyStringList( startWorkerList_); bitField0_ = (bitField0_ & ~0x00000001); } result.startWorkerList_ = startWorkerList_; if (((bitField0_ & 0x00000002) == 0x00000002)) { stopWorkerList_ = new com.google.protobuf.UnmodifiableLazyStringList( stopWorkerList_); bitField0_ = (bitField0_ & ~0x00000002); } result.stopWorkerList_ = stopWorkerList_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo other) { if (other == apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.getDefaultInstance()) return this; if (!other.startWorkerList_.isEmpty()) { if (startWorkerList_.isEmpty()) { startWorkerList_ = other.startWorkerList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureStartWorkerListIsMutable(); startWorkerList_.addAll(other.startWorkerList_); } onChanged(); } if (!other.stopWorkerList_.isEmpty()) { if (stopWorkerList_.isEmpty()) { stopWorkerList_ = other.stopWorkerList_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStopWorkerListIsMutable(); stopWorkerList_.addAll(other.stopWorkerList_); } 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 { apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated string startWorkerList = 1; private com.google.protobuf.LazyStringList startWorkerList_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStartWorkerListIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { startWorkerList_ = new com.google.protobuf.LazyStringArrayList(startWorkerList_); bitField0_ |= 0x00000001; } } /** * repeated string startWorkerList = 1; */ public java.util.List getStartWorkerListList() { return java.util.Collections.unmodifiableList(startWorkerList_); } /** * repeated string startWorkerList = 1; */ public int getStartWorkerListCount() { return startWorkerList_.size(); } /** * repeated string startWorkerList = 1; */ public java.lang.String getStartWorkerList(int index) { return startWorkerList_.get(index); } /** * repeated string startWorkerList = 1; */ public com.google.protobuf.ByteString getStartWorkerListBytes(int index) { return startWorkerList_.getByteString(index); } /** * repeated string startWorkerList = 1; */ public Builder setStartWorkerList( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStartWorkerListIsMutable(); startWorkerList_.set(index, value); onChanged(); return this; } /** * repeated string startWorkerList = 1; */ public Builder addStartWorkerList( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStartWorkerListIsMutable(); startWorkerList_.add(value); onChanged(); return this; } /** * repeated string startWorkerList = 1; */ public Builder addAllStartWorkerList( java.lang.Iterable values) { ensureStartWorkerListIsMutable(); super.addAll(values, startWorkerList_); onChanged(); return this; } /** * repeated string startWorkerList = 1; */ public Builder clearStartWorkerList() { startWorkerList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string startWorkerList = 1; */ public Builder addStartWorkerListBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureStartWorkerListIsMutable(); startWorkerList_.add(value); onChanged(); return this; } // repeated string stopWorkerList = 2; private com.google.protobuf.LazyStringList stopWorkerList_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStopWorkerListIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { stopWorkerList_ = new com.google.protobuf.LazyStringArrayList(stopWorkerList_); bitField0_ |= 0x00000002; } } /** * repeated string stopWorkerList = 2; */ public java.util.List getStopWorkerListList() { return java.util.Collections.unmodifiableList(stopWorkerList_); } /** * repeated string stopWorkerList = 2; */ public int getStopWorkerListCount() { return stopWorkerList_.size(); } /** * repeated string stopWorkerList = 2; */ public java.lang.String getStopWorkerList(int index) { return stopWorkerList_.get(index); } /** * repeated string stopWorkerList = 2; */ public com.google.protobuf.ByteString getStopWorkerListBytes(int index) { return stopWorkerList_.getByteString(index); } /** * repeated string stopWorkerList = 2; */ public Builder setStopWorkerList( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStopWorkerListIsMutable(); stopWorkerList_.set(index, value); onChanged(); return this; } /** * repeated string stopWorkerList = 2; */ public Builder addStopWorkerList( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStopWorkerListIsMutable(); stopWorkerList_.add(value); onChanged(); return this; } /** * repeated string stopWorkerList = 2; */ public Builder addAllStopWorkerList( java.lang.Iterable values) { ensureStopWorkerListIsMutable(); super.addAll(values, stopWorkerList_); onChanged(); return this; } /** * repeated string stopWorkerList = 2; */ public Builder clearStopWorkerList() { stopWorkerList_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string stopWorkerList = 2; */ public Builder addStopWorkerListBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureStopWorkerListIsMutable(); stopWorkerList_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo) } static { defaultInstance = new SendWorkerListResponseEventInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo) } public interface WorkerFailureEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string workerName = 1; /** * optional string workerName = 1; */ boolean hasWorkerName(); /** * optional string workerName = 1; */ java.lang.String getWorkerName(); /** * optional string workerName = 1; */ com.google.protobuf.ByteString getWorkerNameBytes(); // optional int32 pid = 2; /** * optional int32 pid = 2; */ boolean hasPid(); /** * optional int32 pid = 2; */ int getPid(); // optional int32 errorCode = 3; /** * optional int32 errorCode = 3; */ boolean hasErrorCode(); /** * optional int32 errorCode = 3; */ int getErrorCode(); // optional string extraMsg = 4; /** * optional string extraMsg = 4; */ boolean hasExtraMsg(); /** * optional string extraMsg = 4; */ java.lang.String getExtraMsg(); /** * optional string extraMsg = 4; */ com.google.protobuf.ByteString getExtraMsgBytes(); } /** * Protobuf type {@code apsara.odps.cupid.protocol.WorkerFailureEntry} */ public static final class WorkerFailureEntry extends com.google.protobuf.GeneratedMessage implements WorkerFailureEntryOrBuilder { // Use WorkerFailureEntry.newBuilder() to construct. private WorkerFailureEntry(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private WorkerFailureEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final WorkerFailureEntry defaultInstance; public static WorkerFailureEntry getDefaultInstance() { return defaultInstance; } public WorkerFailureEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WorkerFailureEntry( 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: { bitField0_ |= 0x00000001; workerName_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; pid_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; errorCode_ = input.readInt32(); break; } case 34: { bitField0_ |= 0x00000008; extraMsg_ = input.readBytes(); 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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerFailureEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerFailureEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.class, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WorkerFailureEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WorkerFailureEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string workerName = 1; public static final int WORKERNAME_FIELD_NUMBER = 1; private java.lang.Object workerName_; /** * optional string workerName = 1; */ public boolean hasWorkerName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string workerName = 1; */ public java.lang.String getWorkerName() { java.lang.Object ref = workerName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { workerName_ = s; } return s; } } /** * optional string workerName = 1; */ public com.google.protobuf.ByteString getWorkerNameBytes() { java.lang.Object ref = workerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); workerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 pid = 2; public static final int PID_FIELD_NUMBER = 2; private int pid_; /** * optional int32 pid = 2; */ public boolean hasPid() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 pid = 2; */ public int getPid() { return pid_; } // optional int32 errorCode = 3; public static final int ERRORCODE_FIELD_NUMBER = 3; private int errorCode_; /** * optional int32 errorCode = 3; */ public boolean hasErrorCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 errorCode = 3; */ public int getErrorCode() { return errorCode_; } // optional string extraMsg = 4; public static final int EXTRAMSG_FIELD_NUMBER = 4; private java.lang.Object extraMsg_; /** * optional string extraMsg = 4; */ public boolean hasExtraMsg() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string extraMsg = 4; */ public java.lang.String getExtraMsg() { java.lang.Object ref = extraMsg_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { extraMsg_ = s; } return s; } } /** * optional string extraMsg = 4; */ public com.google.protobuf.ByteString getExtraMsgBytes() { java.lang.Object ref = extraMsg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extraMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { workerName_ = ""; pid_ = 0; errorCode_ = 0; extraMsg_ = ""; } 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(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getWorkerNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, pid_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, errorCode_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getExtraMsgBytes()); } 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 .computeBytesSize(1, getWorkerNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, pid_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, errorCode_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getExtraMsgBytes()); } 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 apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry 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(apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry 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 apsara.odps.cupid.protocol.WorkerFailureEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerFailureEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerFailureEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.class, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.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(); workerName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); pid_ = 0; bitField0_ = (bitField0_ & ~0x00000002); errorCode_ = 0; bitField0_ = (bitField0_ & ~0x00000004); extraMsg_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerFailureEntry_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry build() { apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry buildPartial() { apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry result = new apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.workerName_ = workerName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.pid_ = pid_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.errorCode_ = errorCode_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.extraMsg_ = extraMsg_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry other) { if (other == apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.getDefaultInstance()) return this; if (other.hasWorkerName()) { bitField0_ |= 0x00000001; workerName_ = other.workerName_; onChanged(); } if (other.hasPid()) { setPid(other.getPid()); } if (other.hasErrorCode()) { setErrorCode(other.getErrorCode()); } if (other.hasExtraMsg()) { bitField0_ |= 0x00000008; extraMsg_ = other.extraMsg_; 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 { apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string workerName = 1; private java.lang.Object workerName_ = ""; /** * optional string workerName = 1; */ public boolean hasWorkerName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string workerName = 1; */ public java.lang.String getWorkerName() { java.lang.Object ref = workerName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); workerName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string workerName = 1; */ public com.google.protobuf.ByteString getWorkerNameBytes() { java.lang.Object ref = workerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); workerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string workerName = 1; */ public Builder setWorkerName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; workerName_ = value; onChanged(); return this; } /** * optional string workerName = 1; */ public Builder clearWorkerName() { bitField0_ = (bitField0_ & ~0x00000001); workerName_ = getDefaultInstance().getWorkerName(); onChanged(); return this; } /** * optional string workerName = 1; */ public Builder setWorkerNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; workerName_ = value; onChanged(); return this; } // optional int32 pid = 2; private int pid_ ; /** * optional int32 pid = 2; */ public boolean hasPid() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional int32 pid = 2; */ public int getPid() { return pid_; } /** * optional int32 pid = 2; */ public Builder setPid(int value) { bitField0_ |= 0x00000002; pid_ = value; onChanged(); return this; } /** * optional int32 pid = 2; */ public Builder clearPid() { bitField0_ = (bitField0_ & ~0x00000002); pid_ = 0; onChanged(); return this; } // optional int32 errorCode = 3; private int errorCode_ ; /** * optional int32 errorCode = 3; */ public boolean hasErrorCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 errorCode = 3; */ public int getErrorCode() { return errorCode_; } /** * optional int32 errorCode = 3; */ public Builder setErrorCode(int value) { bitField0_ |= 0x00000004; errorCode_ = value; onChanged(); return this; } /** * optional int32 errorCode = 3; */ public Builder clearErrorCode() { bitField0_ = (bitField0_ & ~0x00000004); errorCode_ = 0; onChanged(); return this; } // optional string extraMsg = 4; private java.lang.Object extraMsg_ = ""; /** * optional string extraMsg = 4; */ public boolean hasExtraMsg() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string extraMsg = 4; */ public java.lang.String getExtraMsg() { java.lang.Object ref = extraMsg_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extraMsg_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string extraMsg = 4; */ public com.google.protobuf.ByteString getExtraMsgBytes() { java.lang.Object ref = extraMsg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extraMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string extraMsg = 4; */ public Builder setExtraMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; extraMsg_ = value; onChanged(); return this; } /** * optional string extraMsg = 4; */ public Builder clearExtraMsg() { bitField0_ = (bitField0_ & ~0x00000008); extraMsg_ = getDefaultInstance().getExtraMsg(); onChanged(); return this; } /** * optional string extraMsg = 4; */ public Builder setExtraMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; extraMsg_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.WorkerFailureEntry) } static { defaultInstance = new WorkerFailureEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.WorkerFailureEntry) } public interface OverUsedWorkItemOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 iKilledTime = 1; /** * optional int64 iKilledTime = 1; */ boolean hasIKilledTime(); /** * optional int64 iKilledTime = 1; */ long getIKilledTime(); // optional string killedTime = 2; /** * optional string killedTime = 2; */ boolean hasKilledTime(); /** * optional string killedTime = 2; */ java.lang.String getKilledTime(); /** * optional string killedTime = 2; */ com.google.protobuf.ByteString getKilledTimeBytes(); // repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ java.util.List getPlannedResourceList(); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem getPlannedResource(int index); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ int getPlannedResourceCount(); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ java.util.List getPlannedResourceOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder getPlannedResourceOrBuilder( int index); // repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ java.util.List getUsedResourceList(); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem getUsedResource(int index); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ int getUsedResourceCount(); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ java.util.List getUsedResourceOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder getUsedResourceOrBuilder( int index); } /** * Protobuf type {@code apsara.odps.cupid.protocol.OverUsedWorkItem} */ public static final class OverUsedWorkItem extends com.google.protobuf.GeneratedMessage implements OverUsedWorkItemOrBuilder { // Use OverUsedWorkItem.newBuilder() to construct. private OverUsedWorkItem(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private OverUsedWorkItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final OverUsedWorkItem defaultInstance; public static OverUsedWorkItem getDefaultInstance() { return defaultInstance; } public OverUsedWorkItem getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OverUsedWorkItem( 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; iKilledTime_ = input.readInt64(); break; } case 18: { bitField0_ |= 0x00000002; killedTime_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { plannedResource_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } plannedResource_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.PARSER, extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { usedResource_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } usedResource_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.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_ & 0x00000004) == 0x00000004)) { plannedResource_ = java.util.Collections.unmodifiableList(plannedResource_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { usedResource_ = java.util.Collections.unmodifiableList(usedResource_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_OverUsedWorkItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_OverUsedWorkItem_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.class, apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OverUsedWorkItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OverUsedWorkItem(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int64 iKilledTime = 1; public static final int IKILLEDTIME_FIELD_NUMBER = 1; private long iKilledTime_; /** * optional int64 iKilledTime = 1; */ public boolean hasIKilledTime() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 iKilledTime = 1; */ public long getIKilledTime() { return iKilledTime_; } // optional string killedTime = 2; public static final int KILLEDTIME_FIELD_NUMBER = 2; private java.lang.Object killedTime_; /** * optional string killedTime = 2; */ public boolean hasKilledTime() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string killedTime = 2; */ public java.lang.String getKilledTime() { java.lang.Object ref = killedTime_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { killedTime_ = s; } return s; } } /** * optional string killedTime = 2; */ public com.google.protobuf.ByteString getKilledTimeBytes() { java.lang.Object ref = killedTime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); killedTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; public static final int PLANNEDRESOURCE_FIELD_NUMBER = 3; private java.util.List plannedResource_; /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public java.util.List getPlannedResourceList() { return plannedResource_; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public java.util.List getPlannedResourceOrBuilderList() { return plannedResource_; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public int getPlannedResourceCount() { return plannedResource_.size(); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem getPlannedResource(int index) { return plannedResource_.get(index); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder getPlannedResourceOrBuilder( int index) { return plannedResource_.get(index); } // repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; public static final int USEDRESOURCE_FIELD_NUMBER = 4; private java.util.List usedResource_; /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public java.util.List getUsedResourceList() { return usedResource_; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public java.util.List getUsedResourceOrBuilderList() { return usedResource_; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public int getUsedResourceCount() { return usedResource_.size(); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem getUsedResource(int index) { return usedResource_.get(index); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder getUsedResourceOrBuilder( int index) { return usedResource_.get(index); } private void initFields() { iKilledTime_ = 0L; killedTime_ = ""; plannedResource_ = java.util.Collections.emptyList(); usedResource_ = 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(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, iKilledTime_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getKilledTimeBytes()); } for (int i = 0; i < plannedResource_.size(); i++) { output.writeMessage(3, plannedResource_.get(i)); } for (int i = 0; i < usedResource_.size(); i++) { output.writeMessage(4, usedResource_.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 .computeInt64Size(1, iKilledTime_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getKilledTimeBytes()); } for (int i = 0; i < plannedResource_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, plannedResource_.get(i)); } for (int i = 0; i < usedResource_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, usedResource_.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 apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem 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(apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem 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 apsara.odps.cupid.protocol.OverUsedWorkItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_OverUsedWorkItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_OverUsedWorkItem_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.class, apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPlannedResourceFieldBuilder(); getUsedResourceFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); iKilledTime_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); killedTime_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (plannedResourceBuilder_ == null) { plannedResource_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { plannedResourceBuilder_.clear(); } if (usedResourceBuilder_ == null) { usedResource_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { usedResourceBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_OverUsedWorkItem_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem build() { apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem buildPartial() { apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem result = new apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.iKilledTime_ = iKilledTime_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.killedTime_ = killedTime_; if (plannedResourceBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { plannedResource_ = java.util.Collections.unmodifiableList(plannedResource_); bitField0_ = (bitField0_ & ~0x00000004); } result.plannedResource_ = plannedResource_; } else { result.plannedResource_ = plannedResourceBuilder_.build(); } if (usedResourceBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { usedResource_ = java.util.Collections.unmodifiableList(usedResource_); bitField0_ = (bitField0_ & ~0x00000008); } result.usedResource_ = usedResource_; } else { result.usedResource_ = usedResourceBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem other) { if (other == apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.getDefaultInstance()) return this; if (other.hasIKilledTime()) { setIKilledTime(other.getIKilledTime()); } if (other.hasKilledTime()) { bitField0_ |= 0x00000002; killedTime_ = other.killedTime_; onChanged(); } if (plannedResourceBuilder_ == null) { if (!other.plannedResource_.isEmpty()) { if (plannedResource_.isEmpty()) { plannedResource_ = other.plannedResource_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePlannedResourceIsMutable(); plannedResource_.addAll(other.plannedResource_); } onChanged(); } } else { if (!other.plannedResource_.isEmpty()) { if (plannedResourceBuilder_.isEmpty()) { plannedResourceBuilder_.dispose(); plannedResourceBuilder_ = null; plannedResource_ = other.plannedResource_; bitField0_ = (bitField0_ & ~0x00000004); plannedResourceBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPlannedResourceFieldBuilder() : null; } else { plannedResourceBuilder_.addAllMessages(other.plannedResource_); } } } if (usedResourceBuilder_ == null) { if (!other.usedResource_.isEmpty()) { if (usedResource_.isEmpty()) { usedResource_ = other.usedResource_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureUsedResourceIsMutable(); usedResource_.addAll(other.usedResource_); } onChanged(); } } else { if (!other.usedResource_.isEmpty()) { if (usedResourceBuilder_.isEmpty()) { usedResourceBuilder_.dispose(); usedResourceBuilder_ = null; usedResource_ = other.usedResource_; bitField0_ = (bitField0_ & ~0x00000008); usedResourceBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getUsedResourceFieldBuilder() : null; } else { usedResourceBuilder_.addAllMessages(other.usedResource_); } } } 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 { apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 iKilledTime = 1; private long iKilledTime_ ; /** * optional int64 iKilledTime = 1; */ public boolean hasIKilledTime() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 iKilledTime = 1; */ public long getIKilledTime() { return iKilledTime_; } /** * optional int64 iKilledTime = 1; */ public Builder setIKilledTime(long value) { bitField0_ |= 0x00000001; iKilledTime_ = value; onChanged(); return this; } /** * optional int64 iKilledTime = 1; */ public Builder clearIKilledTime() { bitField0_ = (bitField0_ & ~0x00000001); iKilledTime_ = 0L; onChanged(); return this; } // optional string killedTime = 2; private java.lang.Object killedTime_ = ""; /** * optional string killedTime = 2; */ public boolean hasKilledTime() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string killedTime = 2; */ public java.lang.String getKilledTime() { java.lang.Object ref = killedTime_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); killedTime_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string killedTime = 2; */ public com.google.protobuf.ByteString getKilledTimeBytes() { java.lang.Object ref = killedTime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); killedTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string killedTime = 2; */ public Builder setKilledTime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; killedTime_ = value; onChanged(); return this; } /** * optional string killedTime = 2; */ public Builder clearKilledTime() { bitField0_ = (bitField0_ & ~0x00000002); killedTime_ = getDefaultInstance().getKilledTime(); onChanged(); return this; } /** * optional string killedTime = 2; */ public Builder setKilledTimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; killedTime_ = value; onChanged(); return this; } // repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; private java.util.List plannedResource_ = java.util.Collections.emptyList(); private void ensurePlannedResourceIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { plannedResource_ = new java.util.ArrayList(plannedResource_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder> plannedResourceBuilder_; /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public java.util.List getPlannedResourceList() { if (plannedResourceBuilder_ == null) { return java.util.Collections.unmodifiableList(plannedResource_); } else { return plannedResourceBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public int getPlannedResourceCount() { if (plannedResourceBuilder_ == null) { return plannedResource_.size(); } else { return plannedResourceBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem getPlannedResource(int index) { if (plannedResourceBuilder_ == null) { return plannedResource_.get(index); } else { return plannedResourceBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public Builder setPlannedResource( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem value) { if (plannedResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlannedResourceIsMutable(); plannedResource_.set(index, value); onChanged(); } else { plannedResourceBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public Builder setPlannedResource( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder builderForValue) { if (plannedResourceBuilder_ == null) { ensurePlannedResourceIsMutable(); plannedResource_.set(index, builderForValue.build()); onChanged(); } else { plannedResourceBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public Builder addPlannedResource(apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem value) { if (plannedResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlannedResourceIsMutable(); plannedResource_.add(value); onChanged(); } else { plannedResourceBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public Builder addPlannedResource( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem value) { if (plannedResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlannedResourceIsMutable(); plannedResource_.add(index, value); onChanged(); } else { plannedResourceBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public Builder addPlannedResource( apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder builderForValue) { if (plannedResourceBuilder_ == null) { ensurePlannedResourceIsMutable(); plannedResource_.add(builderForValue.build()); onChanged(); } else { plannedResourceBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public Builder addPlannedResource( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder builderForValue) { if (plannedResourceBuilder_ == null) { ensurePlannedResourceIsMutable(); plannedResource_.add(index, builderForValue.build()); onChanged(); } else { plannedResourceBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public Builder addAllPlannedResource( java.lang.Iterable values) { if (plannedResourceBuilder_ == null) { ensurePlannedResourceIsMutable(); super.addAll(values, plannedResource_); onChanged(); } else { plannedResourceBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public Builder clearPlannedResource() { if (plannedResourceBuilder_ == null) { plannedResource_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { plannedResourceBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public Builder removePlannedResource(int index) { if (plannedResourceBuilder_ == null) { ensurePlannedResourceIsMutable(); plannedResource_.remove(index); onChanged(); } else { plannedResourceBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder getPlannedResourceBuilder( int index) { return getPlannedResourceFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder getPlannedResourceOrBuilder( int index) { if (plannedResourceBuilder_ == null) { return plannedResource_.get(index); } else { return plannedResourceBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public java.util.List getPlannedResourceOrBuilderList() { if (plannedResourceBuilder_ != null) { return plannedResourceBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(plannedResource_); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder addPlannedResourceBuilder() { return getPlannedResourceFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder addPlannedResourceBuilder( int index) { return getPlannedResourceFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem plannedResource = 3; */ public java.util.List getPlannedResourceBuilderList() { return getPlannedResourceFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder> getPlannedResourceFieldBuilder() { if (plannedResourceBuilder_ == null) { plannedResourceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>( plannedResource_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); plannedResource_ = null; } return plannedResourceBuilder_; } // repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; private java.util.List usedResource_ = java.util.Collections.emptyList(); private void ensureUsedResourceIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { usedResource_ = new java.util.ArrayList(usedResource_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder> usedResourceBuilder_; /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public java.util.List getUsedResourceList() { if (usedResourceBuilder_ == null) { return java.util.Collections.unmodifiableList(usedResource_); } else { return usedResourceBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public int getUsedResourceCount() { if (usedResourceBuilder_ == null) { return usedResource_.size(); } else { return usedResourceBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem getUsedResource(int index) { if (usedResourceBuilder_ == null) { return usedResource_.get(index); } else { return usedResourceBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public Builder setUsedResource( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem value) { if (usedResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsedResourceIsMutable(); usedResource_.set(index, value); onChanged(); } else { usedResourceBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public Builder setUsedResource( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder builderForValue) { if (usedResourceBuilder_ == null) { ensureUsedResourceIsMutable(); usedResource_.set(index, builderForValue.build()); onChanged(); } else { usedResourceBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public Builder addUsedResource(apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem value) { if (usedResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsedResourceIsMutable(); usedResource_.add(value); onChanged(); } else { usedResourceBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public Builder addUsedResource( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem value) { if (usedResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUsedResourceIsMutable(); usedResource_.add(index, value); onChanged(); } else { usedResourceBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public Builder addUsedResource( apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder builderForValue) { if (usedResourceBuilder_ == null) { ensureUsedResourceIsMutable(); usedResource_.add(builderForValue.build()); onChanged(); } else { usedResourceBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public Builder addUsedResource( int index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder builderForValue) { if (usedResourceBuilder_ == null) { ensureUsedResourceIsMutable(); usedResource_.add(index, builderForValue.build()); onChanged(); } else { usedResourceBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public Builder addAllUsedResource( java.lang.Iterable values) { if (usedResourceBuilder_ == null) { ensureUsedResourceIsMutable(); super.addAll(values, usedResource_); onChanged(); } else { usedResourceBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public Builder clearUsedResource() { if (usedResourceBuilder_ == null) { usedResource_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { usedResourceBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public Builder removeUsedResource(int index) { if (usedResourceBuilder_ == null) { ensureUsedResourceIsMutable(); usedResource_.remove(index); onChanged(); } else { usedResourceBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder getUsedResourceBuilder( int index) { return getUsedResourceFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder getUsedResourceOrBuilder( int index) { if (usedResourceBuilder_ == null) { return usedResource_.get(index); } else { return usedResourceBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public java.util.List getUsedResourceOrBuilderList() { if (usedResourceBuilder_ != null) { return usedResourceBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(usedResource_); } } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder addUsedResourceBuilder() { return getUsedResourceFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder addUsedResourceBuilder( int index) { return getUsedResourceFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.ResourceDescItem usedResource = 4; */ public java.util.List getUsedResourceBuilderList() { return getUsedResourceFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder> getUsedResourceFieldBuilder() { if (usedResourceBuilder_ == null) { usedResourceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem.Builder, apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>( usedResource_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); usedResource_ = null; } return usedResourceBuilder_; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.OverUsedWorkItem) } static { defaultInstance = new OverUsedWorkItem(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.OverUsedWorkItem) } public interface KilledOverUsedItemOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string workerName = 1; /** * optional string workerName = 1; */ boolean hasWorkerName(); /** * optional string workerName = 1; */ java.lang.String getWorkerName(); /** * optional string workerName = 1; */ com.google.protobuf.ByteString getWorkerNameBytes(); // optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ boolean hasItem(); /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem getItem(); /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItemOrBuilder getItemOrBuilder(); } /** * Protobuf type {@code apsara.odps.cupid.protocol.KilledOverUsedItem} */ public static final class KilledOverUsedItem extends com.google.protobuf.GeneratedMessage implements KilledOverUsedItemOrBuilder { // Use KilledOverUsedItem.newBuilder() to construct. private KilledOverUsedItem(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private KilledOverUsedItem(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final KilledOverUsedItem defaultInstance; public static KilledOverUsedItem getDefaultInstance() { return defaultInstance; } public KilledOverUsedItem getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KilledOverUsedItem( 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: { bitField0_ |= 0x00000001; workerName_ = input.readBytes(); break; } case 18: { apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = item_.toBuilder(); } item_ = input.readMessage(apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(item_); item_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; 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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_KilledOverUsedItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_KilledOverUsedItem_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.class, apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public KilledOverUsedItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KilledOverUsedItem(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string workerName = 1; public static final int WORKERNAME_FIELD_NUMBER = 1; private java.lang.Object workerName_; /** * optional string workerName = 1; */ public boolean hasWorkerName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string workerName = 1; */ public java.lang.String getWorkerName() { java.lang.Object ref = workerName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { workerName_ = s; } return s; } } /** * optional string workerName = 1; */ public com.google.protobuf.ByteString getWorkerNameBytes() { java.lang.Object ref = workerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); workerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; public static final int ITEM_FIELD_NUMBER = 2; private apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem item_; /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ public boolean hasItem() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ public apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem getItem() { return item_; } /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ public apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItemOrBuilder getItemOrBuilder() { return item_; } private void initFields() { workerName_ = ""; item_ = apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.getDefaultInstance(); } 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(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getWorkerNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, item_); } 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 .computeBytesSize(1, getWorkerNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, item_); } 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 apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem 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(apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem 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 apsara.odps.cupid.protocol.KilledOverUsedItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_KilledOverUsedItem_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_KilledOverUsedItem_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.class, apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getItemFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); workerName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (itemBuilder_ == null) { item_ = apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.getDefaultInstance(); } else { itemBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_KilledOverUsedItem_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem build() { apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem buildPartial() { apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem result = new apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.workerName_ = workerName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (itemBuilder_ == null) { result.item_ = item_; } else { result.item_ = itemBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem other) { if (other == apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.getDefaultInstance()) return this; if (other.hasWorkerName()) { bitField0_ |= 0x00000001; workerName_ = other.workerName_; onChanged(); } if (other.hasItem()) { mergeItem(other.getItem()); } 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 { apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string workerName = 1; private java.lang.Object workerName_ = ""; /** * optional string workerName = 1; */ public boolean hasWorkerName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string workerName = 1; */ public java.lang.String getWorkerName() { java.lang.Object ref = workerName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); workerName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string workerName = 1; */ public com.google.protobuf.ByteString getWorkerNameBytes() { java.lang.Object ref = workerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); workerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string workerName = 1; */ public Builder setWorkerName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; workerName_ = value; onChanged(); return this; } /** * optional string workerName = 1; */ public Builder clearWorkerName() { bitField0_ = (bitField0_ & ~0x00000001); workerName_ = getDefaultInstance().getWorkerName(); onChanged(); return this; } /** * optional string workerName = 1; */ public Builder setWorkerNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; workerName_ = value; onChanged(); return this; } // optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; private apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem item_ = apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem, apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.Builder, apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItemOrBuilder> itemBuilder_; /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ public boolean hasItem() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ public apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem getItem() { if (itemBuilder_ == null) { return item_; } else { return itemBuilder_.getMessage(); } } /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ public Builder setItem(apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem value) { if (itemBuilder_ == null) { if (value == null) { throw new NullPointerException(); } item_ = value; onChanged(); } else { itemBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ public Builder setItem( apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.Builder builderForValue) { if (itemBuilder_ == null) { item_ = builderForValue.build(); onChanged(); } else { itemBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ public Builder mergeItem(apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem value) { if (itemBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && item_ != apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.getDefaultInstance()) { item_ = apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.newBuilder(item_).mergeFrom(value).buildPartial(); } else { item_ = value; } onChanged(); } else { itemBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ public Builder clearItem() { if (itemBuilder_ == null) { item_ = apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.getDefaultInstance(); onChanged(); } else { itemBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ public apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.Builder getItemBuilder() { bitField0_ |= 0x00000002; onChanged(); return getItemFieldBuilder().getBuilder(); } /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ public apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItemOrBuilder getItemOrBuilder() { if (itemBuilder_ != null) { return itemBuilder_.getMessageOrBuilder(); } else { return item_; } } /** * optional .apsara.odps.cupid.protocol.OverUsedWorkItem item = 2; */ private com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem, apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.Builder, apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItemOrBuilder> getItemFieldBuilder() { if (itemBuilder_ == null) { itemBuilder_ = new com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem, apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItem.Builder, apsara.odps.cupid.protocol.ProxyAm.OverUsedWorkItemOrBuilder>( item_, getParentForChildren(), isClean()); item_ = null; } return itemBuilder_; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.KilledOverUsedItem) } static { defaultInstance = new KilledOverUsedItem(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.KilledOverUsedItem) } public interface WorkerFailureEventInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ java.util.List getKilledByTuboListList(); /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry getKilledByTuboList(int index); /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ int getKilledByTuboListCount(); /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ java.util.List getKilledByTuboListOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntryOrBuilder getKilledByTuboListOrBuilder( int index); // repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ java.util.List getCrashedListList(); /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry getCrashedList(int index); /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ int getCrashedListCount(); /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ java.util.List getCrashedListOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntryOrBuilder getCrashedListOrBuilder( int index); // repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ java.util.List getKilledOverUsedListList(); /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem getKilledOverUsedList(int index); /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ int getKilledOverUsedListCount(); /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ java.util.List getKilledOverUsedListOrBuilderList(); /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItemOrBuilder getKilledOverUsedListOrBuilder( int index); } /** * Protobuf type {@code apsara.odps.cupid.protocol.WorkerFailureEventInfo} */ public static final class WorkerFailureEventInfo extends com.google.protobuf.GeneratedMessage implements WorkerFailureEventInfoOrBuilder { // Use WorkerFailureEventInfo.newBuilder() to construct. private WorkerFailureEventInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private WorkerFailureEventInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final WorkerFailureEventInfo defaultInstance; public static WorkerFailureEventInfo getDefaultInstance() { return defaultInstance; } public WorkerFailureEventInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WorkerFailureEventInfo( 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)) { killedByTuboList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } killedByTuboList_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { crashedList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } crashedList_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.PARSER, extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { killedOverUsedList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } killedOverUsedList_.add(input.readMessage(apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.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)) { killedByTuboList_ = java.util.Collections.unmodifiableList(killedByTuboList_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { crashedList_ = java.util.Collections.unmodifiableList(crashedList_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { killedOverUsedList_ = java.util.Collections.unmodifiableList(killedOverUsedList_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerFailureEventInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerFailureEventInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.class, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WorkerFailureEventInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WorkerFailureEventInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } // repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; public static final int KILLEDBYTUBOLIST_FIELD_NUMBER = 1; private java.util.List killedByTuboList_; /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public java.util.List getKilledByTuboListList() { return killedByTuboList_; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public java.util.List getKilledByTuboListOrBuilderList() { return killedByTuboList_; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public int getKilledByTuboListCount() { return killedByTuboList_.size(); } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry getKilledByTuboList(int index) { return killedByTuboList_.get(index); } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntryOrBuilder getKilledByTuboListOrBuilder( int index) { return killedByTuboList_.get(index); } // repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; public static final int CRASHEDLIST_FIELD_NUMBER = 2; private java.util.List crashedList_; /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public java.util.List getCrashedListList() { return crashedList_; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public java.util.List getCrashedListOrBuilderList() { return crashedList_; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public int getCrashedListCount() { return crashedList_.size(); } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry getCrashedList(int index) { return crashedList_.get(index); } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntryOrBuilder getCrashedListOrBuilder( int index) { return crashedList_.get(index); } // repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; public static final int KILLEDOVERUSEDLIST_FIELD_NUMBER = 3; private java.util.List killedOverUsedList_; /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public java.util.List getKilledOverUsedListList() { return killedOverUsedList_; } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public java.util.List getKilledOverUsedListOrBuilderList() { return killedOverUsedList_; } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public int getKilledOverUsedListCount() { return killedOverUsedList_.size(); } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem getKilledOverUsedList(int index) { return killedOverUsedList_.get(index); } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItemOrBuilder getKilledOverUsedListOrBuilder( int index) { return killedOverUsedList_.get(index); } private void initFields() { killedByTuboList_ = java.util.Collections.emptyList(); crashedList_ = java.util.Collections.emptyList(); killedOverUsedList_ = 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 < killedByTuboList_.size(); i++) { output.writeMessage(1, killedByTuboList_.get(i)); } for (int i = 0; i < crashedList_.size(); i++) { output.writeMessage(2, crashedList_.get(i)); } for (int i = 0; i < killedOverUsedList_.size(); i++) { output.writeMessage(3, killedOverUsedList_.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 < killedByTuboList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, killedByTuboList_.get(i)); } for (int i = 0; i < crashedList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, crashedList_.get(i)); } for (int i = 0; i < killedOverUsedList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, killedOverUsedList_.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 apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo 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(apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo 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 apsara.odps.cupid.protocol.WorkerFailureEventInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerFailureEventInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerFailureEventInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.class, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getKilledByTuboListFieldBuilder(); getCrashedListFieldBuilder(); getKilledOverUsedListFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (killedByTuboListBuilder_ == null) { killedByTuboList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { killedByTuboListBuilder_.clear(); } if (crashedListBuilder_ == null) { crashedList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { crashedListBuilder_.clear(); } if (killedOverUsedListBuilder_ == null) { killedOverUsedList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { killedOverUsedListBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_WorkerFailureEventInfo_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo build() { apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo buildPartial() { apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo result = new apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo(this); int from_bitField0_ = bitField0_; if (killedByTuboListBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { killedByTuboList_ = java.util.Collections.unmodifiableList(killedByTuboList_); bitField0_ = (bitField0_ & ~0x00000001); } result.killedByTuboList_ = killedByTuboList_; } else { result.killedByTuboList_ = killedByTuboListBuilder_.build(); } if (crashedListBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { crashedList_ = java.util.Collections.unmodifiableList(crashedList_); bitField0_ = (bitField0_ & ~0x00000002); } result.crashedList_ = crashedList_; } else { result.crashedList_ = crashedListBuilder_.build(); } if (killedOverUsedListBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { killedOverUsedList_ = java.util.Collections.unmodifiableList(killedOverUsedList_); bitField0_ = (bitField0_ & ~0x00000004); } result.killedOverUsedList_ = killedOverUsedList_; } else { result.killedOverUsedList_ = killedOverUsedListBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo other) { if (other == apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.getDefaultInstance()) return this; if (killedByTuboListBuilder_ == null) { if (!other.killedByTuboList_.isEmpty()) { if (killedByTuboList_.isEmpty()) { killedByTuboList_ = other.killedByTuboList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureKilledByTuboListIsMutable(); killedByTuboList_.addAll(other.killedByTuboList_); } onChanged(); } } else { if (!other.killedByTuboList_.isEmpty()) { if (killedByTuboListBuilder_.isEmpty()) { killedByTuboListBuilder_.dispose(); killedByTuboListBuilder_ = null; killedByTuboList_ = other.killedByTuboList_; bitField0_ = (bitField0_ & ~0x00000001); killedByTuboListBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getKilledByTuboListFieldBuilder() : null; } else { killedByTuboListBuilder_.addAllMessages(other.killedByTuboList_); } } } if (crashedListBuilder_ == null) { if (!other.crashedList_.isEmpty()) { if (crashedList_.isEmpty()) { crashedList_ = other.crashedList_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCrashedListIsMutable(); crashedList_.addAll(other.crashedList_); } onChanged(); } } else { if (!other.crashedList_.isEmpty()) { if (crashedListBuilder_.isEmpty()) { crashedListBuilder_.dispose(); crashedListBuilder_ = null; crashedList_ = other.crashedList_; bitField0_ = (bitField0_ & ~0x00000002); crashedListBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCrashedListFieldBuilder() : null; } else { crashedListBuilder_.addAllMessages(other.crashedList_); } } } if (killedOverUsedListBuilder_ == null) { if (!other.killedOverUsedList_.isEmpty()) { if (killedOverUsedList_.isEmpty()) { killedOverUsedList_ = other.killedOverUsedList_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureKilledOverUsedListIsMutable(); killedOverUsedList_.addAll(other.killedOverUsedList_); } onChanged(); } } else { if (!other.killedOverUsedList_.isEmpty()) { if (killedOverUsedListBuilder_.isEmpty()) { killedOverUsedListBuilder_.dispose(); killedOverUsedListBuilder_ = null; killedOverUsedList_ = other.killedOverUsedList_; bitField0_ = (bitField0_ & ~0x00000004); killedOverUsedListBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getKilledOverUsedListFieldBuilder() : null; } else { killedOverUsedListBuilder_.addAllMessages(other.killedOverUsedList_); } } } 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 { apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; private java.util.List killedByTuboList_ = java.util.Collections.emptyList(); private void ensureKilledByTuboListIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { killedByTuboList_ = new java.util.ArrayList(killedByTuboList_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntryOrBuilder> killedByTuboListBuilder_; /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public java.util.List getKilledByTuboListList() { if (killedByTuboListBuilder_ == null) { return java.util.Collections.unmodifiableList(killedByTuboList_); } else { return killedByTuboListBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public int getKilledByTuboListCount() { if (killedByTuboListBuilder_ == null) { return killedByTuboList_.size(); } else { return killedByTuboListBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry getKilledByTuboList(int index) { if (killedByTuboListBuilder_ == null) { return killedByTuboList_.get(index); } else { return killedByTuboListBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public Builder setKilledByTuboList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry value) { if (killedByTuboListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKilledByTuboListIsMutable(); killedByTuboList_.set(index, value); onChanged(); } else { killedByTuboListBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public Builder setKilledByTuboList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder builderForValue) { if (killedByTuboListBuilder_ == null) { ensureKilledByTuboListIsMutable(); killedByTuboList_.set(index, builderForValue.build()); onChanged(); } else { killedByTuboListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public Builder addKilledByTuboList(apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry value) { if (killedByTuboListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKilledByTuboListIsMutable(); killedByTuboList_.add(value); onChanged(); } else { killedByTuboListBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public Builder addKilledByTuboList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry value) { if (killedByTuboListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKilledByTuboListIsMutable(); killedByTuboList_.add(index, value); onChanged(); } else { killedByTuboListBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public Builder addKilledByTuboList( apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder builderForValue) { if (killedByTuboListBuilder_ == null) { ensureKilledByTuboListIsMutable(); killedByTuboList_.add(builderForValue.build()); onChanged(); } else { killedByTuboListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public Builder addKilledByTuboList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder builderForValue) { if (killedByTuboListBuilder_ == null) { ensureKilledByTuboListIsMutable(); killedByTuboList_.add(index, builderForValue.build()); onChanged(); } else { killedByTuboListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public Builder addAllKilledByTuboList( java.lang.Iterable values) { if (killedByTuboListBuilder_ == null) { ensureKilledByTuboListIsMutable(); super.addAll(values, killedByTuboList_); onChanged(); } else { killedByTuboListBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public Builder clearKilledByTuboList() { if (killedByTuboListBuilder_ == null) { killedByTuboList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { killedByTuboListBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public Builder removeKilledByTuboList(int index) { if (killedByTuboListBuilder_ == null) { ensureKilledByTuboListIsMutable(); killedByTuboList_.remove(index); onChanged(); } else { killedByTuboListBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder getKilledByTuboListBuilder( int index) { return getKilledByTuboListFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntryOrBuilder getKilledByTuboListOrBuilder( int index) { if (killedByTuboListBuilder_ == null) { return killedByTuboList_.get(index); } else { return killedByTuboListBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public java.util.List getKilledByTuboListOrBuilderList() { if (killedByTuboListBuilder_ != null) { return killedByTuboListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(killedByTuboList_); } } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder addKilledByTuboListBuilder() { return getKilledByTuboListFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder addKilledByTuboListBuilder( int index) { return getKilledByTuboListFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry killedByTuboList = 1; */ public java.util.List getKilledByTuboListBuilderList() { return getKilledByTuboListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntryOrBuilder> getKilledByTuboListFieldBuilder() { if (killedByTuboListBuilder_ == null) { killedByTuboListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntryOrBuilder>( killedByTuboList_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); killedByTuboList_ = null; } return killedByTuboListBuilder_; } // repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; private java.util.List crashedList_ = java.util.Collections.emptyList(); private void ensureCrashedListIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { crashedList_ = new java.util.ArrayList(crashedList_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntryOrBuilder> crashedListBuilder_; /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public java.util.List getCrashedListList() { if (crashedListBuilder_ == null) { return java.util.Collections.unmodifiableList(crashedList_); } else { return crashedListBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public int getCrashedListCount() { if (crashedListBuilder_ == null) { return crashedList_.size(); } else { return crashedListBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry getCrashedList(int index) { if (crashedListBuilder_ == null) { return crashedList_.get(index); } else { return crashedListBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public Builder setCrashedList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry value) { if (crashedListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCrashedListIsMutable(); crashedList_.set(index, value); onChanged(); } else { crashedListBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public Builder setCrashedList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder builderForValue) { if (crashedListBuilder_ == null) { ensureCrashedListIsMutable(); crashedList_.set(index, builderForValue.build()); onChanged(); } else { crashedListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public Builder addCrashedList(apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry value) { if (crashedListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCrashedListIsMutable(); crashedList_.add(value); onChanged(); } else { crashedListBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public Builder addCrashedList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry value) { if (crashedListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCrashedListIsMutable(); crashedList_.add(index, value); onChanged(); } else { crashedListBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public Builder addCrashedList( apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder builderForValue) { if (crashedListBuilder_ == null) { ensureCrashedListIsMutable(); crashedList_.add(builderForValue.build()); onChanged(); } else { crashedListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public Builder addCrashedList( int index, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder builderForValue) { if (crashedListBuilder_ == null) { ensureCrashedListIsMutable(); crashedList_.add(index, builderForValue.build()); onChanged(); } else { crashedListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public Builder addAllCrashedList( java.lang.Iterable values) { if (crashedListBuilder_ == null) { ensureCrashedListIsMutable(); super.addAll(values, crashedList_); onChanged(); } else { crashedListBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public Builder clearCrashedList() { if (crashedListBuilder_ == null) { crashedList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { crashedListBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public Builder removeCrashedList(int index) { if (crashedListBuilder_ == null) { ensureCrashedListIsMutable(); crashedList_.remove(index); onChanged(); } else { crashedListBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder getCrashedListBuilder( int index) { return getCrashedListFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntryOrBuilder getCrashedListOrBuilder( int index) { if (crashedListBuilder_ == null) { return crashedList_.get(index); } else { return crashedListBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public java.util.List getCrashedListOrBuilderList() { if (crashedListBuilder_ != null) { return crashedListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(crashedList_); } } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder addCrashedListBuilder() { return getCrashedListFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder addCrashedListBuilder( int index) { return getCrashedListFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.WorkerFailureEntry crashedList = 2; */ public java.util.List getCrashedListBuilderList() { return getCrashedListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntryOrBuilder> getCrashedListFieldBuilder() { if (crashedListBuilder_ == null) { crashedListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntry.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEntryOrBuilder>( crashedList_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); crashedList_ = null; } return crashedListBuilder_; } // repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; private java.util.List killedOverUsedList_ = java.util.Collections.emptyList(); private void ensureKilledOverUsedListIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { killedOverUsedList_ = new java.util.ArrayList(killedOverUsedList_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem, apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.Builder, apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItemOrBuilder> killedOverUsedListBuilder_; /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public java.util.List getKilledOverUsedListList() { if (killedOverUsedListBuilder_ == null) { return java.util.Collections.unmodifiableList(killedOverUsedList_); } else { return killedOverUsedListBuilder_.getMessageList(); } } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public int getKilledOverUsedListCount() { if (killedOverUsedListBuilder_ == null) { return killedOverUsedList_.size(); } else { return killedOverUsedListBuilder_.getCount(); } } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem getKilledOverUsedList(int index) { if (killedOverUsedListBuilder_ == null) { return killedOverUsedList_.get(index); } else { return killedOverUsedListBuilder_.getMessage(index); } } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public Builder setKilledOverUsedList( int index, apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem value) { if (killedOverUsedListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKilledOverUsedListIsMutable(); killedOverUsedList_.set(index, value); onChanged(); } else { killedOverUsedListBuilder_.setMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public Builder setKilledOverUsedList( int index, apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.Builder builderForValue) { if (killedOverUsedListBuilder_ == null) { ensureKilledOverUsedListIsMutable(); killedOverUsedList_.set(index, builderForValue.build()); onChanged(); } else { killedOverUsedListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public Builder addKilledOverUsedList(apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem value) { if (killedOverUsedListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKilledOverUsedListIsMutable(); killedOverUsedList_.add(value); onChanged(); } else { killedOverUsedListBuilder_.addMessage(value); } return this; } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public Builder addKilledOverUsedList( int index, apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem value) { if (killedOverUsedListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKilledOverUsedListIsMutable(); killedOverUsedList_.add(index, value); onChanged(); } else { killedOverUsedListBuilder_.addMessage(index, value); } return this; } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public Builder addKilledOverUsedList( apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.Builder builderForValue) { if (killedOverUsedListBuilder_ == null) { ensureKilledOverUsedListIsMutable(); killedOverUsedList_.add(builderForValue.build()); onChanged(); } else { killedOverUsedListBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public Builder addKilledOverUsedList( int index, apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.Builder builderForValue) { if (killedOverUsedListBuilder_ == null) { ensureKilledOverUsedListIsMutable(); killedOverUsedList_.add(index, builderForValue.build()); onChanged(); } else { killedOverUsedListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public Builder addAllKilledOverUsedList( java.lang.Iterable values) { if (killedOverUsedListBuilder_ == null) { ensureKilledOverUsedListIsMutable(); super.addAll(values, killedOverUsedList_); onChanged(); } else { killedOverUsedListBuilder_.addAllMessages(values); } return this; } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public Builder clearKilledOverUsedList() { if (killedOverUsedListBuilder_ == null) { killedOverUsedList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { killedOverUsedListBuilder_.clear(); } return this; } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public Builder removeKilledOverUsedList(int index) { if (killedOverUsedListBuilder_ == null) { ensureKilledOverUsedListIsMutable(); killedOverUsedList_.remove(index); onChanged(); } else { killedOverUsedListBuilder_.remove(index); } return this; } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.Builder getKilledOverUsedListBuilder( int index) { return getKilledOverUsedListFieldBuilder().getBuilder(index); } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItemOrBuilder getKilledOverUsedListOrBuilder( int index) { if (killedOverUsedListBuilder_ == null) { return killedOverUsedList_.get(index); } else { return killedOverUsedListBuilder_.getMessageOrBuilder(index); } } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public java.util.List getKilledOverUsedListOrBuilderList() { if (killedOverUsedListBuilder_ != null) { return killedOverUsedListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(killedOverUsedList_); } } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.Builder addKilledOverUsedListBuilder() { return getKilledOverUsedListFieldBuilder().addBuilder( apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.Builder addKilledOverUsedListBuilder( int index) { return getKilledOverUsedListFieldBuilder().addBuilder( index, apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.getDefaultInstance()); } /** * repeated .apsara.odps.cupid.protocol.KilledOverUsedItem killedOverUsedList = 3; */ public java.util.List getKilledOverUsedListBuilderList() { return getKilledOverUsedListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem, apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.Builder, apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItemOrBuilder> getKilledOverUsedListFieldBuilder() { if (killedOverUsedListBuilder_ == null) { killedOverUsedListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem, apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItem.Builder, apsara.odps.cupid.protocol.ProxyAm.KilledOverUsedItemOrBuilder>( killedOverUsedList_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); killedOverUsedList_ = null; } return killedOverUsedListBuilder_; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.WorkerFailureEventInfo) } static { defaultInstance = new WorkerFailureEventInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.WorkerFailureEventInfo) } public interface EventInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ boolean hasAssignedResourceChangeEventInfo(); /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo getAssignedResourceChangeEventInfo(); /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfoOrBuilder getAssignedResourceChangeEventInfoOrBuilder(); // optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ boolean hasSendWorkerListResponseEventInfo(); /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo getSendWorkerListResponseEventInfo(); /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfoOrBuilder getSendWorkerListResponseEventInfoOrBuilder(); // optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ boolean hasWorkerFailureEventInfo(); /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo getWorkerFailureEventInfo(); /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfoOrBuilder getWorkerFailureEventInfoOrBuilder(); } /** * Protobuf type {@code apsara.odps.cupid.protocol.EventInfo} */ public static final class EventInfo extends com.google.protobuf.GeneratedMessage implements EventInfoOrBuilder { // Use EventInfo.newBuilder() to construct. private EventInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private EventInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final EventInfo defaultInstance; public static EventInfo getDefaultInstance() { return defaultInstance; } public EventInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EventInfo( 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: { apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = assignedResourceChangeEventInfo_.toBuilder(); } assignedResourceChangeEventInfo_ = input.readMessage(apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(assignedResourceChangeEventInfo_); assignedResourceChangeEventInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 34: { apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = sendWorkerListResponseEventInfo_.toBuilder(); } sendWorkerListResponseEventInfo_ = input.readMessage(apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sendWorkerListResponseEventInfo_); sendWorkerListResponseEventInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 42: { apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = workerFailureEventInfo_.toBuilder(); } workerFailureEventInfo_ = input.readMessage(apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(workerFailureEventInfo_); workerFailureEventInfo_ = 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_EventInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_EventInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.EventInfo.class, apsara.odps.cupid.protocol.ProxyAm.EventInfo.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public EventInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EventInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; public static final int ASSIGNEDRESOURCECHANGEEVENTINFO_FIELD_NUMBER = 1; private apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo_; /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ public boolean hasAssignedResourceChangeEventInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ public apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo getAssignedResourceChangeEventInfo() { return assignedResourceChangeEventInfo_; } /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ public apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfoOrBuilder getAssignedResourceChangeEventInfoOrBuilder() { return assignedResourceChangeEventInfo_; } // optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; public static final int SENDWORKERLISTRESPONSEEVENTINFO_FIELD_NUMBER = 4; private apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo_; /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ public boolean hasSendWorkerListResponseEventInfo() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ public apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo getSendWorkerListResponseEventInfo() { return sendWorkerListResponseEventInfo_; } /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ public apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfoOrBuilder getSendWorkerListResponseEventInfoOrBuilder() { return sendWorkerListResponseEventInfo_; } // optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; public static final int WORKERFAILUREEVENTINFO_FIELD_NUMBER = 5; private apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo workerFailureEventInfo_; /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ public boolean hasWorkerFailureEventInfo() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo getWorkerFailureEventInfo() { return workerFailureEventInfo_; } /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfoOrBuilder getWorkerFailureEventInfoOrBuilder() { return workerFailureEventInfo_; } private void initFields() { assignedResourceChangeEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.getDefaultInstance(); sendWorkerListResponseEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.getDefaultInstance(); workerFailureEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.getDefaultInstance(); } 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(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, assignedResourceChangeEventInfo_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(4, sendWorkerListResponseEventInfo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(5, workerFailureEventInfo_); } 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 .computeMessageSize(1, assignedResourceChangeEventInfo_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, sendWorkerListResponseEventInfo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, workerFailureEventInfo_); } 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 apsara.odps.cupid.protocol.ProxyAm.EventInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.EventInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.EventInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.EventInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.EventInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.EventInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.EventInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.EventInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.EventInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.EventInfo 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(apsara.odps.cupid.protocol.ProxyAm.EventInfo 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 apsara.odps.cupid.protocol.EventInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.EventInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_EventInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_EventInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.EventInfo.class, apsara.odps.cupid.protocol.ProxyAm.EventInfo.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.EventInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAssignedResourceChangeEventInfoFieldBuilder(); getSendWorkerListResponseEventInfoFieldBuilder(); getWorkerFailureEventInfoFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (assignedResourceChangeEventInfoBuilder_ == null) { assignedResourceChangeEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.getDefaultInstance(); } else { assignedResourceChangeEventInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (sendWorkerListResponseEventInfoBuilder_ == null) { sendWorkerListResponseEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.getDefaultInstance(); } else { sendWorkerListResponseEventInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (workerFailureEventInfoBuilder_ == null) { workerFailureEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.getDefaultInstance(); } else { workerFailureEventInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_EventInfo_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.EventInfo getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.EventInfo.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.EventInfo build() { apsara.odps.cupid.protocol.ProxyAm.EventInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.EventInfo buildPartial() { apsara.odps.cupid.protocol.ProxyAm.EventInfo result = new apsara.odps.cupid.protocol.ProxyAm.EventInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (assignedResourceChangeEventInfoBuilder_ == null) { result.assignedResourceChangeEventInfo_ = assignedResourceChangeEventInfo_; } else { result.assignedResourceChangeEventInfo_ = assignedResourceChangeEventInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (sendWorkerListResponseEventInfoBuilder_ == null) { result.sendWorkerListResponseEventInfo_ = sendWorkerListResponseEventInfo_; } else { result.sendWorkerListResponseEventInfo_ = sendWorkerListResponseEventInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (workerFailureEventInfoBuilder_ == null) { result.workerFailureEventInfo_ = workerFailureEventInfo_; } else { result.workerFailureEventInfo_ = workerFailureEventInfoBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.EventInfo) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.EventInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.EventInfo other) { if (other == apsara.odps.cupid.protocol.ProxyAm.EventInfo.getDefaultInstance()) return this; if (other.hasAssignedResourceChangeEventInfo()) { mergeAssignedResourceChangeEventInfo(other.getAssignedResourceChangeEventInfo()); } if (other.hasSendWorkerListResponseEventInfo()) { mergeSendWorkerListResponseEventInfo(other.getSendWorkerListResponseEventInfo()); } if (other.hasWorkerFailureEventInfo()) { mergeWorkerFailureEventInfo(other.getWorkerFailureEventInfo()); } 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 { apsara.odps.cupid.protocol.ProxyAm.EventInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.EventInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; private apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo, apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.Builder, apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfoOrBuilder> assignedResourceChangeEventInfoBuilder_; /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ public boolean hasAssignedResourceChangeEventInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ public apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo getAssignedResourceChangeEventInfo() { if (assignedResourceChangeEventInfoBuilder_ == null) { return assignedResourceChangeEventInfo_; } else { return assignedResourceChangeEventInfoBuilder_.getMessage(); } } /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ public Builder setAssignedResourceChangeEventInfo(apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo value) { if (assignedResourceChangeEventInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } assignedResourceChangeEventInfo_ = value; onChanged(); } else { assignedResourceChangeEventInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ public Builder setAssignedResourceChangeEventInfo( apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.Builder builderForValue) { if (assignedResourceChangeEventInfoBuilder_ == null) { assignedResourceChangeEventInfo_ = builderForValue.build(); onChanged(); } else { assignedResourceChangeEventInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ public Builder mergeAssignedResourceChangeEventInfo(apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo value) { if (assignedResourceChangeEventInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && assignedResourceChangeEventInfo_ != apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.getDefaultInstance()) { assignedResourceChangeEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.newBuilder(assignedResourceChangeEventInfo_).mergeFrom(value).buildPartial(); } else { assignedResourceChangeEventInfo_ = value; } onChanged(); } else { assignedResourceChangeEventInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ public Builder clearAssignedResourceChangeEventInfo() { if (assignedResourceChangeEventInfoBuilder_ == null) { assignedResourceChangeEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.getDefaultInstance(); onChanged(); } else { assignedResourceChangeEventInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ public apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.Builder getAssignedResourceChangeEventInfoBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAssignedResourceChangeEventInfoFieldBuilder().getBuilder(); } /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ public apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfoOrBuilder getAssignedResourceChangeEventInfoOrBuilder() { if (assignedResourceChangeEventInfoBuilder_ != null) { return assignedResourceChangeEventInfoBuilder_.getMessageOrBuilder(); } else { return assignedResourceChangeEventInfo_; } } /** * optional .apsara.odps.cupid.protocol.AssignedResourceChangeEventInfo assignedResourceChangeEventInfo = 1; */ private com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo, apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.Builder, apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfoOrBuilder> getAssignedResourceChangeEventInfoFieldBuilder() { if (assignedResourceChangeEventInfoBuilder_ == null) { assignedResourceChangeEventInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo, apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfo.Builder, apsara.odps.cupid.protocol.ProxyAm.AssignedResourceChangeEventInfoOrBuilder>( assignedResourceChangeEventInfo_, getParentForChildren(), isClean()); assignedResourceChangeEventInfo_ = null; } return assignedResourceChangeEventInfoBuilder_; } // optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; private apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.Builder, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfoOrBuilder> sendWorkerListResponseEventInfoBuilder_; /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ public boolean hasSendWorkerListResponseEventInfo() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ public apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo getSendWorkerListResponseEventInfo() { if (sendWorkerListResponseEventInfoBuilder_ == null) { return sendWorkerListResponseEventInfo_; } else { return sendWorkerListResponseEventInfoBuilder_.getMessage(); } } /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ public Builder setSendWorkerListResponseEventInfo(apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo value) { if (sendWorkerListResponseEventInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sendWorkerListResponseEventInfo_ = value; onChanged(); } else { sendWorkerListResponseEventInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ public Builder setSendWorkerListResponseEventInfo( apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.Builder builderForValue) { if (sendWorkerListResponseEventInfoBuilder_ == null) { sendWorkerListResponseEventInfo_ = builderForValue.build(); onChanged(); } else { sendWorkerListResponseEventInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ public Builder mergeSendWorkerListResponseEventInfo(apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo value) { if (sendWorkerListResponseEventInfoBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && sendWorkerListResponseEventInfo_ != apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.getDefaultInstance()) { sendWorkerListResponseEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.newBuilder(sendWorkerListResponseEventInfo_).mergeFrom(value).buildPartial(); } else { sendWorkerListResponseEventInfo_ = value; } onChanged(); } else { sendWorkerListResponseEventInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ public Builder clearSendWorkerListResponseEventInfo() { if (sendWorkerListResponseEventInfoBuilder_ == null) { sendWorkerListResponseEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.getDefaultInstance(); onChanged(); } else { sendWorkerListResponseEventInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ public apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.Builder getSendWorkerListResponseEventInfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSendWorkerListResponseEventInfoFieldBuilder().getBuilder(); } /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ public apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfoOrBuilder getSendWorkerListResponseEventInfoOrBuilder() { if (sendWorkerListResponseEventInfoBuilder_ != null) { return sendWorkerListResponseEventInfoBuilder_.getMessageOrBuilder(); } else { return sendWorkerListResponseEventInfo_; } } /** * optional .apsara.odps.cupid.protocol.SendWorkerListResponseEventInfo sendWorkerListResponseEventInfo = 4; */ private com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.Builder, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfoOrBuilder> getSendWorkerListResponseEventInfoFieldBuilder() { if (sendWorkerListResponseEventInfoBuilder_ == null) { sendWorkerListResponseEventInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfo.Builder, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListResponseEventInfoOrBuilder>( sendWorkerListResponseEventInfo_, getParentForChildren(), isClean()); sendWorkerListResponseEventInfo_ = null; } return sendWorkerListResponseEventInfoBuilder_; } // optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; private apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo workerFailureEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfoOrBuilder> workerFailureEventInfoBuilder_; /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ public boolean hasWorkerFailureEventInfo() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo getWorkerFailureEventInfo() { if (workerFailureEventInfoBuilder_ == null) { return workerFailureEventInfo_; } else { return workerFailureEventInfoBuilder_.getMessage(); } } /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ public Builder setWorkerFailureEventInfo(apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo value) { if (workerFailureEventInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workerFailureEventInfo_ = value; onChanged(); } else { workerFailureEventInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ public Builder setWorkerFailureEventInfo( apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.Builder builderForValue) { if (workerFailureEventInfoBuilder_ == null) { workerFailureEventInfo_ = builderForValue.build(); onChanged(); } else { workerFailureEventInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ public Builder mergeWorkerFailureEventInfo(apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo value) { if (workerFailureEventInfoBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && workerFailureEventInfo_ != apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.getDefaultInstance()) { workerFailureEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.newBuilder(workerFailureEventInfo_).mergeFrom(value).buildPartial(); } else { workerFailureEventInfo_ = value; } onChanged(); } else { workerFailureEventInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ public Builder clearWorkerFailureEventInfo() { if (workerFailureEventInfoBuilder_ == null) { workerFailureEventInfo_ = apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.getDefaultInstance(); onChanged(); } else { workerFailureEventInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.Builder getWorkerFailureEventInfoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkerFailureEventInfoFieldBuilder().getBuilder(); } /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ public apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfoOrBuilder getWorkerFailureEventInfoOrBuilder() { if (workerFailureEventInfoBuilder_ != null) { return workerFailureEventInfoBuilder_.getMessageOrBuilder(); } else { return workerFailureEventInfo_; } } /** * optional .apsara.odps.cupid.protocol.WorkerFailureEventInfo workerFailureEventInfo = 5; */ private com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfoOrBuilder> getWorkerFailureEventInfoFieldBuilder() { if (workerFailureEventInfoBuilder_ == null) { workerFailureEventInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfo.Builder, apsara.odps.cupid.protocol.ProxyAm.WorkerFailureEventInfoOrBuilder>( workerFailureEventInfo_, getParentForChildren(), isClean()); workerFailureEventInfo_ = null; } return workerFailureEventInfoBuilder_; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.EventInfo) } static { defaultInstance = new EventInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.EventInfo) } public interface RpcRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string clientName = 1; /** * optional string clientName = 1; */ boolean hasClientName(); /** * optional string clientName = 1; */ java.lang.String getClientName(); /** * optional string clientName = 1; */ com.google.protobuf.ByteString getClientNameBytes(); // optional string token = 2; /** * optional string token = 2; */ boolean hasToken(); /** * optional string token = 2; */ java.lang.String getToken(); /** * optional string token = 2; */ com.google.protobuf.ByteString getTokenBytes(); // optional string method = 3; /** * optional string method = 3; */ boolean hasMethod(); /** * optional string method = 3; */ java.lang.String getMethod(); /** * optional string method = 3; */ com.google.protobuf.ByteString getMethodBytes(); // optional string parameter = 4; /** * optional string parameter = 4; */ boolean hasParameter(); /** * optional string parameter = 4; */ java.lang.String getParameter(); /** * optional string parameter = 4; */ com.google.protobuf.ByteString getParameterBytes(); // optional string remoteAddress = 5; /** * optional string remoteAddress = 5; */ boolean hasRemoteAddress(); /** * optional string remoteAddress = 5; */ java.lang.String getRemoteAddress(); /** * optional string remoteAddress = 5; */ com.google.protobuf.ByteString getRemoteAddressBytes(); // optional int64 traceInfo = 6; /** * optional int64 traceInfo = 6; */ boolean hasTraceInfo(); /** * optional int64 traceInfo = 6; */ long getTraceInfo(); } /** * Protobuf type {@code apsara.odps.cupid.protocol.RpcRequest} */ public static final class RpcRequest extends com.google.protobuf.GeneratedMessage implements RpcRequestOrBuilder { // Use RpcRequest.newBuilder() to construct. private RpcRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpcRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpcRequest defaultInstance; public static RpcRequest getDefaultInstance() { return defaultInstance; } public RpcRequest getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpcRequest( 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: { bitField0_ |= 0x00000001; clientName_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; token_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; method_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; parameter_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; remoteAddress_ = input.readBytes(); break; } case 48: { bitField0_ |= 0x00000020; traceInfo_ = input.readInt64(); 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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RpcRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RpcRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.RpcRequest.class, apsara.odps.cupid.protocol.ProxyAm.RpcRequest.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpcRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpcRequest(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional string clientName = 1; public static final int CLIENTNAME_FIELD_NUMBER = 1; private java.lang.Object clientName_; /** * optional string clientName = 1; */ public boolean hasClientName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string clientName = 1; */ public java.lang.String getClientName() { java.lang.Object ref = clientName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { clientName_ = s; } return s; } } /** * optional string clientName = 1; */ public com.google.protobuf.ByteString getClientNameBytes() { java.lang.Object ref = clientName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string token = 2; public static final int TOKEN_FIELD_NUMBER = 2; private java.lang.Object token_; /** * optional string token = 2; */ public boolean hasToken() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string token = 2; */ public java.lang.String getToken() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { token_ = s; } return s; } } /** * optional string token = 2; */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string method = 3; public static final int METHOD_FIELD_NUMBER = 3; private java.lang.Object method_; /** * optional string method = 3; */ public boolean hasMethod() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string method = 3; */ public java.lang.String getMethod() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { method_ = s; } return s; } } /** * optional string method = 3; */ public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string parameter = 4; public static final int PARAMETER_FIELD_NUMBER = 4; private java.lang.Object parameter_; /** * optional string parameter = 4; */ public boolean hasParameter() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string parameter = 4; */ public java.lang.String getParameter() { java.lang.Object ref = parameter_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { parameter_ = s; } return s; } } /** * optional string parameter = 4; */ public com.google.protobuf.ByteString getParameterBytes() { java.lang.Object ref = parameter_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parameter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string remoteAddress = 5; public static final int REMOTEADDRESS_FIELD_NUMBER = 5; private java.lang.Object remoteAddress_; /** * optional string remoteAddress = 5; */ public boolean hasRemoteAddress() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string remoteAddress = 5; */ public java.lang.String getRemoteAddress() { java.lang.Object ref = remoteAddress_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { remoteAddress_ = s; } return s; } } /** * optional string remoteAddress = 5; */ public com.google.protobuf.ByteString getRemoteAddressBytes() { java.lang.Object ref = remoteAddress_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); remoteAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 traceInfo = 6; public static final int TRACEINFO_FIELD_NUMBER = 6; private long traceInfo_; /** * optional int64 traceInfo = 6; */ public boolean hasTraceInfo() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int64 traceInfo = 6; */ public long getTraceInfo() { return traceInfo_; } private void initFields() { clientName_ = ""; token_ = ""; method_ = ""; parameter_ = ""; remoteAddress_ = ""; traceInfo_ = 0L; } 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(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getClientNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getTokenBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getMethodBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getParameterBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getRemoteAddressBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(6, traceInfo_); } 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 .computeBytesSize(1, getClientNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getTokenBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getMethodBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getParameterBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getRemoteAddressBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, traceInfo_); } 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 apsara.odps.cupid.protocol.ProxyAm.RpcRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.RpcRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.RpcRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.RpcRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.RpcRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.RpcRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.RpcRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.RpcRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.RpcRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.RpcRequest 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(apsara.odps.cupid.protocol.ProxyAm.RpcRequest 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 apsara.odps.cupid.protocol.RpcRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.RpcRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RpcRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RpcRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.RpcRequest.class, apsara.odps.cupid.protocol.ProxyAm.RpcRequest.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.RpcRequest.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(); clientName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); token_ = ""; bitField0_ = (bitField0_ & ~0x00000002); method_ = ""; bitField0_ = (bitField0_ & ~0x00000004); parameter_ = ""; bitField0_ = (bitField0_ & ~0x00000008); remoteAddress_ = ""; bitField0_ = (bitField0_ & ~0x00000010); traceInfo_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RpcRequest_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.RpcRequest getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.RpcRequest.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.RpcRequest build() { apsara.odps.cupid.protocol.ProxyAm.RpcRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.RpcRequest buildPartial() { apsara.odps.cupid.protocol.ProxyAm.RpcRequest result = new apsara.odps.cupid.protocol.ProxyAm.RpcRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.clientName_ = clientName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.token_ = token_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.method_ = method_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.parameter_ = parameter_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.remoteAddress_ = remoteAddress_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.traceInfo_ = traceInfo_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.RpcRequest) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.RpcRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.RpcRequest other) { if (other == apsara.odps.cupid.protocol.ProxyAm.RpcRequest.getDefaultInstance()) return this; if (other.hasClientName()) { bitField0_ |= 0x00000001; clientName_ = other.clientName_; onChanged(); } if (other.hasToken()) { bitField0_ |= 0x00000002; token_ = other.token_; onChanged(); } if (other.hasMethod()) { bitField0_ |= 0x00000004; method_ = other.method_; onChanged(); } if (other.hasParameter()) { bitField0_ |= 0x00000008; parameter_ = other.parameter_; onChanged(); } if (other.hasRemoteAddress()) { bitField0_ |= 0x00000010; remoteAddress_ = other.remoteAddress_; onChanged(); } if (other.hasTraceInfo()) { setTraceInfo(other.getTraceInfo()); } 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 { apsara.odps.cupid.protocol.ProxyAm.RpcRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.RpcRequest) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string clientName = 1; private java.lang.Object clientName_ = ""; /** * optional string clientName = 1; */ public boolean hasClientName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string clientName = 1; */ public java.lang.String getClientName() { java.lang.Object ref = clientName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); clientName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string clientName = 1; */ public com.google.protobuf.ByteString getClientNameBytes() { java.lang.Object ref = clientName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string clientName = 1; */ public Builder setClientName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; clientName_ = value; onChanged(); return this; } /** * optional string clientName = 1; */ public Builder clearClientName() { bitField0_ = (bitField0_ & ~0x00000001); clientName_ = getDefaultInstance().getClientName(); onChanged(); return this; } /** * optional string clientName = 1; */ public Builder setClientNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; clientName_ = value; onChanged(); return this; } // optional string token = 2; private java.lang.Object token_ = ""; /** * optional string token = 2; */ public boolean hasToken() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string token = 2; */ public java.lang.String getToken() { java.lang.Object ref = token_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); token_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string token = 2; */ public com.google.protobuf.ByteString getTokenBytes() { java.lang.Object ref = token_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); token_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string token = 2; */ public Builder setToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; token_ = value; onChanged(); return this; } /** * optional string token = 2; */ public Builder clearToken() { bitField0_ = (bitField0_ & ~0x00000002); token_ = getDefaultInstance().getToken(); onChanged(); return this; } /** * optional string token = 2; */ public Builder setTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; token_ = value; onChanged(); return this; } // optional string method = 3; private java.lang.Object method_ = ""; /** * optional string method = 3; */ public boolean hasMethod() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional string method = 3; */ public java.lang.String getMethod() { java.lang.Object ref = method_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); method_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string method = 3; */ public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string method = 3; */ public Builder setMethod( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; method_ = value; onChanged(); return this; } /** * optional string method = 3; */ public Builder clearMethod() { bitField0_ = (bitField0_ & ~0x00000004); method_ = getDefaultInstance().getMethod(); onChanged(); return this; } /** * optional string method = 3; */ public Builder setMethodBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; method_ = value; onChanged(); return this; } // optional string parameter = 4; private java.lang.Object parameter_ = ""; /** * optional string parameter = 4; */ public boolean hasParameter() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional string parameter = 4; */ public java.lang.String getParameter() { java.lang.Object ref = parameter_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); parameter_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string parameter = 4; */ public com.google.protobuf.ByteString getParameterBytes() { java.lang.Object ref = parameter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parameter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string parameter = 4; */ public Builder setParameter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; parameter_ = value; onChanged(); return this; } /** * optional string parameter = 4; */ public Builder clearParameter() { bitField0_ = (bitField0_ & ~0x00000008); parameter_ = getDefaultInstance().getParameter(); onChanged(); return this; } /** * optional string parameter = 4; */ public Builder setParameterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; parameter_ = value; onChanged(); return this; } // optional string remoteAddress = 5; private java.lang.Object remoteAddress_ = ""; /** * optional string remoteAddress = 5; */ public boolean hasRemoteAddress() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string remoteAddress = 5; */ public java.lang.String getRemoteAddress() { java.lang.Object ref = remoteAddress_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); remoteAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string remoteAddress = 5; */ public com.google.protobuf.ByteString getRemoteAddressBytes() { java.lang.Object ref = remoteAddress_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); remoteAddress_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string remoteAddress = 5; */ public Builder setRemoteAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; remoteAddress_ = value; onChanged(); return this; } /** * optional string remoteAddress = 5; */ public Builder clearRemoteAddress() { bitField0_ = (bitField0_ & ~0x00000010); remoteAddress_ = getDefaultInstance().getRemoteAddress(); onChanged(); return this; } /** * optional string remoteAddress = 5; */ public Builder setRemoteAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; remoteAddress_ = value; onChanged(); return this; } // optional int64 traceInfo = 6; private long traceInfo_ ; /** * optional int64 traceInfo = 6; */ public boolean hasTraceInfo() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional int64 traceInfo = 6; */ public long getTraceInfo() { return traceInfo_; } /** * optional int64 traceInfo = 6; */ public Builder setTraceInfo(long value) { bitField0_ |= 0x00000020; traceInfo_ = value; onChanged(); return this; } /** * optional int64 traceInfo = 6; */ public Builder clearTraceInfo() { bitField0_ = (bitField0_ & ~0x00000020); traceInfo_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.RpcRequest) } static { defaultInstance = new RpcRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.RpcRequest) } public interface RpcResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int32 retCode = 1; /** * optional int32 retCode = 1; */ boolean hasRetCode(); /** * optional int32 retCode = 1; */ int getRetCode(); // optional string result = 2; /** * optional string result = 2; */ boolean hasResult(); /** * optional string result = 2; */ java.lang.String getResult(); /** * optional string result = 2; */ com.google.protobuf.ByteString getResultBytes(); } /** * Protobuf type {@code apsara.odps.cupid.protocol.RpcResponse} */ public static final class RpcResponse extends com.google.protobuf.GeneratedMessage implements RpcResponseOrBuilder { // Use RpcResponse.newBuilder() to construct. private RpcResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpcResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpcResponse defaultInstance; public static RpcResponse getDefaultInstance() { return defaultInstance; } public RpcResponse getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpcResponse( 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; retCode_ = input.readInt32(); break; } case 18: { bitField0_ |= 0x00000002; result_ = input.readBytes(); 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 apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RpcResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RpcResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.RpcResponse.class, apsara.odps.cupid.protocol.ProxyAm.RpcResponse.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RpcResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpcResponse(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // optional int32 retCode = 1; public static final int RETCODE_FIELD_NUMBER = 1; private int retCode_; /** * optional int32 retCode = 1; */ public boolean hasRetCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 retCode = 1; */ public int getRetCode() { return retCode_; } // optional string result = 2; public static final int RESULT_FIELD_NUMBER = 2; private java.lang.Object result_; /** * optional string result = 2; */ public boolean hasResult() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string result = 2; */ public java.lang.String getResult() { java.lang.Object ref = result_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { result_ = s; } return s; } } /** * optional string result = 2; */ public com.google.protobuf.ByteString getResultBytes() { java.lang.Object ref = result_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); result_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { retCode_ = 0; result_ = ""; } 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(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, retCode_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getResultBytes()); } 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, retCode_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getResultBytes()); } 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 apsara.odps.cupid.protocol.ProxyAm.RpcResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.RpcResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.RpcResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static apsara.odps.cupid.protocol.ProxyAm.RpcResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.RpcResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.RpcResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.RpcResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.RpcResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static apsara.odps.cupid.protocol.ProxyAm.RpcResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static apsara.odps.cupid.protocol.ProxyAm.RpcResponse 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(apsara.odps.cupid.protocol.ProxyAm.RpcResponse 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 apsara.odps.cupid.protocol.RpcResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements apsara.odps.cupid.protocol.ProxyAm.RpcResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RpcResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RpcResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( apsara.odps.cupid.protocol.ProxyAm.RpcResponse.class, apsara.odps.cupid.protocol.ProxyAm.RpcResponse.Builder.class); } // Construct using apsara.odps.cupid.protocol.ProxyAm.RpcResponse.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(); retCode_ = 0; bitField0_ = (bitField0_ & ~0x00000001); result_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return apsara.odps.cupid.protocol.ProxyAm.internal_static_apsara_odps_cupid_protocol_RpcResponse_descriptor; } public apsara.odps.cupid.protocol.ProxyAm.RpcResponse getDefaultInstanceForType() { return apsara.odps.cupid.protocol.ProxyAm.RpcResponse.getDefaultInstance(); } public apsara.odps.cupid.protocol.ProxyAm.RpcResponse build() { apsara.odps.cupid.protocol.ProxyAm.RpcResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public apsara.odps.cupid.protocol.ProxyAm.RpcResponse buildPartial() { apsara.odps.cupid.protocol.ProxyAm.RpcResponse result = new apsara.odps.cupid.protocol.ProxyAm.RpcResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.retCode_ = retCode_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.result_ = result_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof apsara.odps.cupid.protocol.ProxyAm.RpcResponse) { return mergeFrom((apsara.odps.cupid.protocol.ProxyAm.RpcResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(apsara.odps.cupid.protocol.ProxyAm.RpcResponse other) { if (other == apsara.odps.cupid.protocol.ProxyAm.RpcResponse.getDefaultInstance()) return this; if (other.hasRetCode()) { setRetCode(other.getRetCode()); } if (other.hasResult()) { bitField0_ |= 0x00000002; result_ = other.result_; 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 { apsara.odps.cupid.protocol.ProxyAm.RpcResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (apsara.odps.cupid.protocol.ProxyAm.RpcResponse) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 retCode = 1; private int retCode_ ; /** * optional int32 retCode = 1; */ public boolean hasRetCode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 retCode = 1; */ public int getRetCode() { return retCode_; } /** * optional int32 retCode = 1; */ public Builder setRetCode(int value) { bitField0_ |= 0x00000001; retCode_ = value; onChanged(); return this; } /** * optional int32 retCode = 1; */ public Builder clearRetCode() { bitField0_ = (bitField0_ & ~0x00000001); retCode_ = 0; onChanged(); return this; } // optional string result = 2; private java.lang.Object result_ = ""; /** * optional string result = 2; */ public boolean hasResult() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string result = 2; */ public java.lang.String getResult() { java.lang.Object ref = result_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); result_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string result = 2; */ public com.google.protobuf.ByteString getResultBytes() { java.lang.Object ref = result_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); result_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string result = 2; */ public Builder setResult( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; result_ = value; onChanged(); return this; } /** * optional string result = 2; */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000002); result_ = getDefaultInstance().getResult(); onChanged(); return this; } /** * optional string result = 2; */ public Builder setResultBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; result_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.RpcResponse) } static { defaultInstance = new RpcResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.RpcResponse) } /** * Protobuf service {@code apsara.odps.cupid.protocol.ProxyAmService} */ public static abstract class ProxyAmService implements com.google.protobuf.Service { protected ProxyAmService() {} public interface Interface { /** * rpc RequireResource(.apsara.odps.cupid.protocol.RequireResourceRequest) returns (.apsara.odps.cupid.protocol.Int); */ public abstract void requireResource( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest request, com.google.protobuf.RpcCallback done); /** * rpc SendWorkerList(.apsara.odps.cupid.protocol.SendWorkerListRequest) returns (.apsara.odps.cupid.protocol.Int); */ public abstract void sendWorkerList( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest request, com.google.protobuf.RpcCallback done); /** * rpc AddRole(.apsara.odps.cupid.protocol.AddRoleRequest) returns (.apsara.odps.cupid.protocol.Int); */ public abstract void addRole( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest request, com.google.protobuf.RpcCallback done); /** * rpc RemoveRole(.apsara.odps.cupid.protocol.String) returns (.apsara.odps.cupid.protocol.Int); */ public abstract void removeRole( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.String request, com.google.protobuf.RpcCallback done); /** * rpc GetUserName(.apsara.odps.cupid.protocol.Void) returns (.apsara.odps.cupid.protocol.String); */ public abstract void getUserName( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.Void request, com.google.protobuf.RpcCallback done); /** * rpc GetAppName(.apsara.odps.cupid.protocol.Void) returns (.apsara.odps.cupid.protocol.String); */ public abstract void getAppName( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.Void request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new ProxyAmService() { @java.lang.Override public void requireResource( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest request, com.google.protobuf.RpcCallback done) { impl.requireResource(controller, request, done); } @java.lang.Override public void sendWorkerList( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest request, com.google.protobuf.RpcCallback done) { impl.sendWorkerList(controller, request, done); } @java.lang.Override public void addRole( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest request, com.google.protobuf.RpcCallback done) { impl.addRole(controller, request, done); } @java.lang.Override public void removeRole( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.String request, com.google.protobuf.RpcCallback done) { impl.removeRole(controller, request, done); } @java.lang.Override public void getUserName( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.Void request, com.google.protobuf.RpcCallback done) { impl.getUserName(controller, request, done); } @java.lang.Override public void getAppName( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.Void request, com.google.protobuf.RpcCallback done) { impl.getAppName(controller, request, done); } }; } public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request) throws com.google.protobuf.ServiceException { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callBlockingMethod() given method descriptor for " + "wrong service type."); } switch(method.getIndex()) { case 0: return impl.requireResource(controller, (apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest)request); case 1: return impl.sendWorkerList(controller, (apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest)request); case 2: return impl.addRole(controller, (apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest)request); case 3: return impl.removeRole(controller, (apsara.odps.cupid.protocol.ProxyAm.String)request); case 4: return impl.getUserName(controller, (apsara.odps.cupid.protocol.ProxyAm.Void)request); case 5: return impl.getAppName(controller, (apsara.odps.cupid.protocol.ProxyAm.Void)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest.getDefaultInstance(); case 1: return apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest.getDefaultInstance(); case 2: return apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest.getDefaultInstance(); case 3: return apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance(); case 4: return apsara.odps.cupid.protocol.ProxyAm.Void.getDefaultInstance(); case 5: return apsara.odps.cupid.protocol.ProxyAm.Void.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance(); case 1: return apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance(); case 2: return apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance(); case 3: return apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance(); case 4: return apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance(); case 5: return apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } /** * rpc RequireResource(.apsara.odps.cupid.protocol.RequireResourceRequest) returns (.apsara.odps.cupid.protocol.Int); */ public abstract void requireResource( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest request, com.google.protobuf.RpcCallback done); /** * rpc SendWorkerList(.apsara.odps.cupid.protocol.SendWorkerListRequest) returns (.apsara.odps.cupid.protocol.Int); */ public abstract void sendWorkerList( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest request, com.google.protobuf.RpcCallback done); /** * rpc AddRole(.apsara.odps.cupid.protocol.AddRoleRequest) returns (.apsara.odps.cupid.protocol.Int); */ public abstract void addRole( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest request, com.google.protobuf.RpcCallback done); /** * rpc RemoveRole(.apsara.odps.cupid.protocol.String) returns (.apsara.odps.cupid.protocol.Int); */ public abstract void removeRole( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.String request, com.google.protobuf.RpcCallback done); /** * rpc GetUserName(.apsara.odps.cupid.protocol.Void) returns (.apsara.odps.cupid.protocol.String); */ public abstract void getUserName( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.Void request, com.google.protobuf.RpcCallback done); /** * rpc GetAppName(.apsara.odps.cupid.protocol.Void) returns (.apsara.odps.cupid.protocol.String); */ public abstract void getAppName( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.Void request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.getDescriptor().getServices().get(0); } public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback< com.google.protobuf.Message> done) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callMethod() given method descriptor for wrong " + "service type."); } switch(method.getIndex()) { case 0: this.requireResource(controller, (apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 1: this.sendWorkerList(controller, (apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 2: this.addRole(controller, (apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 3: this.removeRole(controller, (apsara.odps.cupid.protocol.ProxyAm.String)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 4: this.getUserName(controller, (apsara.odps.cupid.protocol.ProxyAm.Void)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 5: this.getAppName(controller, (apsara.odps.cupid.protocol.ProxyAm.Void)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest.getDefaultInstance(); case 1: return apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest.getDefaultInstance(); case 2: return apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest.getDefaultInstance(); case 3: return apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance(); case 4: return apsara.odps.cupid.protocol.ProxyAm.Void.getDefaultInstance(); case 5: return apsara.odps.cupid.protocol.ProxyAm.Void.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance(); case 1: return apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance(); case 2: return apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance(); case 3: return apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance(); case 4: return apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance(); case 5: return apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends apsara.odps.cupid.protocol.ProxyAm.ProxyAmService implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final com.google.protobuf.RpcChannel channel; public com.google.protobuf.RpcChannel getChannel() { return channel; } public void requireResource( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, apsara.odps.cupid.protocol.ProxyAm.Int.class, apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance())); } public void sendWorkerList( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(1), controller, request, apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, apsara.odps.cupid.protocol.ProxyAm.Int.class, apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance())); } public void addRole( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(2), controller, request, apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, apsara.odps.cupid.protocol.ProxyAm.Int.class, apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance())); } public void removeRole( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.String request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(3), controller, request, apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, apsara.odps.cupid.protocol.ProxyAm.Int.class, apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance())); } public void getUserName( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.Void request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(4), controller, request, apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, apsara.odps.cupid.protocol.ProxyAm.String.class, apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance())); } public void getAppName( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.Void request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(5), controller, request, apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, apsara.odps.cupid.protocol.ProxyAm.String.class, apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public apsara.odps.cupid.protocol.ProxyAm.Int requireResource( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest request) throws com.google.protobuf.ServiceException; public apsara.odps.cupid.protocol.ProxyAm.Int sendWorkerList( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest request) throws com.google.protobuf.ServiceException; public apsara.odps.cupid.protocol.ProxyAm.Int addRole( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest request) throws com.google.protobuf.ServiceException; public apsara.odps.cupid.protocol.ProxyAm.Int removeRole( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.String request) throws com.google.protobuf.ServiceException; public apsara.odps.cupid.protocol.ProxyAm.String getUserName( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.Void request) throws com.google.protobuf.ServiceException; public apsara.odps.cupid.protocol.ProxyAm.String getAppName( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.Void request) throws com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; public apsara.odps.cupid.protocol.ProxyAm.Int requireResource( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.RequireResourceRequest request) throws com.google.protobuf.ServiceException { return (apsara.odps.cupid.protocol.ProxyAm.Int) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance()); } public apsara.odps.cupid.protocol.ProxyAm.Int sendWorkerList( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.SendWorkerListRequest request) throws com.google.protobuf.ServiceException { return (apsara.odps.cupid.protocol.ProxyAm.Int) channel.callBlockingMethod( getDescriptor().getMethods().get(1), controller, request, apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance()); } public apsara.odps.cupid.protocol.ProxyAm.Int addRole( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.AddRoleRequest request) throws com.google.protobuf.ServiceException { return (apsara.odps.cupid.protocol.ProxyAm.Int) channel.callBlockingMethod( getDescriptor().getMethods().get(2), controller, request, apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance()); } public apsara.odps.cupid.protocol.ProxyAm.Int removeRole( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.String request) throws com.google.protobuf.ServiceException { return (apsara.odps.cupid.protocol.ProxyAm.Int) channel.callBlockingMethod( getDescriptor().getMethods().get(3), controller, request, apsara.odps.cupid.protocol.ProxyAm.Int.getDefaultInstance()); } public apsara.odps.cupid.protocol.ProxyAm.String getUserName( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.Void request) throws com.google.protobuf.ServiceException { return (apsara.odps.cupid.protocol.ProxyAm.String) channel.callBlockingMethod( getDescriptor().getMethods().get(4), controller, request, apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance()); } public apsara.odps.cupid.protocol.ProxyAm.String getAppName( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.Void request) throws com.google.protobuf.ServiceException { return (apsara.odps.cupid.protocol.ProxyAm.String) channel.callBlockingMethod( getDescriptor().getMethods().get(5), controller, request, apsara.odps.cupid.protocol.ProxyAm.String.getDefaultInstance()); } } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.ProxyAmService) } /** * Protobuf service {@code apsara.odps.cupid.protocol.ProxyAmCallbackService} */ public static abstract class ProxyAmCallbackService implements com.google.protobuf.Service { protected ProxyAmCallbackService() {} public interface Interface { /** * rpc HandleEventCallback(.apsara.odps.cupid.protocol.EventInfo) returns (.apsara.odps.cupid.protocol.Void); */ public abstract void handleEventCallback( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.EventInfo request, com.google.protobuf.RpcCallback done); /** * rpc HandleRpcCallback(.apsara.odps.cupid.protocol.RpcRequest) returns (.apsara.odps.cupid.protocol.RpcResponse); */ public abstract void handleRpcCallback( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.RpcRequest request, com.google.protobuf.RpcCallback done); } public static com.google.protobuf.Service newReflectiveService( final Interface impl) { return new ProxyAmCallbackService() { @java.lang.Override public void handleEventCallback( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.EventInfo request, com.google.protobuf.RpcCallback done) { impl.handleEventCallback(controller, request, done); } @java.lang.Override public void handleRpcCallback( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.RpcRequest request, com.google.protobuf.RpcCallback done) { impl.handleRpcCallback(controller, request, done); } }; } public static com.google.protobuf.BlockingService newReflectiveBlockingService(final BlockingInterface impl) { return new com.google.protobuf.BlockingService() { public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final com.google.protobuf.Message callBlockingMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request) throws com.google.protobuf.ServiceException { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callBlockingMethod() given method descriptor for " + "wrong service type."); } switch(method.getIndex()) { case 0: return impl.handleEventCallback(controller, (apsara.odps.cupid.protocol.ProxyAm.EventInfo)request); case 1: return impl.handleRpcCallback(controller, (apsara.odps.cupid.protocol.ProxyAm.RpcRequest)request); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return apsara.odps.cupid.protocol.ProxyAm.EventInfo.getDefaultInstance(); case 1: return apsara.odps.cupid.protocol.ProxyAm.RpcRequest.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return apsara.odps.cupid.protocol.ProxyAm.Void.getDefaultInstance(); case 1: return apsara.odps.cupid.protocol.ProxyAm.RpcResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } }; } /** * rpc HandleEventCallback(.apsara.odps.cupid.protocol.EventInfo) returns (.apsara.odps.cupid.protocol.Void); */ public abstract void handleEventCallback( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.EventInfo request, com.google.protobuf.RpcCallback done); /** * rpc HandleRpcCallback(.apsara.odps.cupid.protocol.RpcRequest) returns (.apsara.odps.cupid.protocol.RpcResponse); */ public abstract void handleRpcCallback( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.RpcRequest request, com.google.protobuf.RpcCallback done); public static final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptor() { return apsara.odps.cupid.protocol.ProxyAm.getDescriptor().getServices().get(1); } public final com.google.protobuf.Descriptors.ServiceDescriptor getDescriptorForType() { return getDescriptor(); } public final void callMethod( com.google.protobuf.Descriptors.MethodDescriptor method, com.google.protobuf.RpcController controller, com.google.protobuf.Message request, com.google.protobuf.RpcCallback< com.google.protobuf.Message> done) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.callMethod() given method descriptor for wrong " + "service type."); } switch(method.getIndex()) { case 0: this.handleEventCallback(controller, (apsara.odps.cupid.protocol.ProxyAm.EventInfo)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; case 1: this.handleRpcCallback(controller, (apsara.odps.cupid.protocol.ProxyAm.RpcRequest)request, com.google.protobuf.RpcUtil.specializeCallback( done)); return; default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getRequestPrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getRequestPrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return apsara.odps.cupid.protocol.ProxyAm.EventInfo.getDefaultInstance(); case 1: return apsara.odps.cupid.protocol.ProxyAm.RpcRequest.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public final com.google.protobuf.Message getResponsePrototype( com.google.protobuf.Descriptors.MethodDescriptor method) { if (method.getService() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "Service.getResponsePrototype() given method " + "descriptor for wrong service type."); } switch(method.getIndex()) { case 0: return apsara.odps.cupid.protocol.ProxyAm.Void.getDefaultInstance(); case 1: return apsara.odps.cupid.protocol.ProxyAm.RpcResponse.getDefaultInstance(); default: throw new java.lang.AssertionError("Can't get here."); } } public static Stub newStub( com.google.protobuf.RpcChannel channel) { return new Stub(channel); } public static final class Stub extends apsara.odps.cupid.protocol.ProxyAm.ProxyAmCallbackService implements Interface { private Stub(com.google.protobuf.RpcChannel channel) { this.channel = channel; } private final com.google.protobuf.RpcChannel channel; public com.google.protobuf.RpcChannel getChannel() { return channel; } public void handleEventCallback( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.EventInfo request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(0), controller, request, apsara.odps.cupid.protocol.ProxyAm.Void.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, apsara.odps.cupid.protocol.ProxyAm.Void.class, apsara.odps.cupid.protocol.ProxyAm.Void.getDefaultInstance())); } public void handleRpcCallback( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.RpcRequest request, com.google.protobuf.RpcCallback done) { channel.callMethod( getDescriptor().getMethods().get(1), controller, request, apsara.odps.cupid.protocol.ProxyAm.RpcResponse.getDefaultInstance(), com.google.protobuf.RpcUtil.generalizeCallback( done, apsara.odps.cupid.protocol.ProxyAm.RpcResponse.class, apsara.odps.cupid.protocol.ProxyAm.RpcResponse.getDefaultInstance())); } } public static BlockingInterface newBlockingStub( com.google.protobuf.BlockingRpcChannel channel) { return new BlockingStub(channel); } public interface BlockingInterface { public apsara.odps.cupid.protocol.ProxyAm.Void handleEventCallback( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.EventInfo request) throws com.google.protobuf.ServiceException; public apsara.odps.cupid.protocol.ProxyAm.RpcResponse handleRpcCallback( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.RpcRequest request) throws com.google.protobuf.ServiceException; } private static final class BlockingStub implements BlockingInterface { private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) { this.channel = channel; } private final com.google.protobuf.BlockingRpcChannel channel; public apsara.odps.cupid.protocol.ProxyAm.Void handleEventCallback( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.EventInfo request) throws com.google.protobuf.ServiceException { return (apsara.odps.cupid.protocol.ProxyAm.Void) channel.callBlockingMethod( getDescriptor().getMethods().get(0), controller, request, apsara.odps.cupid.protocol.ProxyAm.Void.getDefaultInstance()); } public apsara.odps.cupid.protocol.ProxyAm.RpcResponse handleRpcCallback( com.google.protobuf.RpcController controller, apsara.odps.cupid.protocol.ProxyAm.RpcRequest request) throws com.google.protobuf.ServiceException { return (apsara.odps.cupid.protocol.ProxyAm.RpcResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(1), controller, request, apsara.odps.cupid.protocol.ProxyAm.RpcResponse.getDefaultInstance()); } } // @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.ProxyAmCallbackService) } private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_Void_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_Void_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_String_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_String_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_Int_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_Int_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_Bool_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_Bool_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_StringToStringPair_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_StringToStringPair_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_ResourceLocation_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_ResourceLocation_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_ResourceAskItem_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_ResourceAskItem_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_ResourceMachineItem_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_ResourceMachineItem_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_ResourceBlacklistItem_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_ResourceBlacklistItem_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_ResourceRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_ResourceRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_ResourceRequestItem_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_ResourceRequestItem_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_RequireResourceRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_RequireResourceRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_ResourceDescItem_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_ResourceDescItem_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_WorkerProcessInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_WorkerProcessInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_WorkerItem_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_WorkerItem_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_WorkerList_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_WorkerList_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_WorkerListItem_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_WorkerListItem_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_SendWorkerListRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_SendWorkerListRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_AddRoleRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_AddRoleRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_AssignmentItem_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_AssignmentItem_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_RoleMachineItem_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_RoleMachineItem_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_AssignedResourceChangeEventInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_AssignedResourceChangeEventInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_SendWorkerListResponseEventInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_SendWorkerListResponseEventInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_WorkerFailureEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_WorkerFailureEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_OverUsedWorkItem_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_OverUsedWorkItem_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_KilledOverUsedItem_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_KilledOverUsedItem_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_WorkerFailureEventInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_WorkerFailureEventInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_EventInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_EventInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_RpcRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_RpcRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_apsara_odps_cupid_protocol_RpcResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_apsara_odps_cupid_protocol_RpcResponse_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\016proxy_am.proto\022\032apsara.odps.cupid.prot" + "ocol\"\006\n\004Void\"\027\n\006String\022\r\n\005value\030\001 \001(\t\"\024\n" + "\003Int\022\r\n\005value\030\001 \001(\005\"\025\n\004Bool\022\r\n\005value\030\001 \001" + "(\010\"0\n\022StringToStringPair\022\013\n\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t\".\n\020ResourceLocation\022\014\n\004type" + "\030\001 \001(\005\022\014\n\004name\030\002 \001(\t\"`\n\017ResourceAskItem\022" + ">\n\010location\030\001 \001(\0132,.apsara.odps.cupid.pr" + "otocol.ResourceLocation\022\r\n\005count\030\002 \001(\005\"5" + "\n\023ResourceMachineItem\022\017\n\007machine\030\001 \001(\t\022\r" + "\n\005count\030\002 \001(\005\"d\n\025ResourceBlacklistItem\022>", "\n\010location\030\001 \001(\0132,.apsara.odps.cupid.pro" + "tocol.ResourceLocation\022\013\n\003add\030\002 \001(\010\"\353\001\n\017" + "ResourceRequest\0229\n\004asks\030\001 \003(\0132+.apsara.o" + "dps.cupid.protocol.ResourceAskItem\022A\n\010re" + "leases\030\002 \003(\0132/.apsara.odps.cupid.protoco" + "l.ResourceMachineItem\022D\n\tblacklist\030\003 \003(\013" + "21.apsara.odps.cupid.protocol.ResourceBl" + "acklistItem\022\024\n\014maxSlotCount\030\004 \001(\005\"m\n\023Res" + "ourceRequestItem\022\020\n\010roleName\030\001 \001(\t\022D\n\017re" + "sourceRequest\030\002 \001(\0132+.apsara.odps.cupid.", "protocol.ResourceRequest\"Z\n\026RequireResou" + "rceRequest\022@\n\007resReqs\030\001 \003(\0132/.apsara.odp" + "s.cupid.protocol.ResourceRequestItem\"3\n\020" + "ResourceDescItem\022\020\n\010resource\030\001 \001(\t\022\r\n\005co" + "unt\030\002 \001(\003\"\277\001\n\021WorkerProcessInfo\022?\n\tresou" + "rces\030\001 \003(\0132,.apsara.odps.cupid.protocol." + "ResourceDescItem\022>\n\006params\030\002 \003(\0132..apsar" + "a.odps.cupid.protocol.StringToStringPair" + "\022\016\n\006slotId\030\003 \001(\003\022\031\n\021resHardLimitRatio\030\004 " + "\001(\001\"a\n\nWorkerItem\022\022\n\nworkerName\030\001 \001(\t\022?\n", "\010procInfo\030\002 \001(\0132-.apsara.odps.cupid.prot" + "ocol.WorkerProcessInfo\"Y\n\nWorkerList\0229\n\t" + "startList\030\001 \003(\0132&.apsara.odps.cupid.prot" + "ocol.WorkerItem\022\020\n\010stopList\030\002 \003(\t\"^\n\016Wor" + "kerListItem\022\020\n\010roleName\030\001 \001(\t\022:\n\nworkerL" + "ist\030\002 \001(\0132&.apsara.odps.cupid.protocol.W" + "orkerList\"W\n\025SendWorkerListRequest\022>\n\nwo" + "rkerList\030\001 \003(\0132*.apsara.odps.cupid.proto" + "col.WorkerListItem\"\210\001\n\016AddRoleRequest\022\020\n" + "\010roleName\030\001 \001(\t\022\016\n\006slotId\030\002 \001(\003\022\020\n\010isSta", "ble\030\003 \001(\010\022B\n\014resourceDesc\030\004 \003(\0132,.apsara" + ".odps.cupid.protocol.ResourceDescItem\"f\n" + "\016AssignmentItem\022\020\n\010roleName\030\001 \001(\t\022B\n\tres" + "ources\030\002 \003(\0132/.apsara.odps.cupid.protoco" + "l.ResourceMachineItem\"5\n\017RoleMachineItem" + "\022\020\n\010roleName\030\001 \001(\t\022\020\n\010machines\030\002 \003(\t\"\245\003\n" + "\037AssignedResourceChangeEventInfo\022>\n\nassi" + "gnList\030\001 \003(\0132*.apsara.odps.cupid.protoco" + "l.AssignmentItem\022G\n\022timeoutMachineList\030\002" + " \003(\0132+.apsara.odps.cupid.protocol.RoleMa", "chineItem\022E\n\020aliveMachineList\030\003 \003(\0132+.ap" + "sara.odps.cupid.protocol.RoleMachineItem" + "\022X\n#decrStableMachineInClusterBlacklist\030" + "\004 \003(\0132+.apsara.odps.cupid.protocol.RoleM" + "achineItem\022X\n#incrStableMachineInCluster" + "Blacklist\030\005 \003(\0132+.apsara.odps.cupid.prot" + "ocol.RoleMachineItem\"R\n\037SendWorkerListRe" + "sponseEventInfo\022\027\n\017startWorkerList\030\001 \003(\t" + "\022\026\n\016stopWorkerList\030\002 \003(\t\"Z\n\022WorkerFailur" + "eEntry\022\022\n\nworkerName\030\001 \001(\t\022\013\n\003pid\030\002 \001(\005\022", "\021\n\terrorCode\030\003 \001(\005\022\020\n\010extraMsg\030\004 \001(\t\"\306\001\n" + "\020OverUsedWorkItem\022\023\n\013iKilledTime\030\001 \001(\003\022\022" + "\n\nkilledTime\030\002 \001(\t\022E\n\017plannedResource\030\003 " + "\003(\0132,.apsara.odps.cupid.protocol.Resourc" + "eDescItem\022B\n\014usedResource\030\004 \003(\0132,.apsara" + ".odps.cupid.protocol.ResourceDescItem\"d\n" + "\022KilledOverUsedItem\022\022\n\nworkerName\030\001 \001(\t\022" + ":\n\004item\030\002 \001(\0132,.apsara.odps.cupid.protoc" + "ol.OverUsedWorkItem\"\363\001\n\026WorkerFailureEve" + "ntInfo\022H\n\020killedByTuboList\030\001 \003(\0132..apsar", "a.odps.cupid.protocol.WorkerFailureEntry" + "\022C\n\013crashedList\030\002 \003(\0132..apsara.odps.cupi" + "d.protocol.WorkerFailureEntry\022J\n\022killedO" + "verUsedList\030\003 \003(\0132..apsara.odps.cupid.pr" + "otocol.KilledOverUsedItem\"\253\002\n\tEventInfo\022" + "d\n\037assignedResourceChangeEventInfo\030\001 \001(\013" + "2;.apsara.odps.cupid.protocol.AssignedRe" + "sourceChangeEventInfo\022d\n\037sendWorkerListR" + "esponseEventInfo\030\004 \001(\0132;.apsara.odps.cup" + "id.protocol.SendWorkerListResponseEventI", "nfo\022R\n\026workerFailureEventInfo\030\005 \001(\01322.ap" + "sara.odps.cupid.protocol.WorkerFailureEv" + "entInfo\"|\n\nRpcRequest\022\022\n\nclientName\030\001 \001(" + "\t\022\r\n\005token\030\002 \001(\t\022\016\n\006method\030\003 \001(\t\022\021\n\tpara" + "meter\030\004 \001(\t\022\025\n\rremoteAddress\030\005 \001(\t\022\021\n\ttr" + "aceInfo\030\006 \001(\003\".\n\013RpcResponse\022\017\n\007retCode\030" + "\001 \001(\005\022\016\n\006result\030\002 \001(\t2\262\004\n\016ProxyAmService" + "\022f\n\017RequireResource\0222.apsara.odps.cupid." + "protocol.RequireResourceRequest\032\037.apsara" + ".odps.cupid.protocol.Int\022d\n\016SendWorkerLi", "st\0221.apsara.odps.cupid.protocol.SendWork" + "erListRequest\032\037.apsara.odps.cupid.protoc" + "ol.Int\022V\n\007AddRole\022*.apsara.odps.cupid.pr" + "otocol.AddRoleRequest\032\037.apsara.odps.cupi" + "d.protocol.Int\022Q\n\nRemoveRole\022\".apsara.od" + "ps.cupid.protocol.String\032\037.apsara.odps.c" + "upid.protocol.Int\022S\n\013GetUserName\022 .apsar" + "a.odps.cupid.protocol.Void\032\".apsara.odps" + ".cupid.protocol.String\022R\n\nGetAppName\022 .a" + "psara.odps.cupid.protocol.Void\032\".apsara.", "odps.cupid.protocol.String2\336\001\n\026ProxyAmCa" + "llbackService\022^\n\023HandleEventCallback\022%.a" + "psara.odps.cupid.protocol.EventInfo\032 .ap" + "sara.odps.cupid.protocol.Void\022d\n\021HandleR" + "pcCallback\022&.apsara.odps.cupid.protocol." + "RpcRequest\032\'.apsara.odps.cupid.protocol." + "RpcResponseB\006\200\001\001\210\001\001" }; 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_apsara_odps_cupid_protocol_Void_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_apsara_odps_cupid_protocol_Void_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_Void_descriptor, new java.lang.String[] { }); internal_static_apsara_odps_cupid_protocol_String_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_apsara_odps_cupid_protocol_String_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_String_descriptor, new java.lang.String[] { "Value", }); internal_static_apsara_odps_cupid_protocol_Int_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_apsara_odps_cupid_protocol_Int_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_Int_descriptor, new java.lang.String[] { "Value", }); internal_static_apsara_odps_cupid_protocol_Bool_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_apsara_odps_cupid_protocol_Bool_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_Bool_descriptor, new java.lang.String[] { "Value", }); internal_static_apsara_odps_cupid_protocol_StringToStringPair_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_apsara_odps_cupid_protocol_StringToStringPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_StringToStringPair_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_apsara_odps_cupid_protocol_ResourceLocation_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_apsara_odps_cupid_protocol_ResourceLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_ResourceLocation_descriptor, new java.lang.String[] { "Type", "Name", }); internal_static_apsara_odps_cupid_protocol_ResourceAskItem_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_apsara_odps_cupid_protocol_ResourceAskItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_ResourceAskItem_descriptor, new java.lang.String[] { "Location", "Count", }); internal_static_apsara_odps_cupid_protocol_ResourceMachineItem_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_apsara_odps_cupid_protocol_ResourceMachineItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_ResourceMachineItem_descriptor, new java.lang.String[] { "Machine", "Count", }); internal_static_apsara_odps_cupid_protocol_ResourceBlacklistItem_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_apsara_odps_cupid_protocol_ResourceBlacklistItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_ResourceBlacklistItem_descriptor, new java.lang.String[] { "Location", "Add", }); internal_static_apsara_odps_cupid_protocol_ResourceRequest_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_apsara_odps_cupid_protocol_ResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_ResourceRequest_descriptor, new java.lang.String[] { "Asks", "Releases", "Blacklist", "MaxSlotCount", }); internal_static_apsara_odps_cupid_protocol_ResourceRequestItem_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_apsara_odps_cupid_protocol_ResourceRequestItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_ResourceRequestItem_descriptor, new java.lang.String[] { "RoleName", "ResourceRequest", }); internal_static_apsara_odps_cupid_protocol_RequireResourceRequest_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_apsara_odps_cupid_protocol_RequireResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_RequireResourceRequest_descriptor, new java.lang.String[] { "ResReqs", }); internal_static_apsara_odps_cupid_protocol_ResourceDescItem_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_apsara_odps_cupid_protocol_ResourceDescItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_ResourceDescItem_descriptor, new java.lang.String[] { "Resource", "Count", }); internal_static_apsara_odps_cupid_protocol_WorkerProcessInfo_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_apsara_odps_cupid_protocol_WorkerProcessInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_WorkerProcessInfo_descriptor, new java.lang.String[] { "Resources", "Params", "SlotId", "ResHardLimitRatio", }); internal_static_apsara_odps_cupid_protocol_WorkerItem_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_apsara_odps_cupid_protocol_WorkerItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_WorkerItem_descriptor, new java.lang.String[] { "WorkerName", "ProcInfo", }); internal_static_apsara_odps_cupid_protocol_WorkerList_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_apsara_odps_cupid_protocol_WorkerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_WorkerList_descriptor, new java.lang.String[] { "StartList", "StopList", }); internal_static_apsara_odps_cupid_protocol_WorkerListItem_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_apsara_odps_cupid_protocol_WorkerListItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_WorkerListItem_descriptor, new java.lang.String[] { "RoleName", "WorkerList", }); internal_static_apsara_odps_cupid_protocol_SendWorkerListRequest_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_apsara_odps_cupid_protocol_SendWorkerListRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_SendWorkerListRequest_descriptor, new java.lang.String[] { "WorkerList", }); internal_static_apsara_odps_cupid_protocol_AddRoleRequest_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_apsara_odps_cupid_protocol_AddRoleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_AddRoleRequest_descriptor, new java.lang.String[] { "RoleName", "SlotId", "IsStable", "ResourceDesc", }); internal_static_apsara_odps_cupid_protocol_AssignmentItem_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_apsara_odps_cupid_protocol_AssignmentItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_AssignmentItem_descriptor, new java.lang.String[] { "RoleName", "Resources", }); internal_static_apsara_odps_cupid_protocol_RoleMachineItem_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_apsara_odps_cupid_protocol_RoleMachineItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_RoleMachineItem_descriptor, new java.lang.String[] { "RoleName", "Machines", }); internal_static_apsara_odps_cupid_protocol_AssignedResourceChangeEventInfo_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_apsara_odps_cupid_protocol_AssignedResourceChangeEventInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_AssignedResourceChangeEventInfo_descriptor, new java.lang.String[] { "AssignList", "TimeoutMachineList", "AliveMachineList", "DecrStableMachineInClusterBlacklist", "IncrStableMachineInClusterBlacklist", }); internal_static_apsara_odps_cupid_protocol_SendWorkerListResponseEventInfo_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_apsara_odps_cupid_protocol_SendWorkerListResponseEventInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_SendWorkerListResponseEventInfo_descriptor, new java.lang.String[] { "StartWorkerList", "StopWorkerList", }); internal_static_apsara_odps_cupid_protocol_WorkerFailureEntry_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_apsara_odps_cupid_protocol_WorkerFailureEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_WorkerFailureEntry_descriptor, new java.lang.String[] { "WorkerName", "Pid", "ErrorCode", "ExtraMsg", }); internal_static_apsara_odps_cupid_protocol_OverUsedWorkItem_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_apsara_odps_cupid_protocol_OverUsedWorkItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_OverUsedWorkItem_descriptor, new java.lang.String[] { "IKilledTime", "KilledTime", "PlannedResource", "UsedResource", }); internal_static_apsara_odps_cupid_protocol_KilledOverUsedItem_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_apsara_odps_cupid_protocol_KilledOverUsedItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_KilledOverUsedItem_descriptor, new java.lang.String[] { "WorkerName", "Item", }); internal_static_apsara_odps_cupid_protocol_WorkerFailureEventInfo_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_apsara_odps_cupid_protocol_WorkerFailureEventInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_WorkerFailureEventInfo_descriptor, new java.lang.String[] { "KilledByTuboList", "CrashedList", "KilledOverUsedList", }); internal_static_apsara_odps_cupid_protocol_EventInfo_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_apsara_odps_cupid_protocol_EventInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_EventInfo_descriptor, new java.lang.String[] { "AssignedResourceChangeEventInfo", "SendWorkerListResponseEventInfo", "WorkerFailureEventInfo", }); internal_static_apsara_odps_cupid_protocol_RpcRequest_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_apsara_odps_cupid_protocol_RpcRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_RpcRequest_descriptor, new java.lang.String[] { "ClientName", "Token", "Method", "Parameter", "RemoteAddress", "TraceInfo", }); internal_static_apsara_odps_cupid_protocol_RpcResponse_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_apsara_odps_cupid_protocol_RpcResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_apsara_odps_cupid_protocol_RpcResponse_descriptor, new java.lang.String[] { "RetCode", "Result", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy