Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceAskItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceAskItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceAskItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceAskItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceBlacklistItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceRequestItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.StringToStringPairOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.StringToStringPairOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.StringToStringPair> 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 extends apsara.odps.cupid.protocol.ProxyAm.StringToStringPairOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.WorkerItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.WorkerItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.WorkerItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.WorkerItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.WorkerListItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.WorkerListItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.WorkerListItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.WorkerListItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.AssignmentItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.AssignmentItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.AssignmentItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.AssignmentItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.RoleMachineItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>
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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItem> 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 extends apsara.odps.cupid.protocol.ProxyAm.ResourceDescItemOrBuilder>
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_;
/**
*