org.apache.mesos.containerizer.Protos Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mesos Show documentation
Show all versions of mesos Show documentation
The Apache Mesos Java API jar.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mesos/containerizer/containerizer.proto
package org.apache.mesos.containerizer;
public final class Protos {
private Protos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface LaunchOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .mesos.ContainerID container_id = 1;
/**
* required .mesos.ContainerID container_id = 1;
*/
boolean hasContainerId();
/**
* required .mesos.ContainerID container_id = 1;
*/
org.apache.mesos.Protos.ContainerID getContainerId();
/**
* required .mesos.ContainerID container_id = 1;
*/
org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder();
// optional .mesos.TaskInfo task_info = 2;
/**
* optional .mesos.TaskInfo task_info = 2;
*/
boolean hasTaskInfo();
/**
* optional .mesos.TaskInfo task_info = 2;
*/
org.apache.mesos.Protos.TaskInfo getTaskInfo();
/**
* optional .mesos.TaskInfo task_info = 2;
*/
org.apache.mesos.Protos.TaskInfoOrBuilder getTaskInfoOrBuilder();
// optional .mesos.ExecutorInfo executor_info = 3;
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
boolean hasExecutorInfo();
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
org.apache.mesos.Protos.ExecutorInfo getExecutorInfo();
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
org.apache.mesos.Protos.ExecutorInfoOrBuilder getExecutorInfoOrBuilder();
// optional string directory = 4;
/**
* optional string directory = 4;
*/
boolean hasDirectory();
/**
* optional string directory = 4;
*/
java.lang.String getDirectory();
/**
* optional string directory = 4;
*/
com.google.protobuf.ByteString
getDirectoryBytes();
// optional string user = 5;
/**
* optional string user = 5;
*/
boolean hasUser();
/**
* optional string user = 5;
*/
java.lang.String getUser();
/**
* optional string user = 5;
*/
com.google.protobuf.ByteString
getUserBytes();
// optional .mesos.SlaveID slave_id = 6;
/**
* optional .mesos.SlaveID slave_id = 6;
*/
boolean hasSlaveId();
/**
* optional .mesos.SlaveID slave_id = 6;
*/
org.apache.mesos.Protos.SlaveID getSlaveId();
/**
* optional .mesos.SlaveID slave_id = 6;
*/
org.apache.mesos.Protos.SlaveIDOrBuilder getSlaveIdOrBuilder();
// optional string slave_pid = 7;
/**
* optional string slave_pid = 7;
*/
boolean hasSlavePid();
/**
* optional string slave_pid = 7;
*/
java.lang.String getSlavePid();
/**
* optional string slave_pid = 7;
*/
com.google.protobuf.ByteString
getSlavePidBytes();
// optional bool checkpoint = 8;
/**
* optional bool checkpoint = 8;
*/
boolean hasCheckpoint();
/**
* optional bool checkpoint = 8;
*/
boolean getCheckpoint();
}
/**
* Protobuf type {@code mesos.containerizer.Launch}
*
*
**
* Encodes the launch command sent to the external containerizer
* program.
*
*/
public static final class Launch extends
com.google.protobuf.GeneratedMessage
implements LaunchOrBuilder {
// Use Launch.newBuilder() to construct.
private Launch(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Launch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Launch defaultInstance;
public static Launch getDefaultInstance() {
return defaultInstance;
}
public Launch getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Launch(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.Protos.ContainerID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = containerId_.toBuilder();
}
containerId_ = input.readMessage(org.apache.mesos.Protos.ContainerID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(containerId_);
containerId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.mesos.Protos.TaskInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = taskInfo_.toBuilder();
}
taskInfo_ = input.readMessage(org.apache.mesos.Protos.TaskInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(taskInfo_);
taskInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.apache.mesos.Protos.ExecutorInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = executorInfo_.toBuilder();
}
executorInfo_ = input.readMessage(org.apache.mesos.Protos.ExecutorInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(executorInfo_);
executorInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
bitField0_ |= 0x00000008;
directory_ = input.readBytes();
break;
}
case 42: {
bitField0_ |= 0x00000010;
user_ = input.readBytes();
break;
}
case 50: {
org.apache.mesos.Protos.SlaveID.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = slaveId_.toBuilder();
}
slaveId_ = input.readMessage(org.apache.mesos.Protos.SlaveID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(slaveId_);
slaveId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 58: {
bitField0_ |= 0x00000040;
slavePid_ = input.readBytes();
break;
}
case 64: {
bitField0_ |= 0x00000080;
checkpoint_ = 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 org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Launch_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Launch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Launch.class, org.apache.mesos.containerizer.Protos.Launch.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Launch parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Launch(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .mesos.ContainerID container_id = 1;
public static final int CONTAINER_ID_FIELD_NUMBER = 1;
private org.apache.mesos.Protos.ContainerID containerId_;
/**
* required .mesos.ContainerID container_id = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID getContainerId() {
return containerId_;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() {
return containerId_;
}
// optional .mesos.TaskInfo task_info = 2;
public static final int TASK_INFO_FIELD_NUMBER = 2;
private org.apache.mesos.Protos.TaskInfo taskInfo_;
/**
* optional .mesos.TaskInfo task_info = 2;
*/
public boolean hasTaskInfo() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.TaskInfo task_info = 2;
*/
public org.apache.mesos.Protos.TaskInfo getTaskInfo() {
return taskInfo_;
}
/**
* optional .mesos.TaskInfo task_info = 2;
*/
public org.apache.mesos.Protos.TaskInfoOrBuilder getTaskInfoOrBuilder() {
return taskInfo_;
}
// optional .mesos.ExecutorInfo executor_info = 3;
public static final int EXECUTOR_INFO_FIELD_NUMBER = 3;
private org.apache.mesos.Protos.ExecutorInfo executorInfo_;
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
public boolean hasExecutorInfo() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
public org.apache.mesos.Protos.ExecutorInfo getExecutorInfo() {
return executorInfo_;
}
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
public org.apache.mesos.Protos.ExecutorInfoOrBuilder getExecutorInfoOrBuilder() {
return executorInfo_;
}
// optional string directory = 4;
public static final int DIRECTORY_FIELD_NUMBER = 4;
private java.lang.Object directory_;
/**
* optional string directory = 4;
*/
public boolean hasDirectory() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string directory = 4;
*/
public java.lang.String getDirectory() {
java.lang.Object ref = directory_;
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()) {
directory_ = s;
}
return s;
}
}
/**
* optional string directory = 4;
*/
public com.google.protobuf.ByteString
getDirectoryBytes() {
java.lang.Object ref = directory_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
directory_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional string user = 5;
public static final int USER_FIELD_NUMBER = 5;
private java.lang.Object user_;
/**
* optional string user = 5;
*/
public boolean hasUser() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string user = 5;
*/
public java.lang.String getUser() {
java.lang.Object ref = user_;
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()) {
user_ = s;
}
return s;
}
}
/**
* optional string user = 5;
*/
public com.google.protobuf.ByteString
getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
user_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional .mesos.SlaveID slave_id = 6;
public static final int SLAVE_ID_FIELD_NUMBER = 6;
private org.apache.mesos.Protos.SlaveID slaveId_;
/**
* optional .mesos.SlaveID slave_id = 6;
*/
public boolean hasSlaveId() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .mesos.SlaveID slave_id = 6;
*/
public org.apache.mesos.Protos.SlaveID getSlaveId() {
return slaveId_;
}
/**
* optional .mesos.SlaveID slave_id = 6;
*/
public org.apache.mesos.Protos.SlaveIDOrBuilder getSlaveIdOrBuilder() {
return slaveId_;
}
// optional string slave_pid = 7;
public static final int SLAVE_PID_FIELD_NUMBER = 7;
private java.lang.Object slavePid_;
/**
* optional string slave_pid = 7;
*/
public boolean hasSlavePid() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string slave_pid = 7;
*/
public java.lang.String getSlavePid() {
java.lang.Object ref = slavePid_;
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()) {
slavePid_ = s;
}
return s;
}
}
/**
* optional string slave_pid = 7;
*/
public com.google.protobuf.ByteString
getSlavePidBytes() {
java.lang.Object ref = slavePid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
slavePid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// optional bool checkpoint = 8;
public static final int CHECKPOINT_FIELD_NUMBER = 8;
private boolean checkpoint_;
/**
* optional bool checkpoint = 8;
*/
public boolean hasCheckpoint() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional bool checkpoint = 8;
*/
public boolean getCheckpoint() {
return checkpoint_;
}
private void initFields() {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
taskInfo_ = org.apache.mesos.Protos.TaskInfo.getDefaultInstance();
executorInfo_ = org.apache.mesos.Protos.ExecutorInfo.getDefaultInstance();
directory_ = "";
user_ = "";
slaveId_ = org.apache.mesos.Protos.SlaveID.getDefaultInstance();
slavePid_ = "";
checkpoint_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasContainerId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getContainerId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (hasTaskInfo()) {
if (!getTaskInfo().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasExecutorInfo()) {
if (!getExecutorInfo().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasSlaveId()) {
if (!getSlaveId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, containerId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, taskInfo_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, executorInfo_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getDirectoryBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getUserBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(6, slaveId_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBytes(7, getSlavePidBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBool(8, checkpoint_);
}
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, containerId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, taskInfo_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, executorInfo_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getDirectoryBytes());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getUserBytes());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, slaveId_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, getSlavePidBytes());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, checkpoint_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.containerizer.Protos.Launch parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Launch parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Launch parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Launch parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Launch parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Launch parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Launch parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Launch parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Launch parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Launch parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.containerizer.Protos.Launch 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 mesos.containerizer.Launch}
*
*
**
* Encodes the launch command sent to the external containerizer
* program.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.mesos.containerizer.Protos.LaunchOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Launch_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Launch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Launch.class, org.apache.mesos.containerizer.Protos.Launch.Builder.class);
}
// Construct using org.apache.mesos.containerizer.Protos.Launch.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getContainerIdFieldBuilder();
getTaskInfoFieldBuilder();
getExecutorInfoFieldBuilder();
getSlaveIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (containerIdBuilder_ == null) {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (taskInfoBuilder_ == null) {
taskInfo_ = org.apache.mesos.Protos.TaskInfo.getDefaultInstance();
} else {
taskInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (executorInfoBuilder_ == null) {
executorInfo_ = org.apache.mesos.Protos.ExecutorInfo.getDefaultInstance();
} else {
executorInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
directory_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
user_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
if (slaveIdBuilder_ == null) {
slaveId_ = org.apache.mesos.Protos.SlaveID.getDefaultInstance();
} else {
slaveIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
slavePid_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
checkpoint_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Launch_descriptor;
}
public org.apache.mesos.containerizer.Protos.Launch getDefaultInstanceForType() {
return org.apache.mesos.containerizer.Protos.Launch.getDefaultInstance();
}
public org.apache.mesos.containerizer.Protos.Launch build() {
org.apache.mesos.containerizer.Protos.Launch result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.containerizer.Protos.Launch buildPartial() {
org.apache.mesos.containerizer.Protos.Launch result = new org.apache.mesos.containerizer.Protos.Launch(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (containerIdBuilder_ == null) {
result.containerId_ = containerId_;
} else {
result.containerId_ = containerIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (taskInfoBuilder_ == null) {
result.taskInfo_ = taskInfo_;
} else {
result.taskInfo_ = taskInfoBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (executorInfoBuilder_ == null) {
result.executorInfo_ = executorInfo_;
} else {
result.executorInfo_ = executorInfoBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.directory_ = directory_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.user_ = user_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
if (slaveIdBuilder_ == null) {
result.slaveId_ = slaveId_;
} else {
result.slaveId_ = slaveIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.slavePid_ = slavePid_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.checkpoint_ = checkpoint_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.containerizer.Protos.Launch) {
return mergeFrom((org.apache.mesos.containerizer.Protos.Launch)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.containerizer.Protos.Launch other) {
if (other == org.apache.mesos.containerizer.Protos.Launch.getDefaultInstance()) return this;
if (other.hasContainerId()) {
mergeContainerId(other.getContainerId());
}
if (other.hasTaskInfo()) {
mergeTaskInfo(other.getTaskInfo());
}
if (other.hasExecutorInfo()) {
mergeExecutorInfo(other.getExecutorInfo());
}
if (other.hasDirectory()) {
bitField0_ |= 0x00000008;
directory_ = other.directory_;
onChanged();
}
if (other.hasUser()) {
bitField0_ |= 0x00000010;
user_ = other.user_;
onChanged();
}
if (other.hasSlaveId()) {
mergeSlaveId(other.getSlaveId());
}
if (other.hasSlavePid()) {
bitField0_ |= 0x00000040;
slavePid_ = other.slavePid_;
onChanged();
}
if (other.hasCheckpoint()) {
setCheckpoint(other.getCheckpoint());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasContainerId()) {
return false;
}
if (!getContainerId().isInitialized()) {
return false;
}
if (hasTaskInfo()) {
if (!getTaskInfo().isInitialized()) {
return false;
}
}
if (hasExecutorInfo()) {
if (!getExecutorInfo().isInitialized()) {
return false;
}
}
if (hasSlaveId()) {
if (!getSlaveId().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.containerizer.Protos.Launch parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.containerizer.Protos.Launch) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .mesos.ContainerID container_id = 1;
private org.apache.mesos.Protos.ContainerID containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder> containerIdBuilder_;
/**
* required .mesos.ContainerID container_id = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID getContainerId() {
if (containerIdBuilder_ == null) {
return containerId_;
} else {
return containerIdBuilder_.getMessage();
}
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder setContainerId(org.apache.mesos.Protos.ContainerID value) {
if (containerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
containerId_ = value;
onChanged();
} else {
containerIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder setContainerId(
org.apache.mesos.Protos.ContainerID.Builder builderForValue) {
if (containerIdBuilder_ == null) {
containerId_ = builderForValue.build();
onChanged();
} else {
containerIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder mergeContainerId(org.apache.mesos.Protos.ContainerID value) {
if (containerIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
containerId_ != org.apache.mesos.Protos.ContainerID.getDefaultInstance()) {
containerId_ =
org.apache.mesos.Protos.ContainerID.newBuilder(containerId_).mergeFrom(value).buildPartial();
} else {
containerId_ = value;
}
onChanged();
} else {
containerIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder clearContainerId() {
if (containerIdBuilder_ == null) {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
onChanged();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID.Builder getContainerIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getContainerIdFieldBuilder().getBuilder();
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() {
if (containerIdBuilder_ != null) {
return containerIdBuilder_.getMessageOrBuilder();
} else {
return containerId_;
}
}
/**
* required .mesos.ContainerID container_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder>
getContainerIdFieldBuilder() {
if (containerIdBuilder_ == null) {
containerIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder>(
containerId_,
getParentForChildren(),
isClean());
containerId_ = null;
}
return containerIdBuilder_;
}
// optional .mesos.TaskInfo task_info = 2;
private org.apache.mesos.Protos.TaskInfo taskInfo_ = org.apache.mesos.Protos.TaskInfo.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.TaskInfo, org.apache.mesos.Protos.TaskInfo.Builder, org.apache.mesos.Protos.TaskInfoOrBuilder> taskInfoBuilder_;
/**
* optional .mesos.TaskInfo task_info = 2;
*/
public boolean hasTaskInfo() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.TaskInfo task_info = 2;
*/
public org.apache.mesos.Protos.TaskInfo getTaskInfo() {
if (taskInfoBuilder_ == null) {
return taskInfo_;
} else {
return taskInfoBuilder_.getMessage();
}
}
/**
* optional .mesos.TaskInfo task_info = 2;
*/
public Builder setTaskInfo(org.apache.mesos.Protos.TaskInfo value) {
if (taskInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
taskInfo_ = value;
onChanged();
} else {
taskInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.TaskInfo task_info = 2;
*/
public Builder setTaskInfo(
org.apache.mesos.Protos.TaskInfo.Builder builderForValue) {
if (taskInfoBuilder_ == null) {
taskInfo_ = builderForValue.build();
onChanged();
} else {
taskInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.TaskInfo task_info = 2;
*/
public Builder mergeTaskInfo(org.apache.mesos.Protos.TaskInfo value) {
if (taskInfoBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
taskInfo_ != org.apache.mesos.Protos.TaskInfo.getDefaultInstance()) {
taskInfo_ =
org.apache.mesos.Protos.TaskInfo.newBuilder(taskInfo_).mergeFrom(value).buildPartial();
} else {
taskInfo_ = value;
}
onChanged();
} else {
taskInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.TaskInfo task_info = 2;
*/
public Builder clearTaskInfo() {
if (taskInfoBuilder_ == null) {
taskInfo_ = org.apache.mesos.Protos.TaskInfo.getDefaultInstance();
onChanged();
} else {
taskInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .mesos.TaskInfo task_info = 2;
*/
public org.apache.mesos.Protos.TaskInfo.Builder getTaskInfoBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTaskInfoFieldBuilder().getBuilder();
}
/**
* optional .mesos.TaskInfo task_info = 2;
*/
public org.apache.mesos.Protos.TaskInfoOrBuilder getTaskInfoOrBuilder() {
if (taskInfoBuilder_ != null) {
return taskInfoBuilder_.getMessageOrBuilder();
} else {
return taskInfo_;
}
}
/**
* optional .mesos.TaskInfo task_info = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.TaskInfo, org.apache.mesos.Protos.TaskInfo.Builder, org.apache.mesos.Protos.TaskInfoOrBuilder>
getTaskInfoFieldBuilder() {
if (taskInfoBuilder_ == null) {
taskInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.TaskInfo, org.apache.mesos.Protos.TaskInfo.Builder, org.apache.mesos.Protos.TaskInfoOrBuilder>(
taskInfo_,
getParentForChildren(),
isClean());
taskInfo_ = null;
}
return taskInfoBuilder_;
}
// optional .mesos.ExecutorInfo executor_info = 3;
private org.apache.mesos.Protos.ExecutorInfo executorInfo_ = org.apache.mesos.Protos.ExecutorInfo.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ExecutorInfo, org.apache.mesos.Protos.ExecutorInfo.Builder, org.apache.mesos.Protos.ExecutorInfoOrBuilder> executorInfoBuilder_;
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
public boolean hasExecutorInfo() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
public org.apache.mesos.Protos.ExecutorInfo getExecutorInfo() {
if (executorInfoBuilder_ == null) {
return executorInfo_;
} else {
return executorInfoBuilder_.getMessage();
}
}
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
public Builder setExecutorInfo(org.apache.mesos.Protos.ExecutorInfo value) {
if (executorInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executorInfo_ = value;
onChanged();
} else {
executorInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
public Builder setExecutorInfo(
org.apache.mesos.Protos.ExecutorInfo.Builder builderForValue) {
if (executorInfoBuilder_ == null) {
executorInfo_ = builderForValue.build();
onChanged();
} else {
executorInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
public Builder mergeExecutorInfo(org.apache.mesos.Protos.ExecutorInfo value) {
if (executorInfoBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
executorInfo_ != org.apache.mesos.Protos.ExecutorInfo.getDefaultInstance()) {
executorInfo_ =
org.apache.mesos.Protos.ExecutorInfo.newBuilder(executorInfo_).mergeFrom(value).buildPartial();
} else {
executorInfo_ = value;
}
onChanged();
} else {
executorInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
public Builder clearExecutorInfo() {
if (executorInfoBuilder_ == null) {
executorInfo_ = org.apache.mesos.Protos.ExecutorInfo.getDefaultInstance();
onChanged();
} else {
executorInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
public org.apache.mesos.Protos.ExecutorInfo.Builder getExecutorInfoBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getExecutorInfoFieldBuilder().getBuilder();
}
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
public org.apache.mesos.Protos.ExecutorInfoOrBuilder getExecutorInfoOrBuilder() {
if (executorInfoBuilder_ != null) {
return executorInfoBuilder_.getMessageOrBuilder();
} else {
return executorInfo_;
}
}
/**
* optional .mesos.ExecutorInfo executor_info = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ExecutorInfo, org.apache.mesos.Protos.ExecutorInfo.Builder, org.apache.mesos.Protos.ExecutorInfoOrBuilder>
getExecutorInfoFieldBuilder() {
if (executorInfoBuilder_ == null) {
executorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ExecutorInfo, org.apache.mesos.Protos.ExecutorInfo.Builder, org.apache.mesos.Protos.ExecutorInfoOrBuilder>(
executorInfo_,
getParentForChildren(),
isClean());
executorInfo_ = null;
}
return executorInfoBuilder_;
}
// optional string directory = 4;
private java.lang.Object directory_ = "";
/**
* optional string directory = 4;
*/
public boolean hasDirectory() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string directory = 4;
*/
public java.lang.String getDirectory() {
java.lang.Object ref = directory_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
directory_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string directory = 4;
*/
public com.google.protobuf.ByteString
getDirectoryBytes() {
java.lang.Object ref = directory_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
directory_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string directory = 4;
*/
public Builder setDirectory(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
directory_ = value;
onChanged();
return this;
}
/**
* optional string directory = 4;
*/
public Builder clearDirectory() {
bitField0_ = (bitField0_ & ~0x00000008);
directory_ = getDefaultInstance().getDirectory();
onChanged();
return this;
}
/**
* optional string directory = 4;
*/
public Builder setDirectoryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
directory_ = value;
onChanged();
return this;
}
// optional string user = 5;
private java.lang.Object user_ = "";
/**
* optional string user = 5;
*/
public boolean hasUser() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string user = 5;
*/
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
user_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string user = 5;
*/
public com.google.protobuf.ByteString
getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
user_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string user = 5;
*/
public Builder setUser(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
user_ = value;
onChanged();
return this;
}
/**
* optional string user = 5;
*/
public Builder clearUser() {
bitField0_ = (bitField0_ & ~0x00000010);
user_ = getDefaultInstance().getUser();
onChanged();
return this;
}
/**
* optional string user = 5;
*/
public Builder setUserBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
user_ = value;
onChanged();
return this;
}
// optional .mesos.SlaveID slave_id = 6;
private org.apache.mesos.Protos.SlaveID slaveId_ = org.apache.mesos.Protos.SlaveID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.SlaveID, org.apache.mesos.Protos.SlaveID.Builder, org.apache.mesos.Protos.SlaveIDOrBuilder> slaveIdBuilder_;
/**
* optional .mesos.SlaveID slave_id = 6;
*/
public boolean hasSlaveId() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .mesos.SlaveID slave_id = 6;
*/
public org.apache.mesos.Protos.SlaveID getSlaveId() {
if (slaveIdBuilder_ == null) {
return slaveId_;
} else {
return slaveIdBuilder_.getMessage();
}
}
/**
* optional .mesos.SlaveID slave_id = 6;
*/
public Builder setSlaveId(org.apache.mesos.Protos.SlaveID value) {
if (slaveIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
slaveId_ = value;
onChanged();
} else {
slaveIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.SlaveID slave_id = 6;
*/
public Builder setSlaveId(
org.apache.mesos.Protos.SlaveID.Builder builderForValue) {
if (slaveIdBuilder_ == null) {
slaveId_ = builderForValue.build();
onChanged();
} else {
slaveIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.SlaveID slave_id = 6;
*/
public Builder mergeSlaveId(org.apache.mesos.Protos.SlaveID value) {
if (slaveIdBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
slaveId_ != org.apache.mesos.Protos.SlaveID.getDefaultInstance()) {
slaveId_ =
org.apache.mesos.Protos.SlaveID.newBuilder(slaveId_).mergeFrom(value).buildPartial();
} else {
slaveId_ = value;
}
onChanged();
} else {
slaveIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.SlaveID slave_id = 6;
*/
public Builder clearSlaveId() {
if (slaveIdBuilder_ == null) {
slaveId_ = org.apache.mesos.Protos.SlaveID.getDefaultInstance();
onChanged();
} else {
slaveIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .mesos.SlaveID slave_id = 6;
*/
public org.apache.mesos.Protos.SlaveID.Builder getSlaveIdBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getSlaveIdFieldBuilder().getBuilder();
}
/**
* optional .mesos.SlaveID slave_id = 6;
*/
public org.apache.mesos.Protos.SlaveIDOrBuilder getSlaveIdOrBuilder() {
if (slaveIdBuilder_ != null) {
return slaveIdBuilder_.getMessageOrBuilder();
} else {
return slaveId_;
}
}
/**
* optional .mesos.SlaveID slave_id = 6;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.SlaveID, org.apache.mesos.Protos.SlaveID.Builder, org.apache.mesos.Protos.SlaveIDOrBuilder>
getSlaveIdFieldBuilder() {
if (slaveIdBuilder_ == null) {
slaveIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.SlaveID, org.apache.mesos.Protos.SlaveID.Builder, org.apache.mesos.Protos.SlaveIDOrBuilder>(
slaveId_,
getParentForChildren(),
isClean());
slaveId_ = null;
}
return slaveIdBuilder_;
}
// optional string slave_pid = 7;
private java.lang.Object slavePid_ = "";
/**
* optional string slave_pid = 7;
*/
public boolean hasSlavePid() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional string slave_pid = 7;
*/
public java.lang.String getSlavePid() {
java.lang.Object ref = slavePid_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
slavePid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string slave_pid = 7;
*/
public com.google.protobuf.ByteString
getSlavePidBytes() {
java.lang.Object ref = slavePid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
slavePid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string slave_pid = 7;
*/
public Builder setSlavePid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
slavePid_ = value;
onChanged();
return this;
}
/**
* optional string slave_pid = 7;
*/
public Builder clearSlavePid() {
bitField0_ = (bitField0_ & ~0x00000040);
slavePid_ = getDefaultInstance().getSlavePid();
onChanged();
return this;
}
/**
* optional string slave_pid = 7;
*/
public Builder setSlavePidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
slavePid_ = value;
onChanged();
return this;
}
// optional bool checkpoint = 8;
private boolean checkpoint_ ;
/**
* optional bool checkpoint = 8;
*/
public boolean hasCheckpoint() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional bool checkpoint = 8;
*/
public boolean getCheckpoint() {
return checkpoint_;
}
/**
* optional bool checkpoint = 8;
*/
public Builder setCheckpoint(boolean value) {
bitField0_ |= 0x00000080;
checkpoint_ = value;
onChanged();
return this;
}
/**
* optional bool checkpoint = 8;
*/
public Builder clearCheckpoint() {
bitField0_ = (bitField0_ & ~0x00000080);
checkpoint_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:mesos.containerizer.Launch)
}
static {
defaultInstance = new Launch(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.containerizer.Launch)
}
public interface UpdateOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .mesos.ContainerID container_id = 1;
/**
* required .mesos.ContainerID container_id = 1;
*/
boolean hasContainerId();
/**
* required .mesos.ContainerID container_id = 1;
*/
org.apache.mesos.Protos.ContainerID getContainerId();
/**
* required .mesos.ContainerID container_id = 1;
*/
org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder();
// repeated .mesos.Resource resources = 2;
/**
* repeated .mesos.Resource resources = 2;
*/
java.util.List
getResourcesList();
/**
* repeated .mesos.Resource resources = 2;
*/
org.apache.mesos.Protos.Resource getResources(int index);
/**
* repeated .mesos.Resource resources = 2;
*/
int getResourcesCount();
/**
* repeated .mesos.Resource resources = 2;
*/
java.util.List extends org.apache.mesos.Protos.ResourceOrBuilder>
getResourcesOrBuilderList();
/**
* repeated .mesos.Resource resources = 2;
*/
org.apache.mesos.Protos.ResourceOrBuilder getResourcesOrBuilder(
int index);
}
/**
* Protobuf type {@code mesos.containerizer.Update}
*
*
**
* Encodes the update command sent to the external containerizer
* program.
*
*/
public static final class Update extends
com.google.protobuf.GeneratedMessage
implements UpdateOrBuilder {
// Use Update.newBuilder() to construct.
private Update(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Update(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Update defaultInstance;
public static Update getDefaultInstance() {
return defaultInstance;
}
public Update getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Update(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.Protos.ContainerID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = containerId_.toBuilder();
}
containerId_ = input.readMessage(org.apache.mesos.Protos.ContainerID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(containerId_);
containerId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
resources_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
resources_.add(input.readMessage(org.apache.mesos.Protos.Resource.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 org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Update_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Update_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Update.class, org.apache.mesos.containerizer.Protos.Update.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Update parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Update(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .mesos.ContainerID container_id = 1;
public static final int CONTAINER_ID_FIELD_NUMBER = 1;
private org.apache.mesos.Protos.ContainerID containerId_;
/**
* required .mesos.ContainerID container_id = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID getContainerId() {
return containerId_;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() {
return containerId_;
}
// repeated .mesos.Resource resources = 2;
public static final int RESOURCES_FIELD_NUMBER = 2;
private java.util.List resources_;
/**
* repeated .mesos.Resource resources = 2;
*/
public java.util.List getResourcesList() {
return resources_;
}
/**
* repeated .mesos.Resource resources = 2;
*/
public java.util.List extends org.apache.mesos.Protos.ResourceOrBuilder>
getResourcesOrBuilderList() {
return resources_;
}
/**
* repeated .mesos.Resource resources = 2;
*/
public int getResourcesCount() {
return resources_.size();
}
/**
* repeated .mesos.Resource resources = 2;
*/
public org.apache.mesos.Protos.Resource getResources(int index) {
return resources_.get(index);
}
/**
* repeated .mesos.Resource resources = 2;
*/
public org.apache.mesos.Protos.ResourceOrBuilder getResourcesOrBuilder(
int index) {
return resources_.get(index);
}
private void initFields() {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
resources_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasContainerId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getContainerId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getResourcesCount(); i++) {
if (!getResources(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, containerId_);
}
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
.computeMessageSize(1, containerId_);
}
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 org.apache.mesos.containerizer.Protos.Update parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Update parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Update parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Update parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Update parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Update parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Update parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Update parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Update parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Update parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.containerizer.Protos.Update 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 mesos.containerizer.Update}
*
*
**
* Encodes the update command sent to the external containerizer
* program.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.mesos.containerizer.Protos.UpdateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Update_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Update_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Update.class, org.apache.mesos.containerizer.Protos.Update.Builder.class);
}
// Construct using org.apache.mesos.containerizer.Protos.Update.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getContainerIdFieldBuilder();
getResourcesFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (containerIdBuilder_ == null) {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
} else {
containerIdBuilder_.clear();
}
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 org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Update_descriptor;
}
public org.apache.mesos.containerizer.Protos.Update getDefaultInstanceForType() {
return org.apache.mesos.containerizer.Protos.Update.getDefaultInstance();
}
public org.apache.mesos.containerizer.Protos.Update build() {
org.apache.mesos.containerizer.Protos.Update result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.containerizer.Protos.Update buildPartial() {
org.apache.mesos.containerizer.Protos.Update result = new org.apache.mesos.containerizer.Protos.Update(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (containerIdBuilder_ == null) {
result.containerId_ = containerId_;
} else {
result.containerId_ = containerIdBuilder_.build();
}
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 org.apache.mesos.containerizer.Protos.Update) {
return mergeFrom((org.apache.mesos.containerizer.Protos.Update)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.containerizer.Protos.Update other) {
if (other == org.apache.mesos.containerizer.Protos.Update.getDefaultInstance()) return this;
if (other.hasContainerId()) {
mergeContainerId(other.getContainerId());
}
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() {
if (!hasContainerId()) {
return false;
}
if (!getContainerId().isInitialized()) {
return false;
}
for (int i = 0; i < getResourcesCount(); i++) {
if (!getResources(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.containerizer.Protos.Update parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.containerizer.Protos.Update) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .mesos.ContainerID container_id = 1;
private org.apache.mesos.Protos.ContainerID containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder> containerIdBuilder_;
/**
* required .mesos.ContainerID container_id = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID getContainerId() {
if (containerIdBuilder_ == null) {
return containerId_;
} else {
return containerIdBuilder_.getMessage();
}
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder setContainerId(org.apache.mesos.Protos.ContainerID value) {
if (containerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
containerId_ = value;
onChanged();
} else {
containerIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder setContainerId(
org.apache.mesos.Protos.ContainerID.Builder builderForValue) {
if (containerIdBuilder_ == null) {
containerId_ = builderForValue.build();
onChanged();
} else {
containerIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder mergeContainerId(org.apache.mesos.Protos.ContainerID value) {
if (containerIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
containerId_ != org.apache.mesos.Protos.ContainerID.getDefaultInstance()) {
containerId_ =
org.apache.mesos.Protos.ContainerID.newBuilder(containerId_).mergeFrom(value).buildPartial();
} else {
containerId_ = value;
}
onChanged();
} else {
containerIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder clearContainerId() {
if (containerIdBuilder_ == null) {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
onChanged();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID.Builder getContainerIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getContainerIdFieldBuilder().getBuilder();
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() {
if (containerIdBuilder_ != null) {
return containerIdBuilder_.getMessageOrBuilder();
} else {
return containerId_;
}
}
/**
* required .mesos.ContainerID container_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder>
getContainerIdFieldBuilder() {
if (containerIdBuilder_ == null) {
containerIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder>(
containerId_,
getParentForChildren(),
isClean());
containerId_ = null;
}
return containerIdBuilder_;
}
// repeated .mesos.Resource 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<
org.apache.mesos.Protos.Resource, org.apache.mesos.Protos.Resource.Builder, org.apache.mesos.Protos.ResourceOrBuilder> resourcesBuilder_;
/**
* repeated .mesos.Resource resources = 2;
*/
public java.util.List getResourcesList() {
if (resourcesBuilder_ == null) {
return java.util.Collections.unmodifiableList(resources_);
} else {
return resourcesBuilder_.getMessageList();
}
}
/**
* repeated .mesos.Resource resources = 2;
*/
public int getResourcesCount() {
if (resourcesBuilder_ == null) {
return resources_.size();
} else {
return resourcesBuilder_.getCount();
}
}
/**
* repeated .mesos.Resource resources = 2;
*/
public org.apache.mesos.Protos.Resource getResources(int index) {
if (resourcesBuilder_ == null) {
return resources_.get(index);
} else {
return resourcesBuilder_.getMessage(index);
}
}
/**
* repeated .mesos.Resource resources = 2;
*/
public Builder setResources(
int index, org.apache.mesos.Protos.Resource value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourcesIsMutable();
resources_.set(index, value);
onChanged();
} else {
resourcesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mesos.Resource resources = 2;
*/
public Builder setResources(
int index, org.apache.mesos.Protos.Resource.Builder builderForValue) {
if (resourcesBuilder_ == null) {
ensureResourcesIsMutable();
resources_.set(index, builderForValue.build());
onChanged();
} else {
resourcesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.Resource resources = 2;
*/
public Builder addResources(org.apache.mesos.Protos.Resource value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourcesIsMutable();
resources_.add(value);
onChanged();
} else {
resourcesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mesos.Resource resources = 2;
*/
public Builder addResources(
int index, org.apache.mesos.Protos.Resource value) {
if (resourcesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResourcesIsMutable();
resources_.add(index, value);
onChanged();
} else {
resourcesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mesos.Resource resources = 2;
*/
public Builder addResources(
org.apache.mesos.Protos.Resource.Builder builderForValue) {
if (resourcesBuilder_ == null) {
ensureResourcesIsMutable();
resources_.add(builderForValue.build());
onChanged();
} else {
resourcesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mesos.Resource resources = 2;
*/
public Builder addResources(
int index, org.apache.mesos.Protos.Resource.Builder builderForValue) {
if (resourcesBuilder_ == null) {
ensureResourcesIsMutable();
resources_.add(index, builderForValue.build());
onChanged();
} else {
resourcesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.Resource resources = 2;
*/
public Builder addAllResources(
java.lang.Iterable extends org.apache.mesos.Protos.Resource> values) {
if (resourcesBuilder_ == null) {
ensureResourcesIsMutable();
super.addAll(values, resources_);
onChanged();
} else {
resourcesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mesos.Resource resources = 2;
*/
public Builder clearResources() {
if (resourcesBuilder_ == null) {
resources_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
resourcesBuilder_.clear();
}
return this;
}
/**
* repeated .mesos.Resource resources = 2;
*/
public Builder removeResources(int index) {
if (resourcesBuilder_ == null) {
ensureResourcesIsMutable();
resources_.remove(index);
onChanged();
} else {
resourcesBuilder_.remove(index);
}
return this;
}
/**
* repeated .mesos.Resource resources = 2;
*/
public org.apache.mesos.Protos.Resource.Builder getResourcesBuilder(
int index) {
return getResourcesFieldBuilder().getBuilder(index);
}
/**
* repeated .mesos.Resource resources = 2;
*/
public org.apache.mesos.Protos.ResourceOrBuilder getResourcesOrBuilder(
int index) {
if (resourcesBuilder_ == null) {
return resources_.get(index); } else {
return resourcesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mesos.Resource resources = 2;
*/
public java.util.List extends org.apache.mesos.Protos.ResourceOrBuilder>
getResourcesOrBuilderList() {
if (resourcesBuilder_ != null) {
return resourcesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(resources_);
}
}
/**
* repeated .mesos.Resource resources = 2;
*/
public org.apache.mesos.Protos.Resource.Builder addResourcesBuilder() {
return getResourcesFieldBuilder().addBuilder(
org.apache.mesos.Protos.Resource.getDefaultInstance());
}
/**
* repeated .mesos.Resource resources = 2;
*/
public org.apache.mesos.Protos.Resource.Builder addResourcesBuilder(
int index) {
return getResourcesFieldBuilder().addBuilder(
index, org.apache.mesos.Protos.Resource.getDefaultInstance());
}
/**
* repeated .mesos.Resource resources = 2;
*/
public java.util.List
getResourcesBuilderList() {
return getResourcesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.Protos.Resource, org.apache.mesos.Protos.Resource.Builder, org.apache.mesos.Protos.ResourceOrBuilder>
getResourcesFieldBuilder() {
if (resourcesBuilder_ == null) {
resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.Protos.Resource, org.apache.mesos.Protos.Resource.Builder, org.apache.mesos.Protos.ResourceOrBuilder>(
resources_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
resources_ = null;
}
return resourcesBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.containerizer.Update)
}
static {
defaultInstance = new Update(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.containerizer.Update)
}
public interface WaitOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .mesos.ContainerID container_id = 1;
/**
* required .mesos.ContainerID container_id = 1;
*/
boolean hasContainerId();
/**
* required .mesos.ContainerID container_id = 1;
*/
org.apache.mesos.Protos.ContainerID getContainerId();
/**
* required .mesos.ContainerID container_id = 1;
*/
org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder();
}
/**
* Protobuf type {@code mesos.containerizer.Wait}
*
*
**
* Encodes the wait command sent to the external containerizer
* program.
*
*/
public static final class Wait extends
com.google.protobuf.GeneratedMessage
implements WaitOrBuilder {
// Use Wait.newBuilder() to construct.
private Wait(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Wait(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Wait defaultInstance;
public static Wait getDefaultInstance() {
return defaultInstance;
}
public Wait getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Wait(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.Protos.ContainerID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = containerId_.toBuilder();
}
containerId_ = input.readMessage(org.apache.mesos.Protos.ContainerID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(containerId_);
containerId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Wait_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Wait_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Wait.class, org.apache.mesos.containerizer.Protos.Wait.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Wait parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Wait(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .mesos.ContainerID container_id = 1;
public static final int CONTAINER_ID_FIELD_NUMBER = 1;
private org.apache.mesos.Protos.ContainerID containerId_;
/**
* required .mesos.ContainerID container_id = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID getContainerId() {
return containerId_;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() {
return containerId_;
}
private void initFields() {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasContainerId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getContainerId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, containerId_);
}
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, containerId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.containerizer.Protos.Wait parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Wait parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Wait parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Wait parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Wait parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Wait parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Wait parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Wait parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Wait parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Wait parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.containerizer.Protos.Wait 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 mesos.containerizer.Wait}
*
*
**
* Encodes the wait command sent to the external containerizer
* program.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.mesos.containerizer.Protos.WaitOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Wait_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Wait_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Wait.class, org.apache.mesos.containerizer.Protos.Wait.Builder.class);
}
// Construct using org.apache.mesos.containerizer.Protos.Wait.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getContainerIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (containerIdBuilder_ == null) {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Wait_descriptor;
}
public org.apache.mesos.containerizer.Protos.Wait getDefaultInstanceForType() {
return org.apache.mesos.containerizer.Protos.Wait.getDefaultInstance();
}
public org.apache.mesos.containerizer.Protos.Wait build() {
org.apache.mesos.containerizer.Protos.Wait result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.containerizer.Protos.Wait buildPartial() {
org.apache.mesos.containerizer.Protos.Wait result = new org.apache.mesos.containerizer.Protos.Wait(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (containerIdBuilder_ == null) {
result.containerId_ = containerId_;
} else {
result.containerId_ = containerIdBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.containerizer.Protos.Wait) {
return mergeFrom((org.apache.mesos.containerizer.Protos.Wait)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.containerizer.Protos.Wait other) {
if (other == org.apache.mesos.containerizer.Protos.Wait.getDefaultInstance()) return this;
if (other.hasContainerId()) {
mergeContainerId(other.getContainerId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasContainerId()) {
return false;
}
if (!getContainerId().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.containerizer.Protos.Wait parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.containerizer.Protos.Wait) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .mesos.ContainerID container_id = 1;
private org.apache.mesos.Protos.ContainerID containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder> containerIdBuilder_;
/**
* required .mesos.ContainerID container_id = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID getContainerId() {
if (containerIdBuilder_ == null) {
return containerId_;
} else {
return containerIdBuilder_.getMessage();
}
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder setContainerId(org.apache.mesos.Protos.ContainerID value) {
if (containerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
containerId_ = value;
onChanged();
} else {
containerIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder setContainerId(
org.apache.mesos.Protos.ContainerID.Builder builderForValue) {
if (containerIdBuilder_ == null) {
containerId_ = builderForValue.build();
onChanged();
} else {
containerIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder mergeContainerId(org.apache.mesos.Protos.ContainerID value) {
if (containerIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
containerId_ != org.apache.mesos.Protos.ContainerID.getDefaultInstance()) {
containerId_ =
org.apache.mesos.Protos.ContainerID.newBuilder(containerId_).mergeFrom(value).buildPartial();
} else {
containerId_ = value;
}
onChanged();
} else {
containerIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder clearContainerId() {
if (containerIdBuilder_ == null) {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
onChanged();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID.Builder getContainerIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getContainerIdFieldBuilder().getBuilder();
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() {
if (containerIdBuilder_ != null) {
return containerIdBuilder_.getMessageOrBuilder();
} else {
return containerId_;
}
}
/**
* required .mesos.ContainerID container_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder>
getContainerIdFieldBuilder() {
if (containerIdBuilder_ == null) {
containerIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder>(
containerId_,
getParentForChildren(),
isClean());
containerId_ = null;
}
return containerIdBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.containerizer.Wait)
}
static {
defaultInstance = new Wait(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.containerizer.Wait)
}
public interface DestroyOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .mesos.ContainerID container_id = 1;
/**
* required .mesos.ContainerID container_id = 1;
*/
boolean hasContainerId();
/**
* required .mesos.ContainerID container_id = 1;
*/
org.apache.mesos.Protos.ContainerID getContainerId();
/**
* required .mesos.ContainerID container_id = 1;
*/
org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder();
}
/**
* Protobuf type {@code mesos.containerizer.Destroy}
*
*
**
* Encodes the destroy command sent to the external containerizer
* program.
*
*/
public static final class Destroy extends
com.google.protobuf.GeneratedMessage
implements DestroyOrBuilder {
// Use Destroy.newBuilder() to construct.
private Destroy(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Destroy(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Destroy defaultInstance;
public static Destroy getDefaultInstance() {
return defaultInstance;
}
public Destroy getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Destroy(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.Protos.ContainerID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = containerId_.toBuilder();
}
containerId_ = input.readMessage(org.apache.mesos.Protos.ContainerID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(containerId_);
containerId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Destroy_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Destroy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Destroy.class, org.apache.mesos.containerizer.Protos.Destroy.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Destroy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Destroy(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .mesos.ContainerID container_id = 1;
public static final int CONTAINER_ID_FIELD_NUMBER = 1;
private org.apache.mesos.Protos.ContainerID containerId_;
/**
* required .mesos.ContainerID container_id = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID getContainerId() {
return containerId_;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() {
return containerId_;
}
private void initFields() {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasContainerId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getContainerId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, containerId_);
}
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, containerId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.containerizer.Protos.Destroy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Destroy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Destroy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Destroy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Destroy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Destroy parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Destroy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Destroy parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Destroy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Destroy parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.containerizer.Protos.Destroy 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 mesos.containerizer.Destroy}
*
*
**
* Encodes the destroy command sent to the external containerizer
* program.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.mesos.containerizer.Protos.DestroyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Destroy_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Destroy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Destroy.class, org.apache.mesos.containerizer.Protos.Destroy.Builder.class);
}
// Construct using org.apache.mesos.containerizer.Protos.Destroy.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getContainerIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (containerIdBuilder_ == null) {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Destroy_descriptor;
}
public org.apache.mesos.containerizer.Protos.Destroy getDefaultInstanceForType() {
return org.apache.mesos.containerizer.Protos.Destroy.getDefaultInstance();
}
public org.apache.mesos.containerizer.Protos.Destroy build() {
org.apache.mesos.containerizer.Protos.Destroy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.containerizer.Protos.Destroy buildPartial() {
org.apache.mesos.containerizer.Protos.Destroy result = new org.apache.mesos.containerizer.Protos.Destroy(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (containerIdBuilder_ == null) {
result.containerId_ = containerId_;
} else {
result.containerId_ = containerIdBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.containerizer.Protos.Destroy) {
return mergeFrom((org.apache.mesos.containerizer.Protos.Destroy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.containerizer.Protos.Destroy other) {
if (other == org.apache.mesos.containerizer.Protos.Destroy.getDefaultInstance()) return this;
if (other.hasContainerId()) {
mergeContainerId(other.getContainerId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasContainerId()) {
return false;
}
if (!getContainerId().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.containerizer.Protos.Destroy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.containerizer.Protos.Destroy) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .mesos.ContainerID container_id = 1;
private org.apache.mesos.Protos.ContainerID containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder> containerIdBuilder_;
/**
* required .mesos.ContainerID container_id = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID getContainerId() {
if (containerIdBuilder_ == null) {
return containerId_;
} else {
return containerIdBuilder_.getMessage();
}
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder setContainerId(org.apache.mesos.Protos.ContainerID value) {
if (containerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
containerId_ = value;
onChanged();
} else {
containerIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder setContainerId(
org.apache.mesos.Protos.ContainerID.Builder builderForValue) {
if (containerIdBuilder_ == null) {
containerId_ = builderForValue.build();
onChanged();
} else {
containerIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder mergeContainerId(org.apache.mesos.Protos.ContainerID value) {
if (containerIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
containerId_ != org.apache.mesos.Protos.ContainerID.getDefaultInstance()) {
containerId_ =
org.apache.mesos.Protos.ContainerID.newBuilder(containerId_).mergeFrom(value).buildPartial();
} else {
containerId_ = value;
}
onChanged();
} else {
containerIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder clearContainerId() {
if (containerIdBuilder_ == null) {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
onChanged();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID.Builder getContainerIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getContainerIdFieldBuilder().getBuilder();
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() {
if (containerIdBuilder_ != null) {
return containerIdBuilder_.getMessageOrBuilder();
} else {
return containerId_;
}
}
/**
* required .mesos.ContainerID container_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder>
getContainerIdFieldBuilder() {
if (containerIdBuilder_ == null) {
containerIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder>(
containerId_,
getParentForChildren(),
isClean());
containerId_ = null;
}
return containerIdBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.containerizer.Destroy)
}
static {
defaultInstance = new Destroy(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.containerizer.Destroy)
}
public interface UsageOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required .mesos.ContainerID container_id = 1;
/**
* required .mesos.ContainerID container_id = 1;
*/
boolean hasContainerId();
/**
* required .mesos.ContainerID container_id = 1;
*/
org.apache.mesos.Protos.ContainerID getContainerId();
/**
* required .mesos.ContainerID container_id = 1;
*/
org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder();
}
/**
* Protobuf type {@code mesos.containerizer.Usage}
*
*
**
* Encodes the usage command sent to the external containerizer
* program.
*
*/
public static final class Usage extends
com.google.protobuf.GeneratedMessage
implements UsageOrBuilder {
// Use Usage.newBuilder() to construct.
private Usage(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Usage(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Usage defaultInstance;
public static Usage getDefaultInstance() {
return defaultInstance;
}
public Usage getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Usage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
org.apache.mesos.Protos.ContainerID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = containerId_.toBuilder();
}
containerId_ = input.readMessage(org.apache.mesos.Protos.ContainerID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(containerId_);
containerId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Usage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Usage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Usage.class, org.apache.mesos.containerizer.Protos.Usage.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Usage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Usage(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required .mesos.ContainerID container_id = 1;
public static final int CONTAINER_ID_FIELD_NUMBER = 1;
private org.apache.mesos.Protos.ContainerID containerId_;
/**
* required .mesos.ContainerID container_id = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID getContainerId() {
return containerId_;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() {
return containerId_;
}
private void initFields() {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasContainerId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getContainerId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, containerId_);
}
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, containerId_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.containerizer.Protos.Usage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Usage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Usage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Usage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Usage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Usage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Usage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Usage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Usage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Usage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.containerizer.Protos.Usage 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 mesos.containerizer.Usage}
*
*
**
* Encodes the usage command sent to the external containerizer
* program.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.mesos.containerizer.Protos.UsageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Usage_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Usage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Usage.class, org.apache.mesos.containerizer.Protos.Usage.Builder.class);
}
// Construct using org.apache.mesos.containerizer.Protos.Usage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getContainerIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (containerIdBuilder_ == null) {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Usage_descriptor;
}
public org.apache.mesos.containerizer.Protos.Usage getDefaultInstanceForType() {
return org.apache.mesos.containerizer.Protos.Usage.getDefaultInstance();
}
public org.apache.mesos.containerizer.Protos.Usage build() {
org.apache.mesos.containerizer.Protos.Usage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.containerizer.Protos.Usage buildPartial() {
org.apache.mesos.containerizer.Protos.Usage result = new org.apache.mesos.containerizer.Protos.Usage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (containerIdBuilder_ == null) {
result.containerId_ = containerId_;
} else {
result.containerId_ = containerIdBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.containerizer.Protos.Usage) {
return mergeFrom((org.apache.mesos.containerizer.Protos.Usage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.containerizer.Protos.Usage other) {
if (other == org.apache.mesos.containerizer.Protos.Usage.getDefaultInstance()) return this;
if (other.hasContainerId()) {
mergeContainerId(other.getContainerId());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasContainerId()) {
return false;
}
if (!getContainerId().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.containerizer.Protos.Usage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.containerizer.Protos.Usage) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .mesos.ContainerID container_id = 1;
private org.apache.mesos.Protos.ContainerID containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder> containerIdBuilder_;
/**
* required .mesos.ContainerID container_id = 1;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID getContainerId() {
if (containerIdBuilder_ == null) {
return containerId_;
} else {
return containerIdBuilder_.getMessage();
}
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder setContainerId(org.apache.mesos.Protos.ContainerID value) {
if (containerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
containerId_ = value;
onChanged();
} else {
containerIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder setContainerId(
org.apache.mesos.Protos.ContainerID.Builder builderForValue) {
if (containerIdBuilder_ == null) {
containerId_ = builderForValue.build();
onChanged();
} else {
containerIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder mergeContainerId(org.apache.mesos.Protos.ContainerID value) {
if (containerIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
containerId_ != org.apache.mesos.Protos.ContainerID.getDefaultInstance()) {
containerId_ =
org.apache.mesos.Protos.ContainerID.newBuilder(containerId_).mergeFrom(value).buildPartial();
} else {
containerId_ = value;
}
onChanged();
} else {
containerIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public Builder clearContainerId() {
if (containerIdBuilder_ == null) {
containerId_ = org.apache.mesos.Protos.ContainerID.getDefaultInstance();
onChanged();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerID.Builder getContainerIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getContainerIdFieldBuilder().getBuilder();
}
/**
* required .mesos.ContainerID container_id = 1;
*/
public org.apache.mesos.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() {
if (containerIdBuilder_ != null) {
return containerIdBuilder_.getMessageOrBuilder();
} else {
return containerId_;
}
}
/**
* required .mesos.ContainerID container_id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder>
getContainerIdFieldBuilder() {
if (containerIdBuilder_ == null) {
containerIdBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder>(
containerId_,
getParentForChildren(),
isClean());
containerId_ = null;
}
return containerIdBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.containerizer.Usage)
}
static {
defaultInstance = new Usage(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.containerizer.Usage)
}
public interface TerminationOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// optional int32 status = 3;
/**
* optional int32 status = 3;
*
*
* Exit status of the process.
*
*/
boolean hasStatus();
/**
* optional int32 status = 3;
*
*
* Exit status of the process.
*
*/
int getStatus();
// optional .mesos.TaskState state = 4;
/**
* optional .mesos.TaskState state = 4;
*
*
* The 'state', 'reasons' and 'message' of a status update for
* non-terminal tasks when the executor is terminated.
*
*/
boolean hasState();
/**
* optional .mesos.TaskState state = 4;
*
*
* The 'state', 'reasons' and 'message' of a status update for
* non-terminal tasks when the executor is terminated.
*
*/
org.apache.mesos.Protos.TaskState getState();
// repeated .mesos.TaskStatus.Reason reasons = 5;
/**
* repeated .mesos.TaskStatus.Reason reasons = 5;
*/
java.util.List getReasonsList();
/**
* repeated .mesos.TaskStatus.Reason reasons = 5;
*/
int getReasonsCount();
/**
* repeated .mesos.TaskStatus.Reason reasons = 5;
*/
org.apache.mesos.Protos.TaskStatus.Reason getReasons(int index);
// optional string message = 2;
/**
* optional string message = 2;
*/
boolean hasMessage();
/**
* optional string message = 2;
*/
java.lang.String getMessage();
/**
* optional string message = 2;
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
* Protobuf type {@code mesos.containerizer.Termination}
*
*
**
* Information about a container termination, returned by the
* containerizer to the slave.
*
*/
public static final class Termination extends
com.google.protobuf.GeneratedMessage
implements TerminationOrBuilder {
// Use Termination.newBuilder() to construct.
private Termination(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Termination(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Termination defaultInstance;
public static Termination getDefaultInstance() {
return defaultInstance;
}
public Termination getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Termination(
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 18: {
bitField0_ |= 0x00000004;
message_ = input.readBytes();
break;
}
case 24: {
bitField0_ |= 0x00000001;
status_ = input.readInt32();
break;
}
case 32: {
int rawValue = input.readEnum();
org.apache.mesos.Protos.TaskState value = org.apache.mesos.Protos.TaskState.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(4, rawValue);
} else {
bitField0_ |= 0x00000002;
state_ = value;
}
break;
}
case 40: {
int rawValue = input.readEnum();
org.apache.mesos.Protos.TaskStatus.Reason value = org.apache.mesos.Protos.TaskStatus.Reason.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(5, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
reasons_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
reasons_.add(value);
}
break;
}
case 42: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
org.apache.mesos.Protos.TaskStatus.Reason value = org.apache.mesos.Protos.TaskStatus.Reason.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(5, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
reasons_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
reasons_.add(value);
}
}
input.popLimit(oldLimit);
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)) {
reasons_ = java.util.Collections.unmodifiableList(reasons_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Termination_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Termination_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Termination.class, org.apache.mesos.containerizer.Protos.Termination.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Termination parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Termination(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional int32 status = 3;
public static final int STATUS_FIELD_NUMBER = 3;
private int status_;
/**
* optional int32 status = 3;
*
*
* Exit status of the process.
*
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 status = 3;
*
*
* Exit status of the process.
*
*/
public int getStatus() {
return status_;
}
// optional .mesos.TaskState state = 4;
public static final int STATE_FIELD_NUMBER = 4;
private org.apache.mesos.Protos.TaskState state_;
/**
* optional .mesos.TaskState state = 4;
*
*
* The 'state', 'reasons' and 'message' of a status update for
* non-terminal tasks when the executor is terminated.
*
*/
public boolean hasState() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.TaskState state = 4;
*
*
* The 'state', 'reasons' and 'message' of a status update for
* non-terminal tasks when the executor is terminated.
*
*/
public org.apache.mesos.Protos.TaskState getState() {
return state_;
}
// repeated .mesos.TaskStatus.Reason reasons = 5;
public static final int REASONS_FIELD_NUMBER = 5;
private java.util.List reasons_;
/**
* repeated .mesos.TaskStatus.Reason reasons = 5;
*/
public java.util.List getReasonsList() {
return reasons_;
}
/**
* repeated .mesos.TaskStatus.Reason reasons = 5;
*/
public int getReasonsCount() {
return reasons_.size();
}
/**
* repeated .mesos.TaskStatus.Reason reasons = 5;
*/
public org.apache.mesos.Protos.TaskStatus.Reason getReasons(int index) {
return reasons_.get(index);
}
// optional string message = 2;
public static final int MESSAGE_FIELD_NUMBER = 2;
private java.lang.Object message_;
/**
* optional string message = 2;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string message = 2;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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()) {
message_ = s;
}
return s;
}
}
/**
* optional string message = 2;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
status_ = 0;
state_ = org.apache.mesos.Protos.TaskState.TASK_STAGING;
reasons_ = java.util.Collections.emptyList();
message_ = "";
}
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_ & 0x00000004) == 0x00000004)) {
output.writeBytes(2, getMessageBytes());
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(3, status_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(4, state_.getNumber());
}
for (int i = 0; i < reasons_.size(); i++) {
output.writeEnum(5, reasons_.get(i).getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getMessageBytes());
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, status_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, state_.getNumber());
}
{
int dataSize = 0;
for (int i = 0; i < reasons_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(reasons_.get(i).getNumber());
}
size += dataSize;
size += 1 * reasons_.size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.containerizer.Protos.Termination parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Termination parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Termination parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Termination parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Termination parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Termination parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Termination parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Termination parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Termination parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Termination parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.containerizer.Protos.Termination 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 mesos.containerizer.Termination}
*
*
**
* Information about a container termination, returned by the
* containerizer to the slave.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.mesos.containerizer.Protos.TerminationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Termination_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Termination_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Termination.class, org.apache.mesos.containerizer.Protos.Termination.Builder.class);
}
// Construct using org.apache.mesos.containerizer.Protos.Termination.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();
status_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
state_ = org.apache.mesos.Protos.TaskState.TASK_STAGING;
bitField0_ = (bitField0_ & ~0x00000002);
reasons_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
message_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Termination_descriptor;
}
public org.apache.mesos.containerizer.Protos.Termination getDefaultInstanceForType() {
return org.apache.mesos.containerizer.Protos.Termination.getDefaultInstance();
}
public org.apache.mesos.containerizer.Protos.Termination build() {
org.apache.mesos.containerizer.Protos.Termination result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.containerizer.Protos.Termination buildPartial() {
org.apache.mesos.containerizer.Protos.Termination result = new org.apache.mesos.containerizer.Protos.Termination(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.state_ = state_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
reasons_ = java.util.Collections.unmodifiableList(reasons_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.reasons_ = reasons_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.message_ = message_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.containerizer.Protos.Termination) {
return mergeFrom((org.apache.mesos.containerizer.Protos.Termination)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.containerizer.Protos.Termination other) {
if (other == org.apache.mesos.containerizer.Protos.Termination.getDefaultInstance()) return this;
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (other.hasState()) {
setState(other.getState());
}
if (!other.reasons_.isEmpty()) {
if (reasons_.isEmpty()) {
reasons_ = other.reasons_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureReasonsIsMutable();
reasons_.addAll(other.reasons_);
}
onChanged();
}
if (other.hasMessage()) {
bitField0_ |= 0x00000008;
message_ = other.message_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.containerizer.Protos.Termination parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.containerizer.Protos.Termination) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional int32 status = 3;
private int status_ ;
/**
* optional int32 status = 3;
*
*
* Exit status of the process.
*
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 status = 3;
*
*
* Exit status of the process.
*
*/
public int getStatus() {
return status_;
}
/**
* optional int32 status = 3;
*
*
* Exit status of the process.
*
*/
public Builder setStatus(int value) {
bitField0_ |= 0x00000001;
status_ = value;
onChanged();
return this;
}
/**
* optional int32 status = 3;
*
*
* Exit status of the process.
*
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
// optional .mesos.TaskState state = 4;
private org.apache.mesos.Protos.TaskState state_ = org.apache.mesos.Protos.TaskState.TASK_STAGING;
/**
* optional .mesos.TaskState state = 4;
*
*
* The 'state', 'reasons' and 'message' of a status update for
* non-terminal tasks when the executor is terminated.
*
*/
public boolean hasState() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.TaskState state = 4;
*
*
* The 'state', 'reasons' and 'message' of a status update for
* non-terminal tasks when the executor is terminated.
*
*/
public org.apache.mesos.Protos.TaskState getState() {
return state_;
}
/**
* optional .mesos.TaskState state = 4;
*
*
* The 'state', 'reasons' and 'message' of a status update for
* non-terminal tasks when the executor is terminated.
*
*/
public Builder setState(org.apache.mesos.Protos.TaskState value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
state_ = value;
onChanged();
return this;
}
/**
* optional .mesos.TaskState state = 4;
*
*
* The 'state', 'reasons' and 'message' of a status update for
* non-terminal tasks when the executor is terminated.
*
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000002);
state_ = org.apache.mesos.Protos.TaskState.TASK_STAGING;
onChanged();
return this;
}
// repeated .mesos.TaskStatus.Reason reasons = 5;
private java.util.List reasons_ =
java.util.Collections.emptyList();
private void ensureReasonsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
reasons_ = new java.util.ArrayList(reasons_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated .mesos.TaskStatus.Reason reasons = 5;
*/
public java.util.List getReasonsList() {
return java.util.Collections.unmodifiableList(reasons_);
}
/**
* repeated .mesos.TaskStatus.Reason reasons = 5;
*/
public int getReasonsCount() {
return reasons_.size();
}
/**
* repeated .mesos.TaskStatus.Reason reasons = 5;
*/
public org.apache.mesos.Protos.TaskStatus.Reason getReasons(int index) {
return reasons_.get(index);
}
/**
* repeated .mesos.TaskStatus.Reason reasons = 5;
*/
public Builder setReasons(
int index, org.apache.mesos.Protos.TaskStatus.Reason value) {
if (value == null) {
throw new NullPointerException();
}
ensureReasonsIsMutable();
reasons_.set(index, value);
onChanged();
return this;
}
/**
* repeated .mesos.TaskStatus.Reason reasons = 5;
*/
public Builder addReasons(org.apache.mesos.Protos.TaskStatus.Reason value) {
if (value == null) {
throw new NullPointerException();
}
ensureReasonsIsMutable();
reasons_.add(value);
onChanged();
return this;
}
/**
* repeated .mesos.TaskStatus.Reason reasons = 5;
*/
public Builder addAllReasons(
java.lang.Iterable extends org.apache.mesos.Protos.TaskStatus.Reason> values) {
ensureReasonsIsMutable();
super.addAll(values, reasons_);
onChanged();
return this;
}
/**
* repeated .mesos.TaskStatus.Reason reasons = 5;
*/
public Builder clearReasons() {
reasons_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
// optional string message = 2;
private java.lang.Object message_ = "";
/**
* optional string message = 2;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string message = 2;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string message = 2;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string message = 2;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
message_ = value;
onChanged();
return this;
}
/**
* optional string message = 2;
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000008);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* optional string message = 2;
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
message_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:mesos.containerizer.Termination)
}
static {
defaultInstance = new Termination(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.containerizer.Termination)
}
public interface ContainersOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .mesos.ContainerID containers = 1;
/**
* repeated .mesos.ContainerID containers = 1;
*/
java.util.List
getContainersList();
/**
* repeated .mesos.ContainerID containers = 1;
*/
org.apache.mesos.Protos.ContainerID getContainers(int index);
/**
* repeated .mesos.ContainerID containers = 1;
*/
int getContainersCount();
/**
* repeated .mesos.ContainerID containers = 1;
*/
java.util.List extends org.apache.mesos.Protos.ContainerIDOrBuilder>
getContainersOrBuilderList();
/**
* repeated .mesos.ContainerID containers = 1;
*/
org.apache.mesos.Protos.ContainerIDOrBuilder getContainersOrBuilder(
int index);
}
/**
* Protobuf type {@code mesos.containerizer.Containers}
*
*
**
* Information on all active containers returned by the containerizer
* to the slave.
*
*/
public static final class Containers extends
com.google.protobuf.GeneratedMessage
implements ContainersOrBuilder {
// Use Containers.newBuilder() to construct.
private Containers(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Containers(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Containers defaultInstance;
public static Containers getDefaultInstance() {
return defaultInstance;
}
public Containers getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Containers(
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)) {
containers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
containers_.add(input.readMessage(org.apache.mesos.Protos.ContainerID.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)) {
containers_ = java.util.Collections.unmodifiableList(containers_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Containers_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Containers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Containers.class, org.apache.mesos.containerizer.Protos.Containers.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Containers parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Containers(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated .mesos.ContainerID containers = 1;
public static final int CONTAINERS_FIELD_NUMBER = 1;
private java.util.List containers_;
/**
* repeated .mesos.ContainerID containers = 1;
*/
public java.util.List getContainersList() {
return containers_;
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public java.util.List extends org.apache.mesos.Protos.ContainerIDOrBuilder>
getContainersOrBuilderList() {
return containers_;
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public int getContainersCount() {
return containers_.size();
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public org.apache.mesos.Protos.ContainerID getContainers(int index) {
return containers_.get(index);
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public org.apache.mesos.Protos.ContainerIDOrBuilder getContainersOrBuilder(
int index) {
return containers_.get(index);
}
private void initFields() {
containers_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getContainersCount(); i++) {
if (!getContainers(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < containers_.size(); i++) {
output.writeMessage(1, containers_.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 < containers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, containers_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.apache.mesos.containerizer.Protos.Containers parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Containers parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Containers parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.containerizer.Protos.Containers parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Containers parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Containers parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Containers parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Containers parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.apache.mesos.containerizer.Protos.Containers parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.apache.mesos.containerizer.Protos.Containers parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.apache.mesos.containerizer.Protos.Containers 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 mesos.containerizer.Containers}
*
*
**
* Information on all active containers returned by the containerizer
* to the slave.
*
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
implements org.apache.mesos.containerizer.Protos.ContainersOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Containers_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Containers_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.containerizer.Protos.Containers.class, org.apache.mesos.containerizer.Protos.Containers.Builder.class);
}
// Construct using org.apache.mesos.containerizer.Protos.Containers.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getContainersFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (containersBuilder_ == null) {
containers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
containersBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.containerizer.Protos.internal_static_mesos_containerizer_Containers_descriptor;
}
public org.apache.mesos.containerizer.Protos.Containers getDefaultInstanceForType() {
return org.apache.mesos.containerizer.Protos.Containers.getDefaultInstance();
}
public org.apache.mesos.containerizer.Protos.Containers build() {
org.apache.mesos.containerizer.Protos.Containers result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.containerizer.Protos.Containers buildPartial() {
org.apache.mesos.containerizer.Protos.Containers result = new org.apache.mesos.containerizer.Protos.Containers(this);
int from_bitField0_ = bitField0_;
if (containersBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
containers_ = java.util.Collections.unmodifiableList(containers_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.containers_ = containers_;
} else {
result.containers_ = containersBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.containerizer.Protos.Containers) {
return mergeFrom((org.apache.mesos.containerizer.Protos.Containers)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.containerizer.Protos.Containers other) {
if (other == org.apache.mesos.containerizer.Protos.Containers.getDefaultInstance()) return this;
if (containersBuilder_ == null) {
if (!other.containers_.isEmpty()) {
if (containers_.isEmpty()) {
containers_ = other.containers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureContainersIsMutable();
containers_.addAll(other.containers_);
}
onChanged();
}
} else {
if (!other.containers_.isEmpty()) {
if (containersBuilder_.isEmpty()) {
containersBuilder_.dispose();
containersBuilder_ = null;
containers_ = other.containers_;
bitField0_ = (bitField0_ & ~0x00000001);
containersBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getContainersFieldBuilder() : null;
} else {
containersBuilder_.addAllMessages(other.containers_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getContainersCount(); i++) {
if (!getContainers(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.containerizer.Protos.Containers parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.containerizer.Protos.Containers) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .mesos.ContainerID containers = 1;
private java.util.List containers_ =
java.util.Collections.emptyList();
private void ensureContainersIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
containers_ = new java.util.ArrayList(containers_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder> containersBuilder_;
/**
* repeated .mesos.ContainerID containers = 1;
*/
public java.util.List getContainersList() {
if (containersBuilder_ == null) {
return java.util.Collections.unmodifiableList(containers_);
} else {
return containersBuilder_.getMessageList();
}
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public int getContainersCount() {
if (containersBuilder_ == null) {
return containers_.size();
} else {
return containersBuilder_.getCount();
}
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public org.apache.mesos.Protos.ContainerID getContainers(int index) {
if (containersBuilder_ == null) {
return containers_.get(index);
} else {
return containersBuilder_.getMessage(index);
}
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public Builder setContainers(
int index, org.apache.mesos.Protos.ContainerID value) {
if (containersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainersIsMutable();
containers_.set(index, value);
onChanged();
} else {
containersBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public Builder setContainers(
int index, org.apache.mesos.Protos.ContainerID.Builder builderForValue) {
if (containersBuilder_ == null) {
ensureContainersIsMutable();
containers_.set(index, builderForValue.build());
onChanged();
} else {
containersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public Builder addContainers(org.apache.mesos.Protos.ContainerID value) {
if (containersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainersIsMutable();
containers_.add(value);
onChanged();
} else {
containersBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public Builder addContainers(
int index, org.apache.mesos.Protos.ContainerID value) {
if (containersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainersIsMutable();
containers_.add(index, value);
onChanged();
} else {
containersBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public Builder addContainers(
org.apache.mesos.Protos.ContainerID.Builder builderForValue) {
if (containersBuilder_ == null) {
ensureContainersIsMutable();
containers_.add(builderForValue.build());
onChanged();
} else {
containersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public Builder addContainers(
int index, org.apache.mesos.Protos.ContainerID.Builder builderForValue) {
if (containersBuilder_ == null) {
ensureContainersIsMutable();
containers_.add(index, builderForValue.build());
onChanged();
} else {
containersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public Builder addAllContainers(
java.lang.Iterable extends org.apache.mesos.Protos.ContainerID> values) {
if (containersBuilder_ == null) {
ensureContainersIsMutable();
super.addAll(values, containers_);
onChanged();
} else {
containersBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public Builder clearContainers() {
if (containersBuilder_ == null) {
containers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
containersBuilder_.clear();
}
return this;
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public Builder removeContainers(int index) {
if (containersBuilder_ == null) {
ensureContainersIsMutable();
containers_.remove(index);
onChanged();
} else {
containersBuilder_.remove(index);
}
return this;
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public org.apache.mesos.Protos.ContainerID.Builder getContainersBuilder(
int index) {
return getContainersFieldBuilder().getBuilder(index);
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public org.apache.mesos.Protos.ContainerIDOrBuilder getContainersOrBuilder(
int index) {
if (containersBuilder_ == null) {
return containers_.get(index); } else {
return containersBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public java.util.List extends org.apache.mesos.Protos.ContainerIDOrBuilder>
getContainersOrBuilderList() {
if (containersBuilder_ != null) {
return containersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(containers_);
}
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public org.apache.mesos.Protos.ContainerID.Builder addContainersBuilder() {
return getContainersFieldBuilder().addBuilder(
org.apache.mesos.Protos.ContainerID.getDefaultInstance());
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public org.apache.mesos.Protos.ContainerID.Builder addContainersBuilder(
int index) {
return getContainersFieldBuilder().addBuilder(
index, org.apache.mesos.Protos.ContainerID.getDefaultInstance());
}
/**
* repeated .mesos.ContainerID containers = 1;
*/
public java.util.List
getContainersBuilderList() {
return getContainersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder>
getContainersFieldBuilder() {
if (containersBuilder_ == null) {
containersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.apache.mesos.Protos.ContainerID, org.apache.mesos.Protos.ContainerID.Builder, org.apache.mesos.Protos.ContainerIDOrBuilder>(
containers_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
containers_ = null;
}
return containersBuilder_;
}
// @@protoc_insertion_point(builder_scope:mesos.containerizer.Containers)
}
static {
defaultInstance = new Containers(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:mesos.containerizer.Containers)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_containerizer_Launch_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_containerizer_Launch_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_containerizer_Update_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_containerizer_Update_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_containerizer_Wait_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_containerizer_Wait_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_containerizer_Destroy_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_containerizer_Destroy_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_containerizer_Usage_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_containerizer_Usage_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_containerizer_Termination_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_containerizer_Termination_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_containerizer_Containers_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_mesos_containerizer_Containers_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\'mesos/containerizer/containerizer.prot" +
"o\022\023mesos.containerizer\032\021mesos/mesos.prot" +
"o\"\354\001\n\006Launch\022(\n\014container_id\030\001 \002(\0132\022.mes" +
"os.ContainerID\022\"\n\ttask_info\030\002 \001(\0132\017.meso" +
"s.TaskInfo\022*\n\rexecutor_info\030\003 \001(\0132\023.meso" +
"s.ExecutorInfo\022\021\n\tdirectory\030\004 \001(\t\022\014\n\004use" +
"r\030\005 \001(\t\022 \n\010slave_id\030\006 \001(\0132\016.mesos.SlaveI" +
"D\022\021\n\tslave_pid\030\007 \001(\t\022\022\n\ncheckpoint\030\010 \001(\010" +
"\"V\n\006Update\022(\n\014container_id\030\001 \002(\0132\022.mesos" +
".ContainerID\022\"\n\tresources\030\002 \003(\0132\017.mesos.",
"Resource\"0\n\004Wait\022(\n\014container_id\030\001 \002(\0132\022" +
".mesos.ContainerID\"3\n\007Destroy\022(\n\014contain" +
"er_id\030\001 \002(\0132\022.mesos.ContainerID\"1\n\005Usage" +
"\022(\n\014container_id\030\001 \002(\0132\022.mesos.Container" +
"ID\"z\n\013Termination\022\016\n\006status\030\003 \001(\005\022\037\n\005sta" +
"te\030\004 \001(\0162\020.mesos.TaskState\022)\n\007reasons\030\005 " +
"\003(\0162\030.mesos.TaskStatus.Reason\022\017\n\007message" +
"\030\002 \001(\t\"4\n\nContainers\022&\n\ncontainers\030\001 \003(\013" +
"2\022.mesos.ContainerIDB(\n\036org.apache.mesos" +
".containerizerB\006Protos"
};
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_mesos_containerizer_Launch_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_mesos_containerizer_Launch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_containerizer_Launch_descriptor,
new java.lang.String[] { "ContainerId", "TaskInfo", "ExecutorInfo", "Directory", "User", "SlaveId", "SlavePid", "Checkpoint", });
internal_static_mesos_containerizer_Update_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_mesos_containerizer_Update_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_containerizer_Update_descriptor,
new java.lang.String[] { "ContainerId", "Resources", });
internal_static_mesos_containerizer_Wait_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_mesos_containerizer_Wait_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_containerizer_Wait_descriptor,
new java.lang.String[] { "ContainerId", });
internal_static_mesos_containerizer_Destroy_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_mesos_containerizer_Destroy_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_containerizer_Destroy_descriptor,
new java.lang.String[] { "ContainerId", });
internal_static_mesos_containerizer_Usage_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_mesos_containerizer_Usage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_containerizer_Usage_descriptor,
new java.lang.String[] { "ContainerId", });
internal_static_mesos_containerizer_Termination_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_mesos_containerizer_Termination_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_containerizer_Termination_descriptor,
new java.lang.String[] { "Status", "State", "Reasons", "Message", });
internal_static_mesos_containerizer_Containers_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_mesos_containerizer_Containers_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_mesos_containerizer_Containers_descriptor,
new java.lang.String[] { "Containers", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.apache.mesos.Protos.getDescriptor(),
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy