apsara.odps.cupid.protocol.YarnClientProtos Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yarnclientparam.proto
package apsara.odps.cupid.protocol;
public final class YarnClientProtos {
private YarnClientProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface GetNewApplicationResponseProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
boolean hasApplicationId();
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto getApplicationId();
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder();
// optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
boolean hasMaximumCapability();
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto getMaximumCapability();
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
apsara.odps.cupid.protocol.YarnClientProtos.ResourceProtoOrBuilder getMaximumCapabilityOrBuilder();
}
/**
* Protobuf type {@code apsara.odps.cupid.protocol.GetNewApplicationResponseProto}
*/
public static final class GetNewApplicationResponseProto extends
com.google.protobuf.GeneratedMessage
implements GetNewApplicationResponseProtoOrBuilder {
// Use GetNewApplicationResponseProto.newBuilder() to construct.
private GetNewApplicationResponseProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetNewApplicationResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetNewApplicationResponseProto defaultInstance;
public static GetNewApplicationResponseProto getDefaultInstance() {
return defaultInstance;
}
public GetNewApplicationResponseProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetNewApplicationResponseProto(
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.YarnClientProtos.ApplicationIdProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = applicationId_.toBuilder();
}
applicationId_ = input.readMessage(apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(applicationId_);
applicationId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = maximumCapability_.toBuilder();
}
maximumCapability_ = input.readMessage(apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maximumCapability_);
maximumCapability_ = 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.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_GetNewApplicationResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return apsara.odps.cupid.protocol.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_GetNewApplicationResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto.class, apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetNewApplicationResponseProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetNewApplicationResponseProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
public static final int APPLICATION_ID_FIELD_NUMBER = 1;
private apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto applicationId_;
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
public apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto getApplicationId() {
return applicationId_;
}
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
public apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
return applicationId_;
}
// optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
public static final int MAXIMUMCAPABILITY_FIELD_NUMBER = 2;
private apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto maximumCapability_;
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
public boolean hasMaximumCapability() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
public apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto getMaximumCapability() {
return maximumCapability_;
}
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
public apsara.odps.cupid.protocol.YarnClientProtos.ResourceProtoOrBuilder getMaximumCapabilityOrBuilder() {
return maximumCapability_;
}
private void initFields() {
applicationId_ = apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.getDefaultInstance();
maximumCapability_ = apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, applicationId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, maximumCapability_);
}
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, applicationId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, maximumCapability_);
}
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.YarnClientProtos.GetNewApplicationResponseProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto 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.YarnClientProtos.GetNewApplicationResponseProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto 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.YarnClientProtos.GetNewApplicationResponseProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto 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.YarnClientProtos.GetNewApplicationResponseProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto 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.YarnClientProtos.GetNewApplicationResponseProto 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.GetNewApplicationResponseProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return apsara.odps.cupid.protocol.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_GetNewApplicationResponseProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return apsara.odps.cupid.protocol.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_GetNewApplicationResponseProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto.class, apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto.Builder.class);
}
// Construct using apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getApplicationIdFieldBuilder();
getMaximumCapabilityFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (applicationIdBuilder_ == null) {
applicationId_ = apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.getDefaultInstance();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (maximumCapabilityBuilder_ == null) {
maximumCapability_ = apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.getDefaultInstance();
} else {
maximumCapabilityBuilder_.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.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_GetNewApplicationResponseProto_descriptor;
}
public apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto getDefaultInstanceForType() {
return apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto.getDefaultInstance();
}
public apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto build() {
apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto buildPartial() {
apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto result = new apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (applicationIdBuilder_ == null) {
result.applicationId_ = applicationId_;
} else {
result.applicationId_ = applicationIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (maximumCapabilityBuilder_ == null) {
result.maximumCapability_ = maximumCapability_;
} else {
result.maximumCapability_ = maximumCapabilityBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto) {
return mergeFrom((apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto other) {
if (other == apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto.getDefaultInstance()) return this;
if (other.hasApplicationId()) {
mergeApplicationId(other.getApplicationId());
}
if (other.hasMaximumCapability()) {
mergeMaximumCapability(other.getMaximumCapability());
}
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.YarnClientProtos.GetNewApplicationResponseProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (apsara.odps.cupid.protocol.YarnClientProtos.GetNewApplicationResponseProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
private apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto applicationId_ = apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto, apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.Builder, apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProtoOrBuilder> applicationIdBuilder_;
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
public boolean hasApplicationId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
public apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto getApplicationId() {
if (applicationIdBuilder_ == null) {
return applicationId_;
} else {
return applicationIdBuilder_.getMessage();
}
}
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
public Builder setApplicationId(apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
applicationId_ = value;
onChanged();
} else {
applicationIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
public Builder setApplicationId(
apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.Builder builderForValue) {
if (applicationIdBuilder_ == null) {
applicationId_ = builderForValue.build();
onChanged();
} else {
applicationIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
public Builder mergeApplicationId(apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto value) {
if (applicationIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
applicationId_ != apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.getDefaultInstance()) {
applicationId_ =
apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.newBuilder(applicationId_).mergeFrom(value).buildPartial();
} else {
applicationId_ = value;
}
onChanged();
} else {
applicationIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
public Builder clearApplicationId() {
if (applicationIdBuilder_ == null) {
applicationId_ = apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.getDefaultInstance();
onChanged();
} else {
applicationIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
public apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.Builder getApplicationIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getApplicationIdFieldBuilder().getBuilder();
}
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
public apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProtoOrBuilder getApplicationIdOrBuilder() {
if (applicationIdBuilder_ != null) {
return applicationIdBuilder_.getMessageOrBuilder();
} else {
return applicationId_;
}
}
/**
* optional .apsara.odps.cupid.protocol.ApplicationIdProto application_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto, apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.Builder, apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProtoOrBuilder>
getApplicationIdFieldBuilder() {
if (applicationIdBuilder_ == null) {
applicationIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto, apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.Builder, apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProtoOrBuilder>(
applicationId_,
getParentForChildren(),
isClean());
applicationId_ = null;
}
return applicationIdBuilder_;
}
// optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
private apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto maximumCapability_ = apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto, apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.Builder, apsara.odps.cupid.protocol.YarnClientProtos.ResourceProtoOrBuilder> maximumCapabilityBuilder_;
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
public boolean hasMaximumCapability() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
public apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto getMaximumCapability() {
if (maximumCapabilityBuilder_ == null) {
return maximumCapability_;
} else {
return maximumCapabilityBuilder_.getMessage();
}
}
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
public Builder setMaximumCapability(apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto value) {
if (maximumCapabilityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maximumCapability_ = value;
onChanged();
} else {
maximumCapabilityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
public Builder setMaximumCapability(
apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.Builder builderForValue) {
if (maximumCapabilityBuilder_ == null) {
maximumCapability_ = builderForValue.build();
onChanged();
} else {
maximumCapabilityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
public Builder mergeMaximumCapability(apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto value) {
if (maximumCapabilityBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
maximumCapability_ != apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.getDefaultInstance()) {
maximumCapability_ =
apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.newBuilder(maximumCapability_).mergeFrom(value).buildPartial();
} else {
maximumCapability_ = value;
}
onChanged();
} else {
maximumCapabilityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
public Builder clearMaximumCapability() {
if (maximumCapabilityBuilder_ == null) {
maximumCapability_ = apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.getDefaultInstance();
onChanged();
} else {
maximumCapabilityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
public apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.Builder getMaximumCapabilityBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getMaximumCapabilityFieldBuilder().getBuilder();
}
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
public apsara.odps.cupid.protocol.YarnClientProtos.ResourceProtoOrBuilder getMaximumCapabilityOrBuilder() {
if (maximumCapabilityBuilder_ != null) {
return maximumCapabilityBuilder_.getMessageOrBuilder();
} else {
return maximumCapability_;
}
}
/**
* optional .apsara.odps.cupid.protocol.ResourceProto maximumCapability = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto, apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.Builder, apsara.odps.cupid.protocol.YarnClientProtos.ResourceProtoOrBuilder>
getMaximumCapabilityFieldBuilder() {
if (maximumCapabilityBuilder_ == null) {
maximumCapabilityBuilder_ = new com.google.protobuf.SingleFieldBuilder<
apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto, apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.Builder, apsara.odps.cupid.protocol.YarnClientProtos.ResourceProtoOrBuilder>(
maximumCapability_,
getParentForChildren(),
isClean());
maximumCapability_ = null;
}
return maximumCapabilityBuilder_;
}
// @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.GetNewApplicationResponseProto)
}
static {
defaultInstance = new GetNewApplicationResponseProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.GetNewApplicationResponseProto)
}
public interface ApplicationIdProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 id = 1;
/**
* optional int32 id = 1;
*/
boolean hasId();
/**
* optional int32 id = 1;
*/
int getId();
// optional int64 cluster_timestamp = 2;
/**
* optional int64 cluster_timestamp = 2;
*/
boolean hasClusterTimestamp();
/**
* optional int64 cluster_timestamp = 2;
*/
long getClusterTimestamp();
}
/**
* Protobuf type {@code apsara.odps.cupid.protocol.ApplicationIdProto}
*/
public static final class ApplicationIdProto extends
com.google.protobuf.GeneratedMessage
implements ApplicationIdProtoOrBuilder {
// Use ApplicationIdProto.newBuilder() to construct.
private ApplicationIdProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ApplicationIdProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ApplicationIdProto defaultInstance;
public static ApplicationIdProto getDefaultInstance() {
return defaultInstance;
}
public ApplicationIdProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApplicationIdProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
id_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
clusterTimestamp_ = 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.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_ApplicationIdProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return apsara.odps.cupid.protocol.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_ApplicationIdProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.class, apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ApplicationIdProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ApplicationIdProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 id = 1;
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* optional int32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 id = 1;
*/
public int getId() {
return id_;
}
// optional int64 cluster_timestamp = 2;
public static final int CLUSTER_TIMESTAMP_FIELD_NUMBER = 2;
private long clusterTimestamp_;
/**
* optional int64 cluster_timestamp = 2;
*/
public boolean hasClusterTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int64 cluster_timestamp = 2;
*/
public long getClusterTimestamp() {
return clusterTimestamp_;
}
private void initFields() {
id_ = 0;
clusterTimestamp_ = 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.writeInt32(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, clusterTimestamp_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, clusterTimestamp_);
}
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.YarnClientProtos.ApplicationIdProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto 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.YarnClientProtos.ApplicationIdProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto 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.YarnClientProtos.ApplicationIdProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto 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.YarnClientProtos.ApplicationIdProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto 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.YarnClientProtos.ApplicationIdProto 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.ApplicationIdProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return apsara.odps.cupid.protocol.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_ApplicationIdProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return apsara.odps.cupid.protocol.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_ApplicationIdProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.class, apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.Builder.class);
}
// Construct using apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.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();
id_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
clusterTimestamp_ = 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.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_ApplicationIdProto_descriptor;
}
public apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto getDefaultInstanceForType() {
return apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.getDefaultInstance();
}
public apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto build() {
apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto buildPartial() {
apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto result = new apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.clusterTimestamp_ = clusterTimestamp_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto) {
return mergeFrom((apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto other) {
if (other == apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasClusterTimestamp()) {
setClusterTimestamp(other.getClusterTimestamp());
}
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.YarnClientProtos.ApplicationIdProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (apsara.odps.cupid.protocol.YarnClientProtos.ApplicationIdProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 id = 1;
private int id_ ;
/**
* optional int32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 id = 1;
*/
public int getId() {
return id_;
}
/**
* optional int32 id = 1;
*/
public Builder setId(int value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* optional int32 id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0;
onChanged();
return this;
}
// optional int64 cluster_timestamp = 2;
private long clusterTimestamp_ ;
/**
* optional int64 cluster_timestamp = 2;
*/
public boolean hasClusterTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int64 cluster_timestamp = 2;
*/
public long getClusterTimestamp() {
return clusterTimestamp_;
}
/**
* optional int64 cluster_timestamp = 2;
*/
public Builder setClusterTimestamp(long value) {
bitField0_ |= 0x00000002;
clusterTimestamp_ = value;
onChanged();
return this;
}
/**
* optional int64 cluster_timestamp = 2;
*/
public Builder clearClusterTimestamp() {
bitField0_ = (bitField0_ & ~0x00000002);
clusterTimestamp_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.ApplicationIdProto)
}
static {
defaultInstance = new ApplicationIdProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.ApplicationIdProto)
}
public interface ResourceProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 memory = 1;
/**
* optional int32 memory = 1;
*/
boolean hasMemory();
/**
* optional int32 memory = 1;
*/
int getMemory();
// optional int32 virtual_cores = 2;
/**
* optional int32 virtual_cores = 2;
*/
boolean hasVirtualCores();
/**
* optional int32 virtual_cores = 2;
*/
int getVirtualCores();
}
/**
* Protobuf type {@code apsara.odps.cupid.protocol.ResourceProto}
*/
public static final class ResourceProto extends
com.google.protobuf.GeneratedMessage
implements ResourceProtoOrBuilder {
// Use ResourceProto.newBuilder() to construct.
private ResourceProto(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ResourceProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ResourceProto defaultInstance;
public static ResourceProto getDefaultInstance() {
return defaultInstance;
}
public ResourceProto getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ResourceProto(
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;
memory_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
virtualCores_ = 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.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_ResourceProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return apsara.odps.cupid.protocol.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_ResourceProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.class, apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ResourceProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ResourceProto(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 memory = 1;
public static final int MEMORY_FIELD_NUMBER = 1;
private int memory_;
/**
* optional int32 memory = 1;
*/
public boolean hasMemory() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 memory = 1;
*/
public int getMemory() {
return memory_;
}
// optional int32 virtual_cores = 2;
public static final int VIRTUAL_CORES_FIELD_NUMBER = 2;
private int virtualCores_;
/**
* optional int32 virtual_cores = 2;
*/
public boolean hasVirtualCores() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 virtual_cores = 2;
*/
public int getVirtualCores() {
return virtualCores_;
}
private void initFields() {
memory_ = 0;
virtualCores_ = 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, memory_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, virtualCores_);
}
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, memory_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, virtualCores_);
}
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.YarnClientProtos.ResourceProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto 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.YarnClientProtos.ResourceProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto 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.YarnClientProtos.ResourceProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto 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.YarnClientProtos.ResourceProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto 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.YarnClientProtos.ResourceProto 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.ResourceProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements apsara.odps.cupid.protocol.YarnClientProtos.ResourceProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return apsara.odps.cupid.protocol.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_ResourceProto_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return apsara.odps.cupid.protocol.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_ResourceProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.class, apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.Builder.class);
}
// Construct using apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.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();
memory_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
virtualCores_ = 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.YarnClientProtos.internal_static_apsara_odps_cupid_protocol_ResourceProto_descriptor;
}
public apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto getDefaultInstanceForType() {
return apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.getDefaultInstance();
}
public apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto build() {
apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto buildPartial() {
apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto result = new apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.memory_ = memory_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.virtualCores_ = virtualCores_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto) {
return mergeFrom((apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto other) {
if (other == apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto.getDefaultInstance()) return this;
if (other.hasMemory()) {
setMemory(other.getMemory());
}
if (other.hasVirtualCores()) {
setVirtualCores(other.getVirtualCores());
}
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.YarnClientProtos.ResourceProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (apsara.odps.cupid.protocol.YarnClientProtos.ResourceProto) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 memory = 1;
private int memory_ ;
/**
* optional int32 memory = 1;
*/
public boolean hasMemory() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 memory = 1;
*/
public int getMemory() {
return memory_;
}
/**
* optional int32 memory = 1;
*/
public Builder setMemory(int value) {
bitField0_ |= 0x00000001;
memory_ = value;
onChanged();
return this;
}
/**
* optional int32 memory = 1;
*/
public Builder clearMemory() {
bitField0_ = (bitField0_ & ~0x00000001);
memory_ = 0;
onChanged();
return this;
}
// optional int32 virtual_cores = 2;
private int virtualCores_ ;
/**
* optional int32 virtual_cores = 2;
*/
public boolean hasVirtualCores() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional int32 virtual_cores = 2;
*/
public int getVirtualCores() {
return virtualCores_;
}
/**
* optional int32 virtual_cores = 2;
*/
public Builder setVirtualCores(int value) {
bitField0_ |= 0x00000002;
virtualCores_ = value;
onChanged();
return this;
}
/**
* optional int32 virtual_cores = 2;
*/
public Builder clearVirtualCores() {
bitField0_ = (bitField0_ & ~0x00000002);
virtualCores_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:apsara.odps.cupid.protocol.ResourceProto)
}
static {
defaultInstance = new ResourceProto(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:apsara.odps.cupid.protocol.ResourceProto)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_apsara_odps_cupid_protocol_GetNewApplicationResponseProto_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_apsara_odps_cupid_protocol_GetNewApplicationResponseProto_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_apsara_odps_cupid_protocol_ApplicationIdProto_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_apsara_odps_cupid_protocol_ApplicationIdProto_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_apsara_odps_cupid_protocol_ResourceProto_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_apsara_odps_cupid_protocol_ResourceProto_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\025yarnclientparam.proto\022\032apsara.odps.cup" +
"id.protocol\"\256\001\n\036GetNewApplicationRespons" +
"eProto\022F\n\016application_id\030\001 \001(\0132..apsara." +
"odps.cupid.protocol.ApplicationIdProto\022D" +
"\n\021maximumCapability\030\002 \001(\0132).apsara.odps." +
"cupid.protocol.ResourceProto\";\n\022Applicat" +
"ionIdProto\022\n\n\002id\030\001 \001(\005\022\031\n\021cluster_timest" +
"amp\030\002 \001(\003\"6\n\rResourceProto\022\016\n\006memory\030\001 \001" +
"(\005\022\025\n\rvirtual_cores\030\002 \001(\005B\022B\020YarnClientP" +
"rotos"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_apsara_odps_cupid_protocol_GetNewApplicationResponseProto_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_apsara_odps_cupid_protocol_GetNewApplicationResponseProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_apsara_odps_cupid_protocol_GetNewApplicationResponseProto_descriptor,
new java.lang.String[] { "ApplicationId", "MaximumCapability", });
internal_static_apsara_odps_cupid_protocol_ApplicationIdProto_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_apsara_odps_cupid_protocol_ApplicationIdProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_apsara_odps_cupid_protocol_ApplicationIdProto_descriptor,
new java.lang.String[] { "Id", "ClusterTimestamp", });
internal_static_apsara_odps_cupid_protocol_ResourceProto_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_apsara_odps_cupid_protocol_ResourceProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_apsara_odps_cupid_protocol_ResourceProto_descriptor,
new java.lang.String[] { "Memory", "VirtualCores", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy