org.apache.mesos.v1.executor.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/v1/executor/executor.proto
package org.apache.mesos.v1.executor;
public final class Protos {
private Protos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface EventOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.executor.Event)
com.google.protobuf.MessageOrBuilder {
/**
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*
* optional .mesos.v1.executor.Event.Type type = 1;
*/
boolean hasType();
/**
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*
* optional .mesos.v1.executor.Event.Type type = 1;
*/
org.apache.mesos.v1.executor.Protos.Event.Type getType();
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
boolean hasSubscribed();
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
org.apache.mesos.v1.executor.Protos.Event.Subscribed getSubscribed();
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
org.apache.mesos.v1.executor.Protos.Event.SubscribedOrBuilder getSubscribedOrBuilder();
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
boolean hasAcknowledged();
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
org.apache.mesos.v1.executor.Protos.Event.Acknowledged getAcknowledged();
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
org.apache.mesos.v1.executor.Protos.Event.AcknowledgedOrBuilder getAcknowledgedOrBuilder();
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
boolean hasLaunch();
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
org.apache.mesos.v1.executor.Protos.Event.Launch getLaunch();
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
org.apache.mesos.v1.executor.Protos.Event.LaunchOrBuilder getLaunchOrBuilder();
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
boolean hasLaunchGroup();
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
org.apache.mesos.v1.executor.Protos.Event.LaunchGroup getLaunchGroup();
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
org.apache.mesos.v1.executor.Protos.Event.LaunchGroupOrBuilder getLaunchGroupOrBuilder();
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
boolean hasKill();
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
org.apache.mesos.v1.executor.Protos.Event.Kill getKill();
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
org.apache.mesos.v1.executor.Protos.Event.KillOrBuilder getKillOrBuilder();
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
boolean hasMessage();
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
org.apache.mesos.v1.executor.Protos.Event.Message getMessage();
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
org.apache.mesos.v1.executor.Protos.Event.MessageOrBuilder getMessageOrBuilder();
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
boolean hasError();
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
org.apache.mesos.v1.executor.Protos.Event.Error getError();
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
org.apache.mesos.v1.executor.Protos.Event.ErrorOrBuilder getErrorOrBuilder();
}
/**
*
**
* Executor event API.
* An event is described using the standard protocol buffer "union"
* trick, see https://developers.google.com/protocol-buffers/docs/techniques#union.
*
*
* Protobuf type {@code mesos.v1.executor.Event}
*/
public static final class Event extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mesos.v1.executor.Event)
EventOrBuilder {
private static final long serialVersionUID = 0L;
// Use Event.newBuilder() to construct.
private Event(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Event() {
type_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Event(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
org.apache.mesos.v1.executor.Protos.Event.Type value = org.apache.mesos.v1.executor.Protos.Event.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
type_ = rawValue;
}
break;
}
case 18: {
org.apache.mesos.v1.executor.Protos.Event.Subscribed.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = subscribed_.toBuilder();
}
subscribed_ = input.readMessage(org.apache.mesos.v1.executor.Protos.Event.Subscribed.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(subscribed_);
subscribed_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.apache.mesos.v1.executor.Protos.Event.Acknowledged.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = acknowledged_.toBuilder();
}
acknowledged_ = input.readMessage(org.apache.mesos.v1.executor.Protos.Event.Acknowledged.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(acknowledged_);
acknowledged_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
org.apache.mesos.v1.executor.Protos.Event.Launch.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = launch_.toBuilder();
}
launch_ = input.readMessage(org.apache.mesos.v1.executor.Protos.Event.Launch.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(launch_);
launch_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
org.apache.mesos.v1.executor.Protos.Event.Kill.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = kill_.toBuilder();
}
kill_ = input.readMessage(org.apache.mesos.v1.executor.Protos.Event.Kill.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(kill_);
kill_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 50: {
org.apache.mesos.v1.executor.Protos.Event.Message.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = message_.toBuilder();
}
message_ = input.readMessage(org.apache.mesos.v1.executor.Protos.Event.Message.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(message_);
message_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 58: {
org.apache.mesos.v1.executor.Protos.Event.Error.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) == 0x00000080)) {
subBuilder = error_.toBuilder();
}
error_ = input.readMessage(org.apache.mesos.v1.executor.Protos.Event.Error.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(error_);
error_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
case 66: {
org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = launchGroup_.toBuilder();
}
launchGroup_ = input.readMessage(org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(launchGroup_);
launchGroup_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.class, org.apache.mesos.v1.executor.Protos.Event.Builder.class);
}
/**
*
* Possible event types, followed by message definitions if
* applicable.
*
*
* Protobuf enum {@code mesos.v1.executor.Event.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* This must be the first enum value in this list, to
* ensure that if 'type' is not set, the default value
* is UNKNOWN. This enables enum values to be added
* in a backwards-compatible way. See: MESOS-4997.
*
*
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
*
* See 'Subscribed' below.
*
*
* SUBSCRIBED = 1;
*/
SUBSCRIBED(1),
/**
*
* See 'Launch' below.
*
*
* LAUNCH = 2;
*/
LAUNCH(2),
/**
*
* See 'LaunchGroup' below.
*
*
* LAUNCH_GROUP = 8;
*/
LAUNCH_GROUP(8),
/**
*
* See 'Kill' below.
*
*
* KILL = 3;
*/
KILL(3),
/**
*
* See 'Acknowledged' below.
*
*
* ACKNOWLEDGED = 4;
*/
ACKNOWLEDGED(4),
/**
*
* See 'Message' below.
*
*
* MESSAGE = 5;
*/
MESSAGE(5),
/**
*
* See 'Error' below.
*
*
* ERROR = 6;
*/
ERROR(6),
/**
*
* Received when the agent asks the executor to shutdown/kill itself.
* The executor is then required to kill all its active tasks, send
* `TASK_KILLED` status updates and gracefully exit. The executor
* should terminate within a `MESOS_EXECUTOR_SHUTDOWN_GRACE_PERIOD`
* (an environment variable set by the agent upon executor startup);
* it can be configured via `ExecutorInfo.shutdown_grace_period`. If
* the executor fails to do so, the agent will forcefully destroy the
* container where the executor is running. The agent would then send
* `TASK_LOST` updates for any remaining active tasks of this executor.
* NOTE: The executor must not assume that it will always be allotted
* the full grace period, as the agent may decide to allot a shorter
* period and failures / forcible terminations may occur.
* TODO(alexr): Consider adding a duration field into the `Shutdown`
* message so that the agent can communicate when a shorter period
* has been allotted.
*
*
* SHUTDOWN = 7;
*/
SHUTDOWN(7),
/**
*
* Received periodically to make sure the connection is alive and to
* prevent any possible network intermediaries from marking the
* connection as stale (when there are no other messages being sent).
*
*
* HEARTBEAT = 9;
*/
HEARTBEAT(9),
;
/**
*
* This must be the first enum value in this list, to
* ensure that if 'type' is not set, the default value
* is UNKNOWN. This enables enum values to be added
* in a backwards-compatible way. See: MESOS-4997.
*
*
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
*
* See 'Subscribed' below.
*
*
* SUBSCRIBED = 1;
*/
public static final int SUBSCRIBED_VALUE = 1;
/**
*
* See 'Launch' below.
*
*
* LAUNCH = 2;
*/
public static final int LAUNCH_VALUE = 2;
/**
*
* See 'LaunchGroup' below.
*
*
* LAUNCH_GROUP = 8;
*/
public static final int LAUNCH_GROUP_VALUE = 8;
/**
*
* See 'Kill' below.
*
*
* KILL = 3;
*/
public static final int KILL_VALUE = 3;
/**
*
* See 'Acknowledged' below.
*
*
* ACKNOWLEDGED = 4;
*/
public static final int ACKNOWLEDGED_VALUE = 4;
/**
*
* See 'Message' below.
*
*
* MESSAGE = 5;
*/
public static final int MESSAGE_VALUE = 5;
/**
*
* See 'Error' below.
*
*
* ERROR = 6;
*/
public static final int ERROR_VALUE = 6;
/**
*
* Received when the agent asks the executor to shutdown/kill itself.
* The executor is then required to kill all its active tasks, send
* `TASK_KILLED` status updates and gracefully exit. The executor
* should terminate within a `MESOS_EXECUTOR_SHUTDOWN_GRACE_PERIOD`
* (an environment variable set by the agent upon executor startup);
* it can be configured via `ExecutorInfo.shutdown_grace_period`. If
* the executor fails to do so, the agent will forcefully destroy the
* container where the executor is running. The agent would then send
* `TASK_LOST` updates for any remaining active tasks of this executor.
* NOTE: The executor must not assume that it will always be allotted
* the full grace period, as the agent may decide to allot a shorter
* period and failures / forcible terminations may occur.
* TODO(alexr): Consider adding a duration field into the `Shutdown`
* message so that the agent can communicate when a shorter period
* has been allotted.
*
*
* SHUTDOWN = 7;
*/
public static final int SHUTDOWN_VALUE = 7;
/**
*
* Received periodically to make sure the connection is alive and to
* prevent any possible network intermediaries from marking the
* connection as stale (when there are no other messages being sent).
*
*
* HEARTBEAT = 9;
*/
public static final int HEARTBEAT_VALUE = 9;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
public static Type forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return SUBSCRIBED;
case 2: return LAUNCH;
case 8: return LAUNCH_GROUP;
case 3: return KILL;
case 4: return ACKNOWLEDGED;
case 5: return MESSAGE;
case 6: return ERROR;
case 7: return SHUTDOWN;
case 9: return HEARTBEAT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.Event.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:mesos.v1.executor.Event.Type)
}
public interface SubscribedOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.executor.Event.Subscribed)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
boolean hasExecutorInfo();
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
org.apache.mesos.v1.Protos.ExecutorInfo getExecutorInfo();
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder getExecutorInfoOrBuilder();
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
boolean hasFrameworkInfo();
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
org.apache.mesos.v1.Protos.FrameworkInfo getFrameworkInfo();
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder getFrameworkInfoOrBuilder();
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
boolean hasAgentInfo();
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
org.apache.mesos.v1.Protos.AgentInfo getAgentInfo();
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
org.apache.mesos.v1.Protos.AgentInfoOrBuilder getAgentInfoOrBuilder();
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
boolean hasContainerId();
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
org.apache.mesos.v1.Protos.ContainerID getContainerId();
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder();
}
/**
*
* First event received when the executor subscribes.
* The 'id' field in the 'framework_info' will be set.
*
*
* Protobuf type {@code mesos.v1.executor.Event.Subscribed}
*/
public static final class Subscribed extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.Subscribed)
SubscribedOrBuilder {
private static final long serialVersionUID = 0L;
// Use Subscribed.newBuilder() to construct.
private Subscribed(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Subscribed() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Subscribed(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.v1.Protos.ExecutorInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = executorInfo_.toBuilder();
}
executorInfo_ = input.readMessage(org.apache.mesos.v1.Protos.ExecutorInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(executorInfo_);
executorInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.mesos.v1.Protos.FrameworkInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = frameworkInfo_.toBuilder();
}
frameworkInfo_ = input.readMessage(org.apache.mesos.v1.Protos.FrameworkInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(frameworkInfo_);
frameworkInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.apache.mesos.v1.Protos.AgentInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = agentInfo_.toBuilder();
}
agentInfo_ = input.readMessage(org.apache.mesos.v1.Protos.AgentInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(agentInfo_);
agentInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
org.apache.mesos.v1.Protos.ContainerID.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = containerId_.toBuilder();
}
containerId_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(containerId_);
containerId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Subscribed_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Subscribed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.Subscribed.class, org.apache.mesos.v1.executor.Protos.Event.Subscribed.Builder.class);
}
private int bitField0_;
public static final int EXECUTOR_INFO_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.ExecutorInfo executorInfo_;
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
public boolean hasExecutorInfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorInfo getExecutorInfo() {
return executorInfo_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executorInfo_;
}
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder getExecutorInfoOrBuilder() {
return executorInfo_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executorInfo_;
}
public static final int FRAMEWORK_INFO_FIELD_NUMBER = 2;
private org.apache.mesos.v1.Protos.FrameworkInfo frameworkInfo_;
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
public boolean hasFrameworkInfo() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
public org.apache.mesos.v1.Protos.FrameworkInfo getFrameworkInfo() {
return frameworkInfo_ == null ? org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance() : frameworkInfo_;
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
public org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder getFrameworkInfoOrBuilder() {
return frameworkInfo_ == null ? org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance() : frameworkInfo_;
}
public static final int AGENT_INFO_FIELD_NUMBER = 3;
private org.apache.mesos.v1.Protos.AgentInfo agentInfo_;
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
public boolean hasAgentInfo() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
public org.apache.mesos.v1.Protos.AgentInfo getAgentInfo() {
return agentInfo_ == null ? org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance() : agentInfo_;
}
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
public org.apache.mesos.v1.Protos.AgentInfoOrBuilder getAgentInfoOrBuilder() {
return agentInfo_ == null ? org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance() : agentInfo_;
}
public static final int CONTAINER_ID_FIELD_NUMBER = 4;
private org.apache.mesos.v1.Protos.ContainerID containerId_;
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
public org.apache.mesos.v1.Protos.ContainerID getContainerId() {
return containerId_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : containerId_;
}
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() {
return containerId_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : containerId_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasExecutorInfo()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasFrameworkInfo()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasAgentInfo()) {
memoizedIsInitialized = 0;
return false;
}
if (!getExecutorInfo().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getFrameworkInfo().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getAgentInfo().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (hasContainerId()) {
if (!getContainerId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getExecutorInfo());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getFrameworkInfo());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getAgentInfo());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getContainerId());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getExecutorInfo());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFrameworkInfo());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAgentInfo());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getContainerId());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.mesos.v1.executor.Protos.Event.Subscribed)) {
return super.equals(obj);
}
org.apache.mesos.v1.executor.Protos.Event.Subscribed other = (org.apache.mesos.v1.executor.Protos.Event.Subscribed) obj;
boolean result = true;
result = result && (hasExecutorInfo() == other.hasExecutorInfo());
if (hasExecutorInfo()) {
result = result && getExecutorInfo()
.equals(other.getExecutorInfo());
}
result = result && (hasFrameworkInfo() == other.hasFrameworkInfo());
if (hasFrameworkInfo()) {
result = result && getFrameworkInfo()
.equals(other.getFrameworkInfo());
}
result = result && (hasAgentInfo() == other.hasAgentInfo());
if (hasAgentInfo()) {
result = result && getAgentInfo()
.equals(other.getAgentInfo());
}
result = result && (hasContainerId() == other.hasContainerId());
if (hasContainerId()) {
result = result && getContainerId()
.equals(other.getContainerId());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasExecutorInfo()) {
hash = (37 * hash) + EXECUTOR_INFO_FIELD_NUMBER;
hash = (53 * hash) + getExecutorInfo().hashCode();
}
if (hasFrameworkInfo()) {
hash = (37 * hash) + FRAMEWORK_INFO_FIELD_NUMBER;
hash = (53 * hash) + getFrameworkInfo().hashCode();
}
if (hasAgentInfo()) {
hash = (37 * hash) + AGENT_INFO_FIELD_NUMBER;
hash = (53 * hash) + getAgentInfo().hashCode();
}
if (hasContainerId()) {
hash = (37 * hash) + CONTAINER_ID_FIELD_NUMBER;
hash = (53 * hash) + getContainerId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.mesos.v1.executor.Protos.Event.Subscribed parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Subscribed parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Subscribed parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Subscribed 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.v1.executor.Protos.Event.Subscribed parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Subscribed parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Subscribed parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Subscribed parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Subscribed parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Subscribed parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Subscribed parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Subscribed parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.Subscribed prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* First event received when the executor subscribes.
* The 'id' field in the 'framework_info' will be set.
*
*
* Protobuf type {@code mesos.v1.executor.Event.Subscribed}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.executor.Event.Subscribed)
org.apache.mesos.v1.executor.Protos.Event.SubscribedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Subscribed_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Subscribed_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.Subscribed.class, org.apache.mesos.v1.executor.Protos.Event.Subscribed.Builder.class);
}
// Construct using org.apache.mesos.v1.executor.Protos.Event.Subscribed.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExecutorInfoFieldBuilder();
getFrameworkInfoFieldBuilder();
getAgentInfoFieldBuilder();
getContainerIdFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (executorInfoBuilder_ == null) {
executorInfo_ = null;
} else {
executorInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (frameworkInfoBuilder_ == null) {
frameworkInfo_ = null;
} else {
frameworkInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (agentInfoBuilder_ == null) {
agentInfo_ = null;
} else {
agentInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (containerIdBuilder_ == null) {
containerId_ = null;
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Subscribed_descriptor;
}
public org.apache.mesos.v1.executor.Protos.Event.Subscribed getDefaultInstanceForType() {
return org.apache.mesos.v1.executor.Protos.Event.Subscribed.getDefaultInstance();
}
public org.apache.mesos.v1.executor.Protos.Event.Subscribed build() {
org.apache.mesos.v1.executor.Protos.Event.Subscribed result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.executor.Protos.Event.Subscribed buildPartial() {
org.apache.mesos.v1.executor.Protos.Event.Subscribed result = new org.apache.mesos.v1.executor.Protos.Event.Subscribed(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (executorInfoBuilder_ == null) {
result.executorInfo_ = executorInfo_;
} else {
result.executorInfo_ = executorInfoBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (frameworkInfoBuilder_ == null) {
result.frameworkInfo_ = frameworkInfo_;
} else {
result.frameworkInfo_ = frameworkInfoBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (agentInfoBuilder_ == null) {
result.agentInfo_ = agentInfo_;
} else {
result.agentInfo_ = agentInfoBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (containerIdBuilder_ == null) {
result.containerId_ = containerId_;
} else {
result.containerId_ = containerIdBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.executor.Protos.Event.Subscribed) {
return mergeFrom((org.apache.mesos.v1.executor.Protos.Event.Subscribed)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.executor.Protos.Event.Subscribed other) {
if (other == org.apache.mesos.v1.executor.Protos.Event.Subscribed.getDefaultInstance()) return this;
if (other.hasExecutorInfo()) {
mergeExecutorInfo(other.getExecutorInfo());
}
if (other.hasFrameworkInfo()) {
mergeFrameworkInfo(other.getFrameworkInfo());
}
if (other.hasAgentInfo()) {
mergeAgentInfo(other.getAgentInfo());
}
if (other.hasContainerId()) {
mergeContainerId(other.getContainerId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasExecutorInfo()) {
return false;
}
if (!hasFrameworkInfo()) {
return false;
}
if (!hasAgentInfo()) {
return false;
}
if (!getExecutorInfo().isInitialized()) {
return false;
}
if (!getFrameworkInfo().isInitialized()) {
return false;
}
if (!getAgentInfo().isInitialized()) {
return false;
}
if (hasContainerId()) {
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.v1.executor.Protos.Event.Subscribed parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.executor.Protos.Event.Subscribed) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.ExecutorInfo executorInfo_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.ExecutorInfo, org.apache.mesos.v1.Protos.ExecutorInfo.Builder, org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder> executorInfoBuilder_;
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
public boolean hasExecutorInfo() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorInfo getExecutorInfo() {
if (executorInfoBuilder_ == null) {
return executorInfo_ == null ? org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executorInfo_;
} else {
return executorInfoBuilder_.getMessage();
}
}
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
public Builder setExecutorInfo(org.apache.mesos.v1.Protos.ExecutorInfo value) {
if (executorInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executorInfo_ = value;
onChanged();
} else {
executorInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
public Builder setExecutorInfo(
org.apache.mesos.v1.Protos.ExecutorInfo.Builder builderForValue) {
if (executorInfoBuilder_ == null) {
executorInfo_ = builderForValue.build();
onChanged();
} else {
executorInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
public Builder mergeExecutorInfo(org.apache.mesos.v1.Protos.ExecutorInfo value) {
if (executorInfoBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
executorInfo_ != null &&
executorInfo_ != org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance()) {
executorInfo_ =
org.apache.mesos.v1.Protos.ExecutorInfo.newBuilder(executorInfo_).mergeFrom(value).buildPartial();
} else {
executorInfo_ = value;
}
onChanged();
} else {
executorInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
public Builder clearExecutorInfo() {
if (executorInfoBuilder_ == null) {
executorInfo_ = null;
onChanged();
} else {
executorInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorInfo.Builder getExecutorInfoBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getExecutorInfoFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder getExecutorInfoOrBuilder() {
if (executorInfoBuilder_ != null) {
return executorInfoBuilder_.getMessageOrBuilder();
} else {
return executorInfo_ == null ?
org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance() : executorInfo_;
}
}
/**
* required .mesos.v1.ExecutorInfo executor_info = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.ExecutorInfo, org.apache.mesos.v1.Protos.ExecutorInfo.Builder, org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder>
getExecutorInfoFieldBuilder() {
if (executorInfoBuilder_ == null) {
executorInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.ExecutorInfo, org.apache.mesos.v1.Protos.ExecutorInfo.Builder, org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder>(
getExecutorInfo(),
getParentForChildren(),
isClean());
executorInfo_ = null;
}
return executorInfoBuilder_;
}
private org.apache.mesos.v1.Protos.FrameworkInfo frameworkInfo_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.FrameworkInfo, org.apache.mesos.v1.Protos.FrameworkInfo.Builder, org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder> frameworkInfoBuilder_;
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
public boolean hasFrameworkInfo() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
public org.apache.mesos.v1.Protos.FrameworkInfo getFrameworkInfo() {
if (frameworkInfoBuilder_ == null) {
return frameworkInfo_ == null ? org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance() : frameworkInfo_;
} else {
return frameworkInfoBuilder_.getMessage();
}
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
public Builder setFrameworkInfo(org.apache.mesos.v1.Protos.FrameworkInfo value) {
if (frameworkInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
frameworkInfo_ = value;
onChanged();
} else {
frameworkInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
public Builder setFrameworkInfo(
org.apache.mesos.v1.Protos.FrameworkInfo.Builder builderForValue) {
if (frameworkInfoBuilder_ == null) {
frameworkInfo_ = builderForValue.build();
onChanged();
} else {
frameworkInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
public Builder mergeFrameworkInfo(org.apache.mesos.v1.Protos.FrameworkInfo value) {
if (frameworkInfoBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
frameworkInfo_ != null &&
frameworkInfo_ != org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance()) {
frameworkInfo_ =
org.apache.mesos.v1.Protos.FrameworkInfo.newBuilder(frameworkInfo_).mergeFrom(value).buildPartial();
} else {
frameworkInfo_ = value;
}
onChanged();
} else {
frameworkInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
public Builder clearFrameworkInfo() {
if (frameworkInfoBuilder_ == null) {
frameworkInfo_ = null;
onChanged();
} else {
frameworkInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
public org.apache.mesos.v1.Protos.FrameworkInfo.Builder getFrameworkInfoBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getFrameworkInfoFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
public org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder getFrameworkInfoOrBuilder() {
if (frameworkInfoBuilder_ != null) {
return frameworkInfoBuilder_.getMessageOrBuilder();
} else {
return frameworkInfo_ == null ?
org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance() : frameworkInfo_;
}
}
/**
* required .mesos.v1.FrameworkInfo framework_info = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.FrameworkInfo, org.apache.mesos.v1.Protos.FrameworkInfo.Builder, org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder>
getFrameworkInfoFieldBuilder() {
if (frameworkInfoBuilder_ == null) {
frameworkInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.FrameworkInfo, org.apache.mesos.v1.Protos.FrameworkInfo.Builder, org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder>(
getFrameworkInfo(),
getParentForChildren(),
isClean());
frameworkInfo_ = null;
}
return frameworkInfoBuilder_;
}
private org.apache.mesos.v1.Protos.AgentInfo agentInfo_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.AgentInfo, org.apache.mesos.v1.Protos.AgentInfo.Builder, org.apache.mesos.v1.Protos.AgentInfoOrBuilder> agentInfoBuilder_;
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
public boolean hasAgentInfo() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
public org.apache.mesos.v1.Protos.AgentInfo getAgentInfo() {
if (agentInfoBuilder_ == null) {
return agentInfo_ == null ? org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance() : agentInfo_;
} else {
return agentInfoBuilder_.getMessage();
}
}
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
public Builder setAgentInfo(org.apache.mesos.v1.Protos.AgentInfo value) {
if (agentInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agentInfo_ = value;
onChanged();
} else {
agentInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
public Builder setAgentInfo(
org.apache.mesos.v1.Protos.AgentInfo.Builder builderForValue) {
if (agentInfoBuilder_ == null) {
agentInfo_ = builderForValue.build();
onChanged();
} else {
agentInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
public Builder mergeAgentInfo(org.apache.mesos.v1.Protos.AgentInfo value) {
if (agentInfoBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
agentInfo_ != null &&
agentInfo_ != org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance()) {
agentInfo_ =
org.apache.mesos.v1.Protos.AgentInfo.newBuilder(agentInfo_).mergeFrom(value).buildPartial();
} else {
agentInfo_ = value;
}
onChanged();
} else {
agentInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
public Builder clearAgentInfo() {
if (agentInfoBuilder_ == null) {
agentInfo_ = null;
onChanged();
} else {
agentInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
public org.apache.mesos.v1.Protos.AgentInfo.Builder getAgentInfoBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getAgentInfoFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
public org.apache.mesos.v1.Protos.AgentInfoOrBuilder getAgentInfoOrBuilder() {
if (agentInfoBuilder_ != null) {
return agentInfoBuilder_.getMessageOrBuilder();
} else {
return agentInfo_ == null ?
org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance() : agentInfo_;
}
}
/**
* required .mesos.v1.AgentInfo agent_info = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.AgentInfo, org.apache.mesos.v1.Protos.AgentInfo.Builder, org.apache.mesos.v1.Protos.AgentInfoOrBuilder>
getAgentInfoFieldBuilder() {
if (agentInfoBuilder_ == null) {
agentInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.AgentInfo, org.apache.mesos.v1.Protos.AgentInfo.Builder, org.apache.mesos.v1.Protos.AgentInfoOrBuilder>(
getAgentInfo(),
getParentForChildren(),
isClean());
agentInfo_ = null;
}
return agentInfoBuilder_;
}
private org.apache.mesos.v1.Protos.ContainerID containerId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.ContainerID, org.apache.mesos.v1.Protos.ContainerID.Builder, org.apache.mesos.v1.Protos.ContainerIDOrBuilder> containerIdBuilder_;
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
public boolean hasContainerId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
public org.apache.mesos.v1.Protos.ContainerID getContainerId() {
if (containerIdBuilder_ == null) {
return containerId_ == null ? org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : containerId_;
} else {
return containerIdBuilder_.getMessage();
}
}
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
public Builder setContainerId(org.apache.mesos.v1.Protos.ContainerID value) {
if (containerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
containerId_ = value;
onChanged();
} else {
containerIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
public Builder setContainerId(
org.apache.mesos.v1.Protos.ContainerID.Builder builderForValue) {
if (containerIdBuilder_ == null) {
containerId_ = builderForValue.build();
onChanged();
} else {
containerIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
public Builder mergeContainerId(org.apache.mesos.v1.Protos.ContainerID value) {
if (containerIdBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
containerId_ != null &&
containerId_ != org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance()) {
containerId_ =
org.apache.mesos.v1.Protos.ContainerID.newBuilder(containerId_).mergeFrom(value).buildPartial();
} else {
containerId_ = value;
}
onChanged();
} else {
containerIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
public Builder clearContainerId() {
if (containerIdBuilder_ == null) {
containerId_ = null;
onChanged();
} else {
containerIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
public org.apache.mesos.v1.Protos.ContainerID.Builder getContainerIdBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getContainerIdFieldBuilder().getBuilder();
}
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() {
if (containerIdBuilder_ != null) {
return containerIdBuilder_.getMessageOrBuilder();
} else {
return containerId_ == null ?
org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance() : containerId_;
}
}
/**
*
* Uniquely identifies the container of an executor run.
*
*
* optional .mesos.v1.ContainerID container_id = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.ContainerID, org.apache.mesos.v1.Protos.ContainerID.Builder, org.apache.mesos.v1.Protos.ContainerIDOrBuilder>
getContainerIdFieldBuilder() {
if (containerIdBuilder_ == null) {
containerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.ContainerID, org.apache.mesos.v1.Protos.ContainerID.Builder, org.apache.mesos.v1.Protos.ContainerIDOrBuilder>(
getContainerId(),
getParentForChildren(),
isClean());
containerId_ = null;
}
return containerIdBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.Subscribed)
}
// @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.Subscribed)
private static final org.apache.mesos.v1.executor.Protos.Event.Subscribed DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.mesos.v1.executor.Protos.Event.Subscribed();
}
public static org.apache.mesos.v1.executor.Protos.Event.Subscribed getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Subscribed parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Subscribed(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.mesos.v1.executor.Protos.Event.Subscribed getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LaunchOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.executor.Event.Launch)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.TaskInfo task = 1;
*/
boolean hasTask();
/**
* required .mesos.v1.TaskInfo task = 1;
*/
org.apache.mesos.v1.Protos.TaskInfo getTask();
/**
* required .mesos.v1.TaskInfo task = 1;
*/
org.apache.mesos.v1.Protos.TaskInfoOrBuilder getTaskOrBuilder();
}
/**
*
* Received when the framework attempts to launch a task. Once
* the task is successfully launched, the executor must respond with
* a TASK_RUNNING update (See TaskState in v1/mesos.proto).
*
*
* Protobuf type {@code mesos.v1.executor.Event.Launch}
*/
public static final class Launch extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.Launch)
LaunchOrBuilder {
private static final long serialVersionUID = 0L;
// Use Launch.newBuilder() to construct.
private Launch(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Launch() {
}
@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 {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.v1.Protos.TaskInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = task_.toBuilder();
}
task_ = input.readMessage(org.apache.mesos.v1.Protos.TaskInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(task_);
task_ = 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).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Launch_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Launch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.Launch.class, org.apache.mesos.v1.executor.Protos.Event.Launch.Builder.class);
}
private int bitField0_;
public static final int TASK_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.TaskInfo task_;
/**
* required .mesos.v1.TaskInfo task = 1;
*/
public boolean hasTask() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskInfo task = 1;
*/
public org.apache.mesos.v1.Protos.TaskInfo getTask() {
return task_ == null ? org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance() : task_;
}
/**
* required .mesos.v1.TaskInfo task = 1;
*/
public org.apache.mesos.v1.Protos.TaskInfoOrBuilder getTaskOrBuilder() {
return task_ == null ? org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance() : task_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasTask()) {
memoizedIsInitialized = 0;
return false;
}
if (!getTask().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getTask());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTask());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.mesos.v1.executor.Protos.Event.Launch)) {
return super.equals(obj);
}
org.apache.mesos.v1.executor.Protos.Event.Launch other = (org.apache.mesos.v1.executor.Protos.Event.Launch) obj;
boolean result = true;
result = result && (hasTask() == other.hasTask());
if (hasTask()) {
result = result && getTask()
.equals(other.getTask());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTask()) {
hash = (37 * hash) + TASK_FIELD_NUMBER;
hash = (53 * hash) + getTask().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.mesos.v1.executor.Protos.Event.Launch parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Launch parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Launch parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.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.v1.executor.Protos.Event.Launch parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Launch parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Launch parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Launch parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Launch parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Launch parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Launch parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Launch parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.Launch prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Received when the framework attempts to launch a task. Once
* the task is successfully launched, the executor must respond with
* a TASK_RUNNING update (See TaskState in v1/mesos.proto).
*
*
* Protobuf type {@code mesos.v1.executor.Event.Launch}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.executor.Event.Launch)
org.apache.mesos.v1.executor.Protos.Event.LaunchOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Launch_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Launch_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.Launch.class, org.apache.mesos.v1.executor.Protos.Event.Launch.Builder.class);
}
// Construct using org.apache.mesos.v1.executor.Protos.Event.Launch.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTaskFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (taskBuilder_ == null) {
task_ = null;
} else {
taskBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Launch_descriptor;
}
public org.apache.mesos.v1.executor.Protos.Event.Launch getDefaultInstanceForType() {
return org.apache.mesos.v1.executor.Protos.Event.Launch.getDefaultInstance();
}
public org.apache.mesos.v1.executor.Protos.Event.Launch build() {
org.apache.mesos.v1.executor.Protos.Event.Launch result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.executor.Protos.Event.Launch buildPartial() {
org.apache.mesos.v1.executor.Protos.Event.Launch result = new org.apache.mesos.v1.executor.Protos.Event.Launch(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (taskBuilder_ == null) {
result.task_ = task_;
} else {
result.task_ = taskBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.executor.Protos.Event.Launch) {
return mergeFrom((org.apache.mesos.v1.executor.Protos.Event.Launch)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.executor.Protos.Event.Launch other) {
if (other == org.apache.mesos.v1.executor.Protos.Event.Launch.getDefaultInstance()) return this;
if (other.hasTask()) {
mergeTask(other.getTask());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasTask()) {
return false;
}
if (!getTask().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.v1.executor.Protos.Event.Launch parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.executor.Protos.Event.Launch) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.TaskInfo task_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskInfo, org.apache.mesos.v1.Protos.TaskInfo.Builder, org.apache.mesos.v1.Protos.TaskInfoOrBuilder> taskBuilder_;
/**
* required .mesos.v1.TaskInfo task = 1;
*/
public boolean hasTask() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskInfo task = 1;
*/
public org.apache.mesos.v1.Protos.TaskInfo getTask() {
if (taskBuilder_ == null) {
return task_ == null ? org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance() : task_;
} else {
return taskBuilder_.getMessage();
}
}
/**
* required .mesos.v1.TaskInfo task = 1;
*/
public Builder setTask(org.apache.mesos.v1.Protos.TaskInfo value) {
if (taskBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
task_ = value;
onChanged();
} else {
taskBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskInfo task = 1;
*/
public Builder setTask(
org.apache.mesos.v1.Protos.TaskInfo.Builder builderForValue) {
if (taskBuilder_ == null) {
task_ = builderForValue.build();
onChanged();
} else {
taskBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskInfo task = 1;
*/
public Builder mergeTask(org.apache.mesos.v1.Protos.TaskInfo value) {
if (taskBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
task_ != null &&
task_ != org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance()) {
task_ =
org.apache.mesos.v1.Protos.TaskInfo.newBuilder(task_).mergeFrom(value).buildPartial();
} else {
task_ = value;
}
onChanged();
} else {
taskBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskInfo task = 1;
*/
public Builder clearTask() {
if (taskBuilder_ == null) {
task_ = null;
onChanged();
} else {
taskBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.TaskInfo task = 1;
*/
public org.apache.mesos.v1.Protos.TaskInfo.Builder getTaskBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTaskFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.TaskInfo task = 1;
*/
public org.apache.mesos.v1.Protos.TaskInfoOrBuilder getTaskOrBuilder() {
if (taskBuilder_ != null) {
return taskBuilder_.getMessageOrBuilder();
} else {
return task_ == null ?
org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance() : task_;
}
}
/**
* required .mesos.v1.TaskInfo task = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskInfo, org.apache.mesos.v1.Protos.TaskInfo.Builder, org.apache.mesos.v1.Protos.TaskInfoOrBuilder>
getTaskFieldBuilder() {
if (taskBuilder_ == null) {
taskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskInfo, org.apache.mesos.v1.Protos.TaskInfo.Builder, org.apache.mesos.v1.Protos.TaskInfoOrBuilder>(
getTask(),
getParentForChildren(),
isClean());
task_ = null;
}
return taskBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.Launch)
}
// @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.Launch)
private static final org.apache.mesos.v1.executor.Protos.Event.Launch DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.mesos.v1.executor.Protos.Event.Launch();
}
public static org.apache.mesos.v1.executor.Protos.Event.Launch getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final 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);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.mesos.v1.executor.Protos.Event.Launch getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LaunchGroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.executor.Event.LaunchGroup)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
boolean hasTaskGroup();
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
org.apache.mesos.v1.Protos.TaskGroupInfo getTaskGroup();
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder getTaskGroupOrBuilder();
}
/**
*
* Received when the framework attempts to launch a group of tasks atomically.
* Similar to `Launch` above the executor must send TASK_RUNNING updates for
* tasks that are successfully launched.
*
*
* Protobuf type {@code mesos.v1.executor.Event.LaunchGroup}
*/
public static final class LaunchGroup extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.LaunchGroup)
LaunchGroupOrBuilder {
private static final long serialVersionUID = 0L;
// Use LaunchGroup.newBuilder() to construct.
private LaunchGroup(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LaunchGroup() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LaunchGroup(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.v1.Protos.TaskGroupInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = taskGroup_.toBuilder();
}
taskGroup_ = input.readMessage(org.apache.mesos.v1.Protos.TaskGroupInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(taskGroup_);
taskGroup_ = 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).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_LaunchGroup_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_LaunchGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.class, org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.Builder.class);
}
private int bitField0_;
public static final int TASK_GROUP_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.TaskGroupInfo taskGroup_;
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
public boolean hasTaskGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
public org.apache.mesos.v1.Protos.TaskGroupInfo getTaskGroup() {
return taskGroup_ == null ? org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance() : taskGroup_;
}
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
public org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder getTaskGroupOrBuilder() {
return taskGroup_ == null ? org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance() : taskGroup_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasTaskGroup()) {
memoizedIsInitialized = 0;
return false;
}
if (!getTaskGroup().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getTaskGroup());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTaskGroup());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.mesos.v1.executor.Protos.Event.LaunchGroup)) {
return super.equals(obj);
}
org.apache.mesos.v1.executor.Protos.Event.LaunchGroup other = (org.apache.mesos.v1.executor.Protos.Event.LaunchGroup) obj;
boolean result = true;
result = result && (hasTaskGroup() == other.hasTaskGroup());
if (hasTaskGroup()) {
result = result && getTaskGroup()
.equals(other.getTaskGroup());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTaskGroup()) {
hash = (37 * hash) + TASK_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getTaskGroup().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup 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.v1.executor.Protos.Event.LaunchGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.LaunchGroup prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Received when the framework attempts to launch a group of tasks atomically.
* Similar to `Launch` above the executor must send TASK_RUNNING updates for
* tasks that are successfully launched.
*
*
* Protobuf type {@code mesos.v1.executor.Event.LaunchGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.executor.Event.LaunchGroup)
org.apache.mesos.v1.executor.Protos.Event.LaunchGroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_LaunchGroup_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_LaunchGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.class, org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.Builder.class);
}
// Construct using org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTaskGroupFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (taskGroupBuilder_ == null) {
taskGroup_ = null;
} else {
taskGroupBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_LaunchGroup_descriptor;
}
public org.apache.mesos.v1.executor.Protos.Event.LaunchGroup getDefaultInstanceForType() {
return org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.getDefaultInstance();
}
public org.apache.mesos.v1.executor.Protos.Event.LaunchGroup build() {
org.apache.mesos.v1.executor.Protos.Event.LaunchGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.executor.Protos.Event.LaunchGroup buildPartial() {
org.apache.mesos.v1.executor.Protos.Event.LaunchGroup result = new org.apache.mesos.v1.executor.Protos.Event.LaunchGroup(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (taskGroupBuilder_ == null) {
result.taskGroup_ = taskGroup_;
} else {
result.taskGroup_ = taskGroupBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.executor.Protos.Event.LaunchGroup) {
return mergeFrom((org.apache.mesos.v1.executor.Protos.Event.LaunchGroup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.executor.Protos.Event.LaunchGroup other) {
if (other == org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.getDefaultInstance()) return this;
if (other.hasTaskGroup()) {
mergeTaskGroup(other.getTaskGroup());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasTaskGroup()) {
return false;
}
if (!getTaskGroup().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.v1.executor.Protos.Event.LaunchGroup parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.executor.Protos.Event.LaunchGroup) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.TaskGroupInfo taskGroup_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskGroupInfo, org.apache.mesos.v1.Protos.TaskGroupInfo.Builder, org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder> taskGroupBuilder_;
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
public boolean hasTaskGroup() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
public org.apache.mesos.v1.Protos.TaskGroupInfo getTaskGroup() {
if (taskGroupBuilder_ == null) {
return taskGroup_ == null ? org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance() : taskGroup_;
} else {
return taskGroupBuilder_.getMessage();
}
}
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
public Builder setTaskGroup(org.apache.mesos.v1.Protos.TaskGroupInfo value) {
if (taskGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
taskGroup_ = value;
onChanged();
} else {
taskGroupBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
public Builder setTaskGroup(
org.apache.mesos.v1.Protos.TaskGroupInfo.Builder builderForValue) {
if (taskGroupBuilder_ == null) {
taskGroup_ = builderForValue.build();
onChanged();
} else {
taskGroupBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
public Builder mergeTaskGroup(org.apache.mesos.v1.Protos.TaskGroupInfo value) {
if (taskGroupBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
taskGroup_ != null &&
taskGroup_ != org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance()) {
taskGroup_ =
org.apache.mesos.v1.Protos.TaskGroupInfo.newBuilder(taskGroup_).mergeFrom(value).buildPartial();
} else {
taskGroup_ = value;
}
onChanged();
} else {
taskGroupBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
public Builder clearTaskGroup() {
if (taskGroupBuilder_ == null) {
taskGroup_ = null;
onChanged();
} else {
taskGroupBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
public org.apache.mesos.v1.Protos.TaskGroupInfo.Builder getTaskGroupBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTaskGroupFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
public org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder getTaskGroupOrBuilder() {
if (taskGroupBuilder_ != null) {
return taskGroupBuilder_.getMessageOrBuilder();
} else {
return taskGroup_ == null ?
org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance() : taskGroup_;
}
}
/**
* required .mesos.v1.TaskGroupInfo task_group = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskGroupInfo, org.apache.mesos.v1.Protos.TaskGroupInfo.Builder, org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder>
getTaskGroupFieldBuilder() {
if (taskGroupBuilder_ == null) {
taskGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskGroupInfo, org.apache.mesos.v1.Protos.TaskGroupInfo.Builder, org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder>(
getTaskGroup(),
getParentForChildren(),
isClean());
taskGroup_ = null;
}
return taskGroupBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.LaunchGroup)
}
// @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.LaunchGroup)
private static final org.apache.mesos.v1.executor.Protos.Event.LaunchGroup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.mesos.v1.executor.Protos.Event.LaunchGroup();
}
public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public LaunchGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LaunchGroup(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.mesos.v1.executor.Protos.Event.LaunchGroup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface KillOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.executor.Event.Kill)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.TaskID task_id = 1;
*/
boolean hasTaskId();
/**
* required .mesos.v1.TaskID task_id = 1;
*/
org.apache.mesos.v1.Protos.TaskID getTaskId();
/**
* required .mesos.v1.TaskID task_id = 1;
*/
org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder();
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
boolean hasKillPolicy();
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
org.apache.mesos.v1.Protos.KillPolicy getKillPolicy();
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder();
}
/**
*
* Received when the scheduler wants to kill a specific task. Once
* the task is terminated, the executor should send a TASK_KILLED
* (or TASK_FAILED) update. The terminal update is necessary so
* Mesos can release the resources associated with the task.
*
*
* Protobuf type {@code mesos.v1.executor.Event.Kill}
*/
public static final class Kill extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.Kill)
KillOrBuilder {
private static final long serialVersionUID = 0L;
// Use Kill.newBuilder() to construct.
private Kill(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Kill() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Kill(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.v1.Protos.TaskID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = taskId_.toBuilder();
}
taskId_ = input.readMessage(org.apache.mesos.v1.Protos.TaskID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(taskId_);
taskId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.mesos.v1.Protos.KillPolicy.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = killPolicy_.toBuilder();
}
killPolicy_ = input.readMessage(org.apache.mesos.v1.Protos.KillPolicy.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(killPolicy_);
killPolicy_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Kill_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Kill_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.Kill.class, org.apache.mesos.v1.executor.Protos.Event.Kill.Builder.class);
}
private int bitField0_;
public static final int TASK_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.TaskID taskId_;
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public boolean hasTaskId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskID getTaskId() {
return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() {
return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_;
}
public static final int KILL_POLICY_FIELD_NUMBER = 2;
private org.apache.mesos.v1.Protos.KillPolicy killPolicy_;
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
public boolean hasKillPolicy() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
public org.apache.mesos.v1.Protos.KillPolicy getKillPolicy() {
return killPolicy_ == null ? org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance() : killPolicy_;
}
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
public org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder() {
return killPolicy_ == null ? org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance() : killPolicy_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasTaskId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getTaskId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (hasKillPolicy()) {
if (!getKillPolicy().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getTaskId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getKillPolicy());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTaskId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getKillPolicy());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.mesos.v1.executor.Protos.Event.Kill)) {
return super.equals(obj);
}
org.apache.mesos.v1.executor.Protos.Event.Kill other = (org.apache.mesos.v1.executor.Protos.Event.Kill) obj;
boolean result = true;
result = result && (hasTaskId() == other.hasTaskId());
if (hasTaskId()) {
result = result && getTaskId()
.equals(other.getTaskId());
}
result = result && (hasKillPolicy() == other.hasKillPolicy());
if (hasKillPolicy()) {
result = result && getKillPolicy()
.equals(other.getKillPolicy());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTaskId()) {
hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
hash = (53 * hash) + getTaskId().hashCode();
}
if (hasKillPolicy()) {
hash = (37 * hash) + KILL_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getKillPolicy().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.mesos.v1.executor.Protos.Event.Kill parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Kill parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Kill parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Kill 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.v1.executor.Protos.Event.Kill parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Kill parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Kill parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Kill parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Kill parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Kill parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Kill parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Kill parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.Kill prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Received when the scheduler wants to kill a specific task. Once
* the task is terminated, the executor should send a TASK_KILLED
* (or TASK_FAILED) update. The terminal update is necessary so
* Mesos can release the resources associated with the task.
*
*
* Protobuf type {@code mesos.v1.executor.Event.Kill}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.executor.Event.Kill)
org.apache.mesos.v1.executor.Protos.Event.KillOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Kill_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Kill_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.Kill.class, org.apache.mesos.v1.executor.Protos.Event.Kill.Builder.class);
}
// Construct using org.apache.mesos.v1.executor.Protos.Event.Kill.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTaskIdFieldBuilder();
getKillPolicyFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (taskIdBuilder_ == null) {
taskId_ = null;
} else {
taskIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (killPolicyBuilder_ == null) {
killPolicy_ = null;
} else {
killPolicyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Kill_descriptor;
}
public org.apache.mesos.v1.executor.Protos.Event.Kill getDefaultInstanceForType() {
return org.apache.mesos.v1.executor.Protos.Event.Kill.getDefaultInstance();
}
public org.apache.mesos.v1.executor.Protos.Event.Kill build() {
org.apache.mesos.v1.executor.Protos.Event.Kill result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.executor.Protos.Event.Kill buildPartial() {
org.apache.mesos.v1.executor.Protos.Event.Kill result = new org.apache.mesos.v1.executor.Protos.Event.Kill(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (taskIdBuilder_ == null) {
result.taskId_ = taskId_;
} else {
result.taskId_ = taskIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (killPolicyBuilder_ == null) {
result.killPolicy_ = killPolicy_;
} else {
result.killPolicy_ = killPolicyBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.executor.Protos.Event.Kill) {
return mergeFrom((org.apache.mesos.v1.executor.Protos.Event.Kill)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.executor.Protos.Event.Kill other) {
if (other == org.apache.mesos.v1.executor.Protos.Event.Kill.getDefaultInstance()) return this;
if (other.hasTaskId()) {
mergeTaskId(other.getTaskId());
}
if (other.hasKillPolicy()) {
mergeKillPolicy(other.getKillPolicy());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasTaskId()) {
return false;
}
if (!getTaskId().isInitialized()) {
return false;
}
if (hasKillPolicy()) {
if (!getKillPolicy().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.v1.executor.Protos.Event.Kill parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.executor.Protos.Event.Kill) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.TaskID taskId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder> taskIdBuilder_;
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public boolean hasTaskId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskID getTaskId() {
if (taskIdBuilder_ == null) {
return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_;
} else {
return taskIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder setTaskId(org.apache.mesos.v1.Protos.TaskID value) {
if (taskIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
taskId_ = value;
onChanged();
} else {
taskIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder setTaskId(
org.apache.mesos.v1.Protos.TaskID.Builder builderForValue) {
if (taskIdBuilder_ == null) {
taskId_ = builderForValue.build();
onChanged();
} else {
taskIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder mergeTaskId(org.apache.mesos.v1.Protos.TaskID value) {
if (taskIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
taskId_ != null &&
taskId_ != org.apache.mesos.v1.Protos.TaskID.getDefaultInstance()) {
taskId_ =
org.apache.mesos.v1.Protos.TaskID.newBuilder(taskId_).mergeFrom(value).buildPartial();
} else {
taskId_ = value;
}
onChanged();
} else {
taskIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder clearTaskId() {
if (taskIdBuilder_ == null) {
taskId_ = null;
onChanged();
} else {
taskIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskID.Builder getTaskIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTaskIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() {
if (taskIdBuilder_ != null) {
return taskIdBuilder_.getMessageOrBuilder();
} else {
return taskId_ == null ?
org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_;
}
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>
getTaskIdFieldBuilder() {
if (taskIdBuilder_ == null) {
taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>(
getTaskId(),
getParentForChildren(),
isClean());
taskId_ = null;
}
return taskIdBuilder_;
}
private org.apache.mesos.v1.Protos.KillPolicy killPolicy_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.KillPolicy, org.apache.mesos.v1.Protos.KillPolicy.Builder, org.apache.mesos.v1.Protos.KillPolicyOrBuilder> killPolicyBuilder_;
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
public boolean hasKillPolicy() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
public org.apache.mesos.v1.Protos.KillPolicy getKillPolicy() {
if (killPolicyBuilder_ == null) {
return killPolicy_ == null ? org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance() : killPolicy_;
} else {
return killPolicyBuilder_.getMessage();
}
}
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
public Builder setKillPolicy(org.apache.mesos.v1.Protos.KillPolicy value) {
if (killPolicyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
killPolicy_ = value;
onChanged();
} else {
killPolicyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
public Builder setKillPolicy(
org.apache.mesos.v1.Protos.KillPolicy.Builder builderForValue) {
if (killPolicyBuilder_ == null) {
killPolicy_ = builderForValue.build();
onChanged();
} else {
killPolicyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
public Builder mergeKillPolicy(org.apache.mesos.v1.Protos.KillPolicy value) {
if (killPolicyBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
killPolicy_ != null &&
killPolicy_ != org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance()) {
killPolicy_ =
org.apache.mesos.v1.Protos.KillPolicy.newBuilder(killPolicy_).mergeFrom(value).buildPartial();
} else {
killPolicy_ = value;
}
onChanged();
} else {
killPolicyBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
public Builder clearKillPolicy() {
if (killPolicyBuilder_ == null) {
killPolicy_ = null;
onChanged();
} else {
killPolicyBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
public org.apache.mesos.v1.Protos.KillPolicy.Builder getKillPolicyBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getKillPolicyFieldBuilder().getBuilder();
}
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
public org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder() {
if (killPolicyBuilder_ != null) {
return killPolicyBuilder_.getMessageOrBuilder();
} else {
return killPolicy_ == null ?
org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance() : killPolicy_;
}
}
/**
*
* If set, overrides any previously specified kill policy for this task.
* This includes 'TaskInfo.kill_policy' and 'Executor.kill.kill_policy'.
* Can be used to forcefully kill a task which is already being killed.
*
*
* optional .mesos.v1.KillPolicy kill_policy = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.KillPolicy, org.apache.mesos.v1.Protos.KillPolicy.Builder, org.apache.mesos.v1.Protos.KillPolicyOrBuilder>
getKillPolicyFieldBuilder() {
if (killPolicyBuilder_ == null) {
killPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.KillPolicy, org.apache.mesos.v1.Protos.KillPolicy.Builder, org.apache.mesos.v1.Protos.KillPolicyOrBuilder>(
getKillPolicy(),
getParentForChildren(),
isClean());
killPolicy_ = null;
}
return killPolicyBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.Kill)
}
// @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.Kill)
private static final org.apache.mesos.v1.executor.Protos.Event.Kill DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.mesos.v1.executor.Protos.Event.Kill();
}
public static org.apache.mesos.v1.executor.Protos.Event.Kill getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Kill parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Kill(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.mesos.v1.executor.Protos.Event.Kill getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AcknowledgedOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.executor.Event.Acknowledged)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.TaskID task_id = 1;
*/
boolean hasTaskId();
/**
* required .mesos.v1.TaskID task_id = 1;
*/
org.apache.mesos.v1.Protos.TaskID getTaskId();
/**
* required .mesos.v1.TaskID task_id = 1;
*/
org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder();
/**
* required bytes uuid = 2;
*/
boolean hasUuid();
/**
* required bytes uuid = 2;
*/
com.google.protobuf.ByteString getUuid();
}
/**
*
* Received when the agent acknowledges the receipt of status
* update. Schedulers are responsible for explicitly acknowledging
* the receipt of status updates that have 'update.status().uuid()'
* field set. Unacknowledged updates can be retried by the executor.
* They should also be sent by the executor whenever it
* re-subscribes.
*
*
* Protobuf type {@code mesos.v1.executor.Event.Acknowledged}
*/
public static final class Acknowledged extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.Acknowledged)
AcknowledgedOrBuilder {
private static final long serialVersionUID = 0L;
// Use Acknowledged.newBuilder() to construct.
private Acknowledged(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Acknowledged() {
uuid_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Acknowledged(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.v1.Protos.TaskID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = taskId_.toBuilder();
}
taskId_ = input.readMessage(org.apache.mesos.v1.Protos.TaskID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(taskId_);
taskId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
bitField0_ |= 0x00000002;
uuid_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Acknowledged_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Acknowledged_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.Acknowledged.class, org.apache.mesos.v1.executor.Protos.Event.Acknowledged.Builder.class);
}
private int bitField0_;
public static final int TASK_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.TaskID taskId_;
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public boolean hasTaskId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskID getTaskId() {
return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() {
return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_;
}
public static final int UUID_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString uuid_;
/**
* required bytes uuid = 2;
*/
public boolean hasUuid() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes uuid = 2;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasTaskId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasUuid()) {
memoizedIsInitialized = 0;
return false;
}
if (!getTaskId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getTaskId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, uuid_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTaskId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, uuid_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.mesos.v1.executor.Protos.Event.Acknowledged)) {
return super.equals(obj);
}
org.apache.mesos.v1.executor.Protos.Event.Acknowledged other = (org.apache.mesos.v1.executor.Protos.Event.Acknowledged) obj;
boolean result = true;
result = result && (hasTaskId() == other.hasTaskId());
if (hasTaskId()) {
result = result && getTaskId()
.equals(other.getTaskId());
}
result = result && (hasUuid() == other.hasUuid());
if (hasUuid()) {
result = result && getUuid()
.equals(other.getUuid());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTaskId()) {
hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
hash = (53 * hash) + getTaskId().hashCode();
}
if (hasUuid()) {
hash = (37 * hash) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged 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.v1.executor.Protos.Event.Acknowledged parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.Acknowledged prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Received when the agent acknowledges the receipt of status
* update. Schedulers are responsible for explicitly acknowledging
* the receipt of status updates that have 'update.status().uuid()'
* field set. Unacknowledged updates can be retried by the executor.
* They should also be sent by the executor whenever it
* re-subscribes.
*
*
* Protobuf type {@code mesos.v1.executor.Event.Acknowledged}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.executor.Event.Acknowledged)
org.apache.mesos.v1.executor.Protos.Event.AcknowledgedOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Acknowledged_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Acknowledged_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.Acknowledged.class, org.apache.mesos.v1.executor.Protos.Event.Acknowledged.Builder.class);
}
// Construct using org.apache.mesos.v1.executor.Protos.Event.Acknowledged.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTaskIdFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (taskIdBuilder_ == null) {
taskId_ = null;
} else {
taskIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
uuid_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Acknowledged_descriptor;
}
public org.apache.mesos.v1.executor.Protos.Event.Acknowledged getDefaultInstanceForType() {
return org.apache.mesos.v1.executor.Protos.Event.Acknowledged.getDefaultInstance();
}
public org.apache.mesos.v1.executor.Protos.Event.Acknowledged build() {
org.apache.mesos.v1.executor.Protos.Event.Acknowledged result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.executor.Protos.Event.Acknowledged buildPartial() {
org.apache.mesos.v1.executor.Protos.Event.Acknowledged result = new org.apache.mesos.v1.executor.Protos.Event.Acknowledged(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (taskIdBuilder_ == null) {
result.taskId_ = taskId_;
} else {
result.taskId_ = taskIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.uuid_ = uuid_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.executor.Protos.Event.Acknowledged) {
return mergeFrom((org.apache.mesos.v1.executor.Protos.Event.Acknowledged)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.executor.Protos.Event.Acknowledged other) {
if (other == org.apache.mesos.v1.executor.Protos.Event.Acknowledged.getDefaultInstance()) return this;
if (other.hasTaskId()) {
mergeTaskId(other.getTaskId());
}
if (other.hasUuid()) {
setUuid(other.getUuid());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasTaskId()) {
return false;
}
if (!hasUuid()) {
return false;
}
if (!getTaskId().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.v1.executor.Protos.Event.Acknowledged parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.executor.Protos.Event.Acknowledged) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.TaskID taskId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder> taskIdBuilder_;
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public boolean hasTaskId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskID getTaskId() {
if (taskIdBuilder_ == null) {
return taskId_ == null ? org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_;
} else {
return taskIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder setTaskId(org.apache.mesos.v1.Protos.TaskID value) {
if (taskIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
taskId_ = value;
onChanged();
} else {
taskIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder setTaskId(
org.apache.mesos.v1.Protos.TaskID.Builder builderForValue) {
if (taskIdBuilder_ == null) {
taskId_ = builderForValue.build();
onChanged();
} else {
taskIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder mergeTaskId(org.apache.mesos.v1.Protos.TaskID value) {
if (taskIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
taskId_ != null &&
taskId_ != org.apache.mesos.v1.Protos.TaskID.getDefaultInstance()) {
taskId_ =
org.apache.mesos.v1.Protos.TaskID.newBuilder(taskId_).mergeFrom(value).buildPartial();
} else {
taskId_ = value;
}
onChanged();
} else {
taskIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public Builder clearTaskId() {
if (taskIdBuilder_ == null) {
taskId_ = null;
onChanged();
} else {
taskIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskID.Builder getTaskIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTaskIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() {
if (taskIdBuilder_ != null) {
return taskIdBuilder_.getMessageOrBuilder();
} else {
return taskId_ == null ?
org.apache.mesos.v1.Protos.TaskID.getDefaultInstance() : taskId_;
}
}
/**
* required .mesos.v1.TaskID task_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>
getTaskIdFieldBuilder() {
if (taskIdBuilder_ == null) {
taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskID, org.apache.mesos.v1.Protos.TaskID.Builder, org.apache.mesos.v1.Protos.TaskIDOrBuilder>(
getTaskId(),
getParentForChildren(),
isClean());
taskId_ = null;
}
return taskIdBuilder_;
}
private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes uuid = 2;
*/
public boolean hasUuid() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes uuid = 2;
*/
public com.google.protobuf.ByteString getUuid() {
return uuid_;
}
/**
* required bytes uuid = 2;
*/
public Builder setUuid(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
uuid_ = value;
onChanged();
return this;
}
/**
* required bytes uuid = 2;
*/
public Builder clearUuid() {
bitField0_ = (bitField0_ & ~0x00000002);
uuid_ = getDefaultInstance().getUuid();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.Acknowledged)
}
// @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.Acknowledged)
private static final org.apache.mesos.v1.executor.Protos.Event.Acknowledged DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.mesos.v1.executor.Protos.Event.Acknowledged();
}
public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Acknowledged parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Acknowledged(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.mesos.v1.executor.Protos.Event.Acknowledged getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.executor.Event.Message)
com.google.protobuf.MessageOrBuilder {
/**
* required bytes data = 1;
*/
boolean hasData();
/**
* required bytes data = 1;
*/
com.google.protobuf.ByteString getData();
}
/**
*
* Received when a custom message generated by the scheduler is
* forwarded by the agent. Note that this message is not
* interpreted by Mesos and is only forwarded (without reliability
* guarantees) to the executor. It is up to the scheduler to retry
* if the message is dropped for any reason.
*
*
* Protobuf type {@code mesos.v1.executor.Event.Message}
*/
public static final class Message extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.Message)
MessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use Message.newBuilder() to construct.
private Message(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Message() {
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Message(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
data_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Message_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.Message.class, org.apache.mesos.v1.executor.Protos.Event.Message.Builder.class);
}
private int bitField0_;
public static final int DATA_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString data_;
/**
* required bytes data = 1;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes data = 1;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasData()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, data_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, data_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.mesos.v1.executor.Protos.Event.Message)) {
return super.equals(obj);
}
org.apache.mesos.v1.executor.Protos.Event.Message other = (org.apache.mesos.v1.executor.Protos.Event.Message) obj;
boolean result = true;
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.mesos.v1.executor.Protos.Event.Message parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Message parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Message parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Message 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.v1.executor.Protos.Event.Message parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Message parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Message parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Message parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Message parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Message parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Message parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Message parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.Message prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Received when a custom message generated by the scheduler is
* forwarded by the agent. Note that this message is not
* interpreted by Mesos and is only forwarded (without reliability
* guarantees) to the executor. It is up to the scheduler to retry
* if the message is dropped for any reason.
*
*
* Protobuf type {@code mesos.v1.executor.Event.Message}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.executor.Event.Message)
org.apache.mesos.v1.executor.Protos.Event.MessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Message_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.Message.class, org.apache.mesos.v1.executor.Protos.Event.Message.Builder.class);
}
// Construct using org.apache.mesos.v1.executor.Protos.Event.Message.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Message_descriptor;
}
public org.apache.mesos.v1.executor.Protos.Event.Message getDefaultInstanceForType() {
return org.apache.mesos.v1.executor.Protos.Event.Message.getDefaultInstance();
}
public org.apache.mesos.v1.executor.Protos.Event.Message build() {
org.apache.mesos.v1.executor.Protos.Event.Message result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.executor.Protos.Event.Message buildPartial() {
org.apache.mesos.v1.executor.Protos.Event.Message result = new org.apache.mesos.v1.executor.Protos.Event.Message(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.executor.Protos.Event.Message) {
return mergeFrom((org.apache.mesos.v1.executor.Protos.Event.Message)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.executor.Protos.Event.Message other) {
if (other == org.apache.mesos.v1.executor.Protos.Event.Message.getDefaultInstance()) return this;
if (other.hasData()) {
setData(other.getData());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasData()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.v1.executor.Protos.Event.Message parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.executor.Protos.Event.Message) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes data = 1;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes data = 1;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* required bytes data = 1;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
data_ = value;
onChanged();
return this;
}
/**
* required bytes data = 1;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000001);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.Message)
}
// @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.Message)
private static final org.apache.mesos.v1.executor.Protos.Event.Message DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.mesos.v1.executor.Protos.Event.Message();
}
public static org.apache.mesos.v1.executor.Protos.Event.Message getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Message parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Message(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.mesos.v1.executor.Protos.Event.Message getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ErrorOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.executor.Event.Error)
com.google.protobuf.MessageOrBuilder {
/**
* required string message = 1;
*/
boolean hasMessage();
/**
* required string message = 1;
*/
java.lang.String getMessage();
/**
* required string message = 1;
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
*
* Received in case the executor sends invalid calls (e.g.,
* required values not set).
* TODO(arojas): Remove this once the old executor driver is no
* longer supported. With HTTP API all errors will be signaled via
* HTTP response codes.
*
*
* Protobuf type {@code mesos.v1.executor.Event.Error}
*/
public static final class Error extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.Error)
ErrorOrBuilder {
private static final long serialVersionUID = 0L;
// Use Error.newBuilder() to construct.
private Error(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Error() {
message_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Error(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
message_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Error_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.Error.class, org.apache.mesos.v1.executor.Protos.Event.Error.Builder.class);
}
private int bitField0_;
public static final int MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object message_;
/**
* required string message = 1;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string message = 1;
*/
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;
}
}
/**
* required string message = 1;
*/
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 byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasMessage()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.mesos.v1.executor.Protos.Event.Error)) {
return super.equals(obj);
}
org.apache.mesos.v1.executor.Protos.Event.Error other = (org.apache.mesos.v1.executor.Protos.Event.Error) obj;
boolean result = true;
result = result && (hasMessage() == other.hasMessage());
if (hasMessage()) {
result = result && getMessage()
.equals(other.getMessage());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.mesos.v1.executor.Protos.Event.Error parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Error parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Error parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Error 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.v1.executor.Protos.Event.Error parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event.Error parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Error parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Error parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Error parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Error parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event.Error parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event.Error parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.Error prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Received in case the executor sends invalid calls (e.g.,
* required values not set).
* TODO(arojas): Remove this once the old executor driver is no
* longer supported. With HTTP API all errors will be signaled via
* HTTP response codes.
*
*
* Protobuf type {@code mesos.v1.executor.Event.Error}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.executor.Event.Error)
org.apache.mesos.v1.executor.Protos.Event.ErrorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Error_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Error_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.Error.class, org.apache.mesos.v1.executor.Protos.Event.Error.Builder.class);
}
// Construct using org.apache.mesos.v1.executor.Protos.Event.Error.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
message_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_Error_descriptor;
}
public org.apache.mesos.v1.executor.Protos.Event.Error getDefaultInstanceForType() {
return org.apache.mesos.v1.executor.Protos.Event.Error.getDefaultInstance();
}
public org.apache.mesos.v1.executor.Protos.Event.Error build() {
org.apache.mesos.v1.executor.Protos.Event.Error result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.executor.Protos.Event.Error buildPartial() {
org.apache.mesos.v1.executor.Protos.Event.Error result = new org.apache.mesos.v1.executor.Protos.Event.Error(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.message_ = message_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.executor.Protos.Event.Error) {
return mergeFrom((org.apache.mesos.v1.executor.Protos.Event.Error)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.executor.Protos.Event.Error other) {
if (other == org.apache.mesos.v1.executor.Protos.Event.Error.getDefaultInstance()) return this;
if (other.hasMessage()) {
bitField0_ |= 0x00000001;
message_ = other.message_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasMessage()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.v1.executor.Protos.Event.Error parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.executor.Protos.Event.Error) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object message_ = "";
/**
* required string message = 1;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string message = 1;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string message = 1;
*/
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;
}
}
/**
* required string message = 1;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
message_ = value;
onChanged();
return this;
}
/**
* required string message = 1;
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000001);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* required string message = 1;
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
message_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.Error)
}
// @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.Error)
private static final org.apache.mesos.v1.executor.Protos.Event.Error DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.mesos.v1.executor.Protos.Event.Error();
}
public static org.apache.mesos.v1.executor.Protos.Event.Error getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Error parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Error(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.mesos.v1.executor.Protos.Event.Error getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*
* optional .mesos.v1.executor.Event.Type type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*
* optional .mesos.v1.executor.Event.Type type = 1;
*/
public org.apache.mesos.v1.executor.Protos.Event.Type getType() {
org.apache.mesos.v1.executor.Protos.Event.Type result = org.apache.mesos.v1.executor.Protos.Event.Type.valueOf(type_);
return result == null ? org.apache.mesos.v1.executor.Protos.Event.Type.UNKNOWN : result;
}
public static final int SUBSCRIBED_FIELD_NUMBER = 2;
private org.apache.mesos.v1.executor.Protos.Event.Subscribed subscribed_;
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
public boolean hasSubscribed() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
public org.apache.mesos.v1.executor.Protos.Event.Subscribed getSubscribed() {
return subscribed_ == null ? org.apache.mesos.v1.executor.Protos.Event.Subscribed.getDefaultInstance() : subscribed_;
}
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
public org.apache.mesos.v1.executor.Protos.Event.SubscribedOrBuilder getSubscribedOrBuilder() {
return subscribed_ == null ? org.apache.mesos.v1.executor.Protos.Event.Subscribed.getDefaultInstance() : subscribed_;
}
public static final int ACKNOWLEDGED_FIELD_NUMBER = 3;
private org.apache.mesos.v1.executor.Protos.Event.Acknowledged acknowledged_;
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
public boolean hasAcknowledged() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
public org.apache.mesos.v1.executor.Protos.Event.Acknowledged getAcknowledged() {
return acknowledged_ == null ? org.apache.mesos.v1.executor.Protos.Event.Acknowledged.getDefaultInstance() : acknowledged_;
}
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
public org.apache.mesos.v1.executor.Protos.Event.AcknowledgedOrBuilder getAcknowledgedOrBuilder() {
return acknowledged_ == null ? org.apache.mesos.v1.executor.Protos.Event.Acknowledged.getDefaultInstance() : acknowledged_;
}
public static final int LAUNCH_FIELD_NUMBER = 4;
private org.apache.mesos.v1.executor.Protos.Event.Launch launch_;
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
public boolean hasLaunch() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
public org.apache.mesos.v1.executor.Protos.Event.Launch getLaunch() {
return launch_ == null ? org.apache.mesos.v1.executor.Protos.Event.Launch.getDefaultInstance() : launch_;
}
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
public org.apache.mesos.v1.executor.Protos.Event.LaunchOrBuilder getLaunchOrBuilder() {
return launch_ == null ? org.apache.mesos.v1.executor.Protos.Event.Launch.getDefaultInstance() : launch_;
}
public static final int LAUNCH_GROUP_FIELD_NUMBER = 8;
private org.apache.mesos.v1.executor.Protos.Event.LaunchGroup launchGroup_;
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
public boolean hasLaunchGroup() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
public org.apache.mesos.v1.executor.Protos.Event.LaunchGroup getLaunchGroup() {
return launchGroup_ == null ? org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.getDefaultInstance() : launchGroup_;
}
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
public org.apache.mesos.v1.executor.Protos.Event.LaunchGroupOrBuilder getLaunchGroupOrBuilder() {
return launchGroup_ == null ? org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.getDefaultInstance() : launchGroup_;
}
public static final int KILL_FIELD_NUMBER = 5;
private org.apache.mesos.v1.executor.Protos.Event.Kill kill_;
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
public boolean hasKill() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
public org.apache.mesos.v1.executor.Protos.Event.Kill getKill() {
return kill_ == null ? org.apache.mesos.v1.executor.Protos.Event.Kill.getDefaultInstance() : kill_;
}
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
public org.apache.mesos.v1.executor.Protos.Event.KillOrBuilder getKillOrBuilder() {
return kill_ == null ? org.apache.mesos.v1.executor.Protos.Event.Kill.getDefaultInstance() : kill_;
}
public static final int MESSAGE_FIELD_NUMBER = 6;
private org.apache.mesos.v1.executor.Protos.Event.Message message_;
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
public org.apache.mesos.v1.executor.Protos.Event.Message getMessage() {
return message_ == null ? org.apache.mesos.v1.executor.Protos.Event.Message.getDefaultInstance() : message_;
}
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
public org.apache.mesos.v1.executor.Protos.Event.MessageOrBuilder getMessageOrBuilder() {
return message_ == null ? org.apache.mesos.v1.executor.Protos.Event.Message.getDefaultInstance() : message_;
}
public static final int ERROR_FIELD_NUMBER = 7;
private org.apache.mesos.v1.executor.Protos.Event.Error error_;
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
public boolean hasError() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
public org.apache.mesos.v1.executor.Protos.Event.Error getError() {
return error_ == null ? org.apache.mesos.v1.executor.Protos.Event.Error.getDefaultInstance() : error_;
}
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
public org.apache.mesos.v1.executor.Protos.Event.ErrorOrBuilder getErrorOrBuilder() {
return error_ == null ? org.apache.mesos.v1.executor.Protos.Event.Error.getDefaultInstance() : error_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasSubscribed()) {
if (!getSubscribed().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasAcknowledged()) {
if (!getAcknowledged().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasLaunch()) {
if (!getLaunch().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasLaunchGroup()) {
if (!getLaunchGroup().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasKill()) {
if (!getKill().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasMessage()) {
if (!getMessage().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasError()) {
if (!getError().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getSubscribed());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, getAcknowledged());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getLaunch());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(5, getKill());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(6, getMessage());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeMessage(7, getError());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(8, getLaunchGroup());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSubscribed());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAcknowledged());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLaunch());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getKill());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getMessage());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getError());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getLaunchGroup());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.mesos.v1.executor.Protos.Event)) {
return super.equals(obj);
}
org.apache.mesos.v1.executor.Protos.Event other = (org.apache.mesos.v1.executor.Protos.Event) obj;
boolean result = true;
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && type_ == other.type_;
}
result = result && (hasSubscribed() == other.hasSubscribed());
if (hasSubscribed()) {
result = result && getSubscribed()
.equals(other.getSubscribed());
}
result = result && (hasAcknowledged() == other.hasAcknowledged());
if (hasAcknowledged()) {
result = result && getAcknowledged()
.equals(other.getAcknowledged());
}
result = result && (hasLaunch() == other.hasLaunch());
if (hasLaunch()) {
result = result && getLaunch()
.equals(other.getLaunch());
}
result = result && (hasLaunchGroup() == other.hasLaunchGroup());
if (hasLaunchGroup()) {
result = result && getLaunchGroup()
.equals(other.getLaunchGroup());
}
result = result && (hasKill() == other.hasKill());
if (hasKill()) {
result = result && getKill()
.equals(other.getKill());
}
result = result && (hasMessage() == other.hasMessage());
if (hasMessage()) {
result = result && getMessage()
.equals(other.getMessage());
}
result = result && (hasError() == other.hasError());
if (hasError()) {
result = result && getError()
.equals(other.getError());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
if (hasSubscribed()) {
hash = (37 * hash) + SUBSCRIBED_FIELD_NUMBER;
hash = (53 * hash) + getSubscribed().hashCode();
}
if (hasAcknowledged()) {
hash = (37 * hash) + ACKNOWLEDGED_FIELD_NUMBER;
hash = (53 * hash) + getAcknowledged().hashCode();
}
if (hasLaunch()) {
hash = (37 * hash) + LAUNCH_FIELD_NUMBER;
hash = (53 * hash) + getLaunch().hashCode();
}
if (hasLaunchGroup()) {
hash = (37 * hash) + LAUNCH_GROUP_FIELD_NUMBER;
hash = (53 * hash) + getLaunchGroup().hashCode();
}
if (hasKill()) {
hash = (37 * hash) + KILL_FIELD_NUMBER;
hash = (53 * hash) + getKill().hashCode();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.mesos.v1.executor.Protos.Event parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event 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.v1.executor.Protos.Event parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Event parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Event parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Event parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* Executor event API.
* An event is described using the standard protocol buffer "union"
* trick, see https://developers.google.com/protocol-buffers/docs/techniques#union.
*
*
* Protobuf type {@code mesos.v1.executor.Event}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.executor.Event)
org.apache.mesos.v1.executor.Protos.EventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Event.class, org.apache.mesos.v1.executor.Protos.Event.Builder.class);
}
// Construct using org.apache.mesos.v1.executor.Protos.Event.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSubscribedFieldBuilder();
getAcknowledgedFieldBuilder();
getLaunchFieldBuilder();
getLaunchGroupFieldBuilder();
getKillFieldBuilder();
getMessageFieldBuilder();
getErrorFieldBuilder();
}
}
public Builder clear() {
super.clear();
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (subscribedBuilder_ == null) {
subscribed_ = null;
} else {
subscribedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (acknowledgedBuilder_ == null) {
acknowledged_ = null;
} else {
acknowledgedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (launchBuilder_ == null) {
launch_ = null;
} else {
launchBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (launchGroupBuilder_ == null) {
launchGroup_ = null;
} else {
launchGroupBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (killBuilder_ == null) {
kill_ = null;
} else {
killBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (messageBuilder_ == null) {
message_ = null;
} else {
messageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (errorBuilder_ == null) {
error_ = null;
} else {
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Event_descriptor;
}
public org.apache.mesos.v1.executor.Protos.Event getDefaultInstanceForType() {
return org.apache.mesos.v1.executor.Protos.Event.getDefaultInstance();
}
public org.apache.mesos.v1.executor.Protos.Event build() {
org.apache.mesos.v1.executor.Protos.Event result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.executor.Protos.Event buildPartial() {
org.apache.mesos.v1.executor.Protos.Event result = new org.apache.mesos.v1.executor.Protos.Event(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (subscribedBuilder_ == null) {
result.subscribed_ = subscribed_;
} else {
result.subscribed_ = subscribedBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (acknowledgedBuilder_ == null) {
result.acknowledged_ = acknowledged_;
} else {
result.acknowledged_ = acknowledgedBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (launchBuilder_ == null) {
result.launch_ = launch_;
} else {
result.launch_ = launchBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (launchGroupBuilder_ == null) {
result.launchGroup_ = launchGroup_;
} else {
result.launchGroup_ = launchGroupBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
if (killBuilder_ == null) {
result.kill_ = kill_;
} else {
result.kill_ = killBuilder_.build();
}
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
if (messageBuilder_ == null) {
result.message_ = message_;
} else {
result.message_ = messageBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.executor.Protos.Event) {
return mergeFrom((org.apache.mesos.v1.executor.Protos.Event)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.executor.Protos.Event other) {
if (other == org.apache.mesos.v1.executor.Protos.Event.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasSubscribed()) {
mergeSubscribed(other.getSubscribed());
}
if (other.hasAcknowledged()) {
mergeAcknowledged(other.getAcknowledged());
}
if (other.hasLaunch()) {
mergeLaunch(other.getLaunch());
}
if (other.hasLaunchGroup()) {
mergeLaunchGroup(other.getLaunchGroup());
}
if (other.hasKill()) {
mergeKill(other.getKill());
}
if (other.hasMessage()) {
mergeMessage(other.getMessage());
}
if (other.hasError()) {
mergeError(other.getError());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (hasSubscribed()) {
if (!getSubscribed().isInitialized()) {
return false;
}
}
if (hasAcknowledged()) {
if (!getAcknowledged().isInitialized()) {
return false;
}
}
if (hasLaunch()) {
if (!getLaunch().isInitialized()) {
return false;
}
}
if (hasLaunchGroup()) {
if (!getLaunchGroup().isInitialized()) {
return false;
}
}
if (hasKill()) {
if (!getKill().isInitialized()) {
return false;
}
}
if (hasMessage()) {
if (!getMessage().isInitialized()) {
return false;
}
}
if (hasError()) {
if (!getError().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.v1.executor.Protos.Event parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.executor.Protos.Event) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int type_ = 0;
/**
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*
* optional .mesos.v1.executor.Event.Type type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*
* optional .mesos.v1.executor.Event.Type type = 1;
*/
public org.apache.mesos.v1.executor.Protos.Event.Type getType() {
org.apache.mesos.v1.executor.Protos.Event.Type result = org.apache.mesos.v1.executor.Protos.Event.Type.valueOf(type_);
return result == null ? org.apache.mesos.v1.executor.Protos.Event.Type.UNKNOWN : result;
}
/**
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*
* optional .mesos.v1.executor.Event.Type type = 1;
*/
public Builder setType(org.apache.mesos.v1.executor.Protos.Event.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Type of the event, indicates which optional field below should be
* present if that type has a nested message definition.
* Enum fields should be optional, see: MESOS-4997.
*
*
* optional .mesos.v1.executor.Event.Type type = 1;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
onChanged();
return this;
}
private org.apache.mesos.v1.executor.Protos.Event.Subscribed subscribed_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Subscribed, org.apache.mesos.v1.executor.Protos.Event.Subscribed.Builder, org.apache.mesos.v1.executor.Protos.Event.SubscribedOrBuilder> subscribedBuilder_;
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
public boolean hasSubscribed() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
public org.apache.mesos.v1.executor.Protos.Event.Subscribed getSubscribed() {
if (subscribedBuilder_ == null) {
return subscribed_ == null ? org.apache.mesos.v1.executor.Protos.Event.Subscribed.getDefaultInstance() : subscribed_;
} else {
return subscribedBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
public Builder setSubscribed(org.apache.mesos.v1.executor.Protos.Event.Subscribed value) {
if (subscribedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
subscribed_ = value;
onChanged();
} else {
subscribedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
public Builder setSubscribed(
org.apache.mesos.v1.executor.Protos.Event.Subscribed.Builder builderForValue) {
if (subscribedBuilder_ == null) {
subscribed_ = builderForValue.build();
onChanged();
} else {
subscribedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
public Builder mergeSubscribed(org.apache.mesos.v1.executor.Protos.Event.Subscribed value) {
if (subscribedBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
subscribed_ != null &&
subscribed_ != org.apache.mesos.v1.executor.Protos.Event.Subscribed.getDefaultInstance()) {
subscribed_ =
org.apache.mesos.v1.executor.Protos.Event.Subscribed.newBuilder(subscribed_).mergeFrom(value).buildPartial();
} else {
subscribed_ = value;
}
onChanged();
} else {
subscribedBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
public Builder clearSubscribed() {
if (subscribedBuilder_ == null) {
subscribed_ = null;
onChanged();
} else {
subscribedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
public org.apache.mesos.v1.executor.Protos.Event.Subscribed.Builder getSubscribedBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSubscribedFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
public org.apache.mesos.v1.executor.Protos.Event.SubscribedOrBuilder getSubscribedOrBuilder() {
if (subscribedBuilder_ != null) {
return subscribedBuilder_.getMessageOrBuilder();
} else {
return subscribed_ == null ?
org.apache.mesos.v1.executor.Protos.Event.Subscribed.getDefaultInstance() : subscribed_;
}
}
/**
* optional .mesos.v1.executor.Event.Subscribed subscribed = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Subscribed, org.apache.mesos.v1.executor.Protos.Event.Subscribed.Builder, org.apache.mesos.v1.executor.Protos.Event.SubscribedOrBuilder>
getSubscribedFieldBuilder() {
if (subscribedBuilder_ == null) {
subscribedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Subscribed, org.apache.mesos.v1.executor.Protos.Event.Subscribed.Builder, org.apache.mesos.v1.executor.Protos.Event.SubscribedOrBuilder>(
getSubscribed(),
getParentForChildren(),
isClean());
subscribed_ = null;
}
return subscribedBuilder_;
}
private org.apache.mesos.v1.executor.Protos.Event.Acknowledged acknowledged_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Acknowledged, org.apache.mesos.v1.executor.Protos.Event.Acknowledged.Builder, org.apache.mesos.v1.executor.Protos.Event.AcknowledgedOrBuilder> acknowledgedBuilder_;
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
public boolean hasAcknowledged() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
public org.apache.mesos.v1.executor.Protos.Event.Acknowledged getAcknowledged() {
if (acknowledgedBuilder_ == null) {
return acknowledged_ == null ? org.apache.mesos.v1.executor.Protos.Event.Acknowledged.getDefaultInstance() : acknowledged_;
} else {
return acknowledgedBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
public Builder setAcknowledged(org.apache.mesos.v1.executor.Protos.Event.Acknowledged value) {
if (acknowledgedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
acknowledged_ = value;
onChanged();
} else {
acknowledgedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
public Builder setAcknowledged(
org.apache.mesos.v1.executor.Protos.Event.Acknowledged.Builder builderForValue) {
if (acknowledgedBuilder_ == null) {
acknowledged_ = builderForValue.build();
onChanged();
} else {
acknowledgedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
public Builder mergeAcknowledged(org.apache.mesos.v1.executor.Protos.Event.Acknowledged value) {
if (acknowledgedBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
acknowledged_ != null &&
acknowledged_ != org.apache.mesos.v1.executor.Protos.Event.Acknowledged.getDefaultInstance()) {
acknowledged_ =
org.apache.mesos.v1.executor.Protos.Event.Acknowledged.newBuilder(acknowledged_).mergeFrom(value).buildPartial();
} else {
acknowledged_ = value;
}
onChanged();
} else {
acknowledgedBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
public Builder clearAcknowledged() {
if (acknowledgedBuilder_ == null) {
acknowledged_ = null;
onChanged();
} else {
acknowledgedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
public org.apache.mesos.v1.executor.Protos.Event.Acknowledged.Builder getAcknowledgedBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getAcknowledgedFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
public org.apache.mesos.v1.executor.Protos.Event.AcknowledgedOrBuilder getAcknowledgedOrBuilder() {
if (acknowledgedBuilder_ != null) {
return acknowledgedBuilder_.getMessageOrBuilder();
} else {
return acknowledged_ == null ?
org.apache.mesos.v1.executor.Protos.Event.Acknowledged.getDefaultInstance() : acknowledged_;
}
}
/**
* optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Acknowledged, org.apache.mesos.v1.executor.Protos.Event.Acknowledged.Builder, org.apache.mesos.v1.executor.Protos.Event.AcknowledgedOrBuilder>
getAcknowledgedFieldBuilder() {
if (acknowledgedBuilder_ == null) {
acknowledgedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Acknowledged, org.apache.mesos.v1.executor.Protos.Event.Acknowledged.Builder, org.apache.mesos.v1.executor.Protos.Event.AcknowledgedOrBuilder>(
getAcknowledged(),
getParentForChildren(),
isClean());
acknowledged_ = null;
}
return acknowledgedBuilder_;
}
private org.apache.mesos.v1.executor.Protos.Event.Launch launch_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Launch, org.apache.mesos.v1.executor.Protos.Event.Launch.Builder, org.apache.mesos.v1.executor.Protos.Event.LaunchOrBuilder> launchBuilder_;
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
public boolean hasLaunch() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
public org.apache.mesos.v1.executor.Protos.Event.Launch getLaunch() {
if (launchBuilder_ == null) {
return launch_ == null ? org.apache.mesos.v1.executor.Protos.Event.Launch.getDefaultInstance() : launch_;
} else {
return launchBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
public Builder setLaunch(org.apache.mesos.v1.executor.Protos.Event.Launch value) {
if (launchBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
launch_ = value;
onChanged();
} else {
launchBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
public Builder setLaunch(
org.apache.mesos.v1.executor.Protos.Event.Launch.Builder builderForValue) {
if (launchBuilder_ == null) {
launch_ = builderForValue.build();
onChanged();
} else {
launchBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
public Builder mergeLaunch(org.apache.mesos.v1.executor.Protos.Event.Launch value) {
if (launchBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
launch_ != null &&
launch_ != org.apache.mesos.v1.executor.Protos.Event.Launch.getDefaultInstance()) {
launch_ =
org.apache.mesos.v1.executor.Protos.Event.Launch.newBuilder(launch_).mergeFrom(value).buildPartial();
} else {
launch_ = value;
}
onChanged();
} else {
launchBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
public Builder clearLaunch() {
if (launchBuilder_ == null) {
launch_ = null;
onChanged();
} else {
launchBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
public org.apache.mesos.v1.executor.Protos.Event.Launch.Builder getLaunchBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getLaunchFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
public org.apache.mesos.v1.executor.Protos.Event.LaunchOrBuilder getLaunchOrBuilder() {
if (launchBuilder_ != null) {
return launchBuilder_.getMessageOrBuilder();
} else {
return launch_ == null ?
org.apache.mesos.v1.executor.Protos.Event.Launch.getDefaultInstance() : launch_;
}
}
/**
* optional .mesos.v1.executor.Event.Launch launch = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Launch, org.apache.mesos.v1.executor.Protos.Event.Launch.Builder, org.apache.mesos.v1.executor.Protos.Event.LaunchOrBuilder>
getLaunchFieldBuilder() {
if (launchBuilder_ == null) {
launchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Launch, org.apache.mesos.v1.executor.Protos.Event.Launch.Builder, org.apache.mesos.v1.executor.Protos.Event.LaunchOrBuilder>(
getLaunch(),
getParentForChildren(),
isClean());
launch_ = null;
}
return launchBuilder_;
}
private org.apache.mesos.v1.executor.Protos.Event.LaunchGroup launchGroup_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.LaunchGroup, org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.Builder, org.apache.mesos.v1.executor.Protos.Event.LaunchGroupOrBuilder> launchGroupBuilder_;
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
public boolean hasLaunchGroup() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
public org.apache.mesos.v1.executor.Protos.Event.LaunchGroup getLaunchGroup() {
if (launchGroupBuilder_ == null) {
return launchGroup_ == null ? org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.getDefaultInstance() : launchGroup_;
} else {
return launchGroupBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
public Builder setLaunchGroup(org.apache.mesos.v1.executor.Protos.Event.LaunchGroup value) {
if (launchGroupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
launchGroup_ = value;
onChanged();
} else {
launchGroupBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
public Builder setLaunchGroup(
org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.Builder builderForValue) {
if (launchGroupBuilder_ == null) {
launchGroup_ = builderForValue.build();
onChanged();
} else {
launchGroupBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
public Builder mergeLaunchGroup(org.apache.mesos.v1.executor.Protos.Event.LaunchGroup value) {
if (launchGroupBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
launchGroup_ != null &&
launchGroup_ != org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.getDefaultInstance()) {
launchGroup_ =
org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.newBuilder(launchGroup_).mergeFrom(value).buildPartial();
} else {
launchGroup_ = value;
}
onChanged();
} else {
launchGroupBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
public Builder clearLaunchGroup() {
if (launchGroupBuilder_ == null) {
launchGroup_ = null;
onChanged();
} else {
launchGroupBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
public org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.Builder getLaunchGroupBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getLaunchGroupFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
public org.apache.mesos.v1.executor.Protos.Event.LaunchGroupOrBuilder getLaunchGroupOrBuilder() {
if (launchGroupBuilder_ != null) {
return launchGroupBuilder_.getMessageOrBuilder();
} else {
return launchGroup_ == null ?
org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.getDefaultInstance() : launchGroup_;
}
}
/**
* optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.LaunchGroup, org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.Builder, org.apache.mesos.v1.executor.Protos.Event.LaunchGroupOrBuilder>
getLaunchGroupFieldBuilder() {
if (launchGroupBuilder_ == null) {
launchGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.LaunchGroup, org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.Builder, org.apache.mesos.v1.executor.Protos.Event.LaunchGroupOrBuilder>(
getLaunchGroup(),
getParentForChildren(),
isClean());
launchGroup_ = null;
}
return launchGroupBuilder_;
}
private org.apache.mesos.v1.executor.Protos.Event.Kill kill_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Kill, org.apache.mesos.v1.executor.Protos.Event.Kill.Builder, org.apache.mesos.v1.executor.Protos.Event.KillOrBuilder> killBuilder_;
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
public boolean hasKill() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
public org.apache.mesos.v1.executor.Protos.Event.Kill getKill() {
if (killBuilder_ == null) {
return kill_ == null ? org.apache.mesos.v1.executor.Protos.Event.Kill.getDefaultInstance() : kill_;
} else {
return killBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
public Builder setKill(org.apache.mesos.v1.executor.Protos.Event.Kill value) {
if (killBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kill_ = value;
onChanged();
} else {
killBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
public Builder setKill(
org.apache.mesos.v1.executor.Protos.Event.Kill.Builder builderForValue) {
if (killBuilder_ == null) {
kill_ = builderForValue.build();
onChanged();
} else {
killBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
public Builder mergeKill(org.apache.mesos.v1.executor.Protos.Event.Kill value) {
if (killBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
kill_ != null &&
kill_ != org.apache.mesos.v1.executor.Protos.Event.Kill.getDefaultInstance()) {
kill_ =
org.apache.mesos.v1.executor.Protos.Event.Kill.newBuilder(kill_).mergeFrom(value).buildPartial();
} else {
kill_ = value;
}
onChanged();
} else {
killBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
public Builder clearKill() {
if (killBuilder_ == null) {
kill_ = null;
onChanged();
} else {
killBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
public org.apache.mesos.v1.executor.Protos.Event.Kill.Builder getKillBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getKillFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
public org.apache.mesos.v1.executor.Protos.Event.KillOrBuilder getKillOrBuilder() {
if (killBuilder_ != null) {
return killBuilder_.getMessageOrBuilder();
} else {
return kill_ == null ?
org.apache.mesos.v1.executor.Protos.Event.Kill.getDefaultInstance() : kill_;
}
}
/**
* optional .mesos.v1.executor.Event.Kill kill = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Kill, org.apache.mesos.v1.executor.Protos.Event.Kill.Builder, org.apache.mesos.v1.executor.Protos.Event.KillOrBuilder>
getKillFieldBuilder() {
if (killBuilder_ == null) {
killBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Kill, org.apache.mesos.v1.executor.Protos.Event.Kill.Builder, org.apache.mesos.v1.executor.Protos.Event.KillOrBuilder>(
getKill(),
getParentForChildren(),
isClean());
kill_ = null;
}
return killBuilder_;
}
private org.apache.mesos.v1.executor.Protos.Event.Message message_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Message, org.apache.mesos.v1.executor.Protos.Event.Message.Builder, org.apache.mesos.v1.executor.Protos.Event.MessageOrBuilder> messageBuilder_;
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
public org.apache.mesos.v1.executor.Protos.Event.Message getMessage() {
if (messageBuilder_ == null) {
return message_ == null ? org.apache.mesos.v1.executor.Protos.Event.Message.getDefaultInstance() : message_;
} else {
return messageBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
public Builder setMessage(org.apache.mesos.v1.executor.Protos.Event.Message value) {
if (messageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
messageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
public Builder setMessage(
org.apache.mesos.v1.executor.Protos.Event.Message.Builder builderForValue) {
if (messageBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
messageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
public Builder mergeMessage(org.apache.mesos.v1.executor.Protos.Event.Message value) {
if (messageBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
message_ != null &&
message_ != org.apache.mesos.v1.executor.Protos.Event.Message.getDefaultInstance()) {
message_ =
org.apache.mesos.v1.executor.Protos.Event.Message.newBuilder(message_).mergeFrom(value).buildPartial();
} else {
message_ = value;
}
onChanged();
} else {
messageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
public Builder clearMessage() {
if (messageBuilder_ == null) {
message_ = null;
onChanged();
} else {
messageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
public org.apache.mesos.v1.executor.Protos.Event.Message.Builder getMessageBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getMessageFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
public org.apache.mesos.v1.executor.Protos.Event.MessageOrBuilder getMessageOrBuilder() {
if (messageBuilder_ != null) {
return messageBuilder_.getMessageOrBuilder();
} else {
return message_ == null ?
org.apache.mesos.v1.executor.Protos.Event.Message.getDefaultInstance() : message_;
}
}
/**
* optional .mesos.v1.executor.Event.Message message = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Message, org.apache.mesos.v1.executor.Protos.Event.Message.Builder, org.apache.mesos.v1.executor.Protos.Event.MessageOrBuilder>
getMessageFieldBuilder() {
if (messageBuilder_ == null) {
messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Message, org.apache.mesos.v1.executor.Protos.Event.Message.Builder, org.apache.mesos.v1.executor.Protos.Event.MessageOrBuilder>(
getMessage(),
getParentForChildren(),
isClean());
message_ = null;
}
return messageBuilder_;
}
private org.apache.mesos.v1.executor.Protos.Event.Error error_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Error, org.apache.mesos.v1.executor.Protos.Event.Error.Builder, org.apache.mesos.v1.executor.Protos.Event.ErrorOrBuilder> errorBuilder_;
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
public boolean hasError() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
public org.apache.mesos.v1.executor.Protos.Event.Error getError() {
if (errorBuilder_ == null) {
return error_ == null ? org.apache.mesos.v1.executor.Protos.Event.Error.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
public Builder setError(org.apache.mesos.v1.executor.Protos.Event.Error value) {
if (errorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
errorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
public Builder setError(
org.apache.mesos.v1.executor.Protos.Event.Error.Builder builderForValue) {
if (errorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
errorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
public Builder mergeError(org.apache.mesos.v1.executor.Protos.Event.Error value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000080) == 0x00000080) &&
error_ != null &&
error_ != org.apache.mesos.v1.executor.Protos.Event.Error.getDefaultInstance()) {
error_ =
org.apache.mesos.v1.executor.Protos.Event.Error.newBuilder(error_).mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
errorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
public org.apache.mesos.v1.executor.Protos.Event.Error.Builder getErrorBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
public org.apache.mesos.v1.executor.Protos.Event.ErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
org.apache.mesos.v1.executor.Protos.Event.Error.getDefaultInstance() : error_;
}
}
/**
* optional .mesos.v1.executor.Event.Error error = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Error, org.apache.mesos.v1.executor.Protos.Event.Error.Builder, org.apache.mesos.v1.executor.Protos.Event.ErrorOrBuilder>
getErrorFieldBuilder() {
if (errorBuilder_ == null) {
errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Event.Error, org.apache.mesos.v1.executor.Protos.Event.Error.Builder, org.apache.mesos.v1.executor.Protos.Event.ErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event)
}
// @@protoc_insertion_point(class_scope:mesos.v1.executor.Event)
private static final org.apache.mesos.v1.executor.Protos.Event DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.mesos.v1.executor.Protos.Event();
}
public static org.apache.mesos.v1.executor.Protos.Event getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Event parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Event(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.mesos.v1.executor.Protos.Event getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CallOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.executor.Call)
com.google.protobuf.MessageOrBuilder {
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
boolean hasExecutorId();
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
org.apache.mesos.v1.Protos.ExecutorID getExecutorId();
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder();
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
boolean hasFrameworkId();
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
org.apache.mesos.v1.Protos.FrameworkID getFrameworkId();
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder();
/**
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* In case type is SUBSCRIBED, no message needs to be set.
* See comments on `Event::Type` above on the reasoning behind this
* field being optional.
*
*
* optional .mesos.v1.executor.Call.Type type = 3;
*/
boolean hasType();
/**
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* In case type is SUBSCRIBED, no message needs to be set.
* See comments on `Event::Type` above on the reasoning behind this
* field being optional.
*
*
* optional .mesos.v1.executor.Call.Type type = 3;
*/
org.apache.mesos.v1.executor.Protos.Call.Type getType();
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
boolean hasSubscribe();
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
org.apache.mesos.v1.executor.Protos.Call.Subscribe getSubscribe();
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
org.apache.mesos.v1.executor.Protos.Call.SubscribeOrBuilder getSubscribeOrBuilder();
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
boolean hasUpdate();
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
org.apache.mesos.v1.executor.Protos.Call.Update getUpdate();
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder getUpdateOrBuilder();
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
boolean hasMessage();
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
org.apache.mesos.v1.executor.Protos.Call.Message getMessage();
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
org.apache.mesos.v1.executor.Protos.Call.MessageOrBuilder getMessageOrBuilder();
}
/**
*
**
* Executor call API.
* Like Event, a Call is described using the standard protocol buffer
* "union" trick (see above).
*
*
* Protobuf type {@code mesos.v1.executor.Call}
*/
public static final class Call extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mesos.v1.executor.Call)
CallOrBuilder {
private static final long serialVersionUID = 0L;
// Use Call.newBuilder() to construct.
private Call(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Call() {
type_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Call(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.v1.Protos.ExecutorID.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = executorId_.toBuilder();
}
executorId_ = input.readMessage(org.apache.mesos.v1.Protos.ExecutorID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(executorId_);
executorId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.apache.mesos.v1.Protos.FrameworkID.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = frameworkId_.toBuilder();
}
frameworkId_ = input.readMessage(org.apache.mesos.v1.Protos.FrameworkID.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(frameworkId_);
frameworkId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24: {
int rawValue = input.readEnum();
org.apache.mesos.v1.executor.Protos.Call.Type value = org.apache.mesos.v1.executor.Protos.Call.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
type_ = rawValue;
}
break;
}
case 34: {
org.apache.mesos.v1.executor.Protos.Call.Subscribe.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = subscribe_.toBuilder();
}
subscribe_ = input.readMessage(org.apache.mesos.v1.executor.Protos.Call.Subscribe.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(subscribe_);
subscribe_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
org.apache.mesos.v1.executor.Protos.Call.Update.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = update_.toBuilder();
}
update_ = input.readMessage(org.apache.mesos.v1.executor.Protos.Call.Update.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(update_);
update_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
org.apache.mesos.v1.executor.Protos.Call.Message.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) == 0x00000020)) {
subBuilder = message_.toBuilder();
}
message_ = input.readMessage(org.apache.mesos.v1.executor.Protos.Call.Message.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(message_);
message_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Call.class, org.apache.mesos.v1.executor.Protos.Call.Builder.class);
}
/**
*
* Possible call types, followed by message definitions if
* applicable.
*
*
* Protobuf enum {@code mesos.v1.executor.Call.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* See comments above on `Event::Type` for more details on this enum value.
*
*
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
*
* See 'Subscribe' below.
*
*
* SUBSCRIBE = 1;
*/
SUBSCRIBE(1),
/**
*
* See 'Update' below.
*
*
* UPDATE = 2;
*/
UPDATE(2),
/**
*
* See 'Message' below.
*
*
* MESSAGE = 3;
*/
MESSAGE(3),
/**
*
* Optional message that can be used to make sure the executor's
* connection is still alive and to prevent any possible network
* intermediaries from marking the connection as stale (when there
* are no other messages being sent). Heartbeats are only necessary
* if the executor uses a persistent connection to send calls.
*
*
* HEARTBEAT = 4;
*/
HEARTBEAT(4),
;
/**
*
* See comments above on `Event::Type` for more details on this enum value.
*
*
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
*
* See 'Subscribe' below.
*
*
* SUBSCRIBE = 1;
*/
public static final int SUBSCRIBE_VALUE = 1;
/**
*
* See 'Update' below.
*
*
* UPDATE = 2;
*/
public static final int UPDATE_VALUE = 2;
/**
*
* See 'Message' below.
*
*
* MESSAGE = 3;
*/
public static final int MESSAGE_VALUE = 3;
/**
*
* Optional message that can be used to make sure the executor's
* connection is still alive and to prevent any possible network
* intermediaries from marking the connection as stale (when there
* are no other messages being sent). Heartbeats are only necessary
* if the executor uses a persistent connection to send calls.
*
*
* HEARTBEAT = 4;
*/
public static final int HEARTBEAT_VALUE = 4;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
public static Type forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return SUBSCRIBE;
case 2: return UPDATE;
case 3: return MESSAGE;
case 4: return HEARTBEAT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.Call.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:mesos.v1.executor.Call.Type)
}
public interface SubscribeOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.executor.Call.Subscribe)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
java.util.List
getUnacknowledgedTasksList();
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
org.apache.mesos.v1.Protos.TaskInfo getUnacknowledgedTasks(int index);
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
int getUnacknowledgedTasksCount();
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
java.util.List extends org.apache.mesos.v1.Protos.TaskInfoOrBuilder>
getUnacknowledgedTasksOrBuilderList();
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
org.apache.mesos.v1.Protos.TaskInfoOrBuilder getUnacknowledgedTasksOrBuilder(
int index);
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
java.util.List
getUnacknowledgedUpdatesList();
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
org.apache.mesos.v1.executor.Protos.Call.Update getUnacknowledgedUpdates(int index);
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
int getUnacknowledgedUpdatesCount();
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
java.util.List extends org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder>
getUnacknowledgedUpdatesOrBuilderList();
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder getUnacknowledgedUpdatesOrBuilder(
int index);
}
/**
*
* Request to subscribe with the agent. If subscribing after a disconnection,
* it must include a list of all the tasks and updates which haven't been
* acknowledged by the scheduler.
*
*
* Protobuf type {@code mesos.v1.executor.Call.Subscribe}
*/
public static final class Subscribe extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mesos.v1.executor.Call.Subscribe)
SubscribeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Subscribe.newBuilder() to construct.
private Subscribe(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Subscribe() {
unacknowledgedTasks_ = java.util.Collections.emptyList();
unacknowledgedUpdates_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Subscribe(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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)) {
unacknowledgedTasks_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
unacknowledgedTasks_.add(
input.readMessage(org.apache.mesos.v1.Protos.TaskInfo.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
unacknowledgedUpdates_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
unacknowledgedUpdates_.add(
input.readMessage(org.apache.mesos.v1.executor.Protos.Call.Update.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).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
unacknowledgedTasks_ = java.util.Collections.unmodifiableList(unacknowledgedTasks_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
unacknowledgedUpdates_ = java.util.Collections.unmodifiableList(unacknowledgedUpdates_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Subscribe_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Subscribe_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Call.Subscribe.class, org.apache.mesos.v1.executor.Protos.Call.Subscribe.Builder.class);
}
public static final int UNACKNOWLEDGED_TASKS_FIELD_NUMBER = 1;
private java.util.List unacknowledgedTasks_;
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public java.util.List getUnacknowledgedTasksList() {
return unacknowledgedTasks_;
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.TaskInfoOrBuilder>
getUnacknowledgedTasksOrBuilderList() {
return unacknowledgedTasks_;
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public int getUnacknowledgedTasksCount() {
return unacknowledgedTasks_.size();
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public org.apache.mesos.v1.Protos.TaskInfo getUnacknowledgedTasks(int index) {
return unacknowledgedTasks_.get(index);
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public org.apache.mesos.v1.Protos.TaskInfoOrBuilder getUnacknowledgedTasksOrBuilder(
int index) {
return unacknowledgedTasks_.get(index);
}
public static final int UNACKNOWLEDGED_UPDATES_FIELD_NUMBER = 2;
private java.util.List unacknowledgedUpdates_;
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public java.util.List getUnacknowledgedUpdatesList() {
return unacknowledgedUpdates_;
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public java.util.List extends org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder>
getUnacknowledgedUpdatesOrBuilderList() {
return unacknowledgedUpdates_;
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public int getUnacknowledgedUpdatesCount() {
return unacknowledgedUpdates_.size();
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public org.apache.mesos.v1.executor.Protos.Call.Update getUnacknowledgedUpdates(int index) {
return unacknowledgedUpdates_.get(index);
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder getUnacknowledgedUpdatesOrBuilder(
int index) {
return unacknowledgedUpdates_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getUnacknowledgedTasksCount(); i++) {
if (!getUnacknowledgedTasks(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getUnacknowledgedUpdatesCount(); i++) {
if (!getUnacknowledgedUpdates(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < unacknowledgedTasks_.size(); i++) {
output.writeMessage(1, unacknowledgedTasks_.get(i));
}
for (int i = 0; i < unacknowledgedUpdates_.size(); i++) {
output.writeMessage(2, unacknowledgedUpdates_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < unacknowledgedTasks_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, unacknowledgedTasks_.get(i));
}
for (int i = 0; i < unacknowledgedUpdates_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, unacknowledgedUpdates_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.mesos.v1.executor.Protos.Call.Subscribe)) {
return super.equals(obj);
}
org.apache.mesos.v1.executor.Protos.Call.Subscribe other = (org.apache.mesos.v1.executor.Protos.Call.Subscribe) obj;
boolean result = true;
result = result && getUnacknowledgedTasksList()
.equals(other.getUnacknowledgedTasksList());
result = result && getUnacknowledgedUpdatesList()
.equals(other.getUnacknowledgedUpdatesList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getUnacknowledgedTasksCount() > 0) {
hash = (37 * hash) + UNACKNOWLEDGED_TASKS_FIELD_NUMBER;
hash = (53 * hash) + getUnacknowledgedTasksList().hashCode();
}
if (getUnacknowledgedUpdatesCount() > 0) {
hash = (37 * hash) + UNACKNOWLEDGED_UPDATES_FIELD_NUMBER;
hash = (53 * hash) + getUnacknowledgedUpdatesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.mesos.v1.executor.Protos.Call.Subscribe parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Call.Subscribe parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call.Subscribe parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Call.Subscribe 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.v1.executor.Protos.Call.Subscribe parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Call.Subscribe parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call.Subscribe parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Call.Subscribe parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call.Subscribe parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Call.Subscribe parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call.Subscribe parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Call.Subscribe parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Call.Subscribe prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Request to subscribe with the agent. If subscribing after a disconnection,
* it must include a list of all the tasks and updates which haven't been
* acknowledged by the scheduler.
*
*
* Protobuf type {@code mesos.v1.executor.Call.Subscribe}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.executor.Call.Subscribe)
org.apache.mesos.v1.executor.Protos.Call.SubscribeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Subscribe_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Subscribe_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Call.Subscribe.class, org.apache.mesos.v1.executor.Protos.Call.Subscribe.Builder.class);
}
// Construct using org.apache.mesos.v1.executor.Protos.Call.Subscribe.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getUnacknowledgedTasksFieldBuilder();
getUnacknowledgedUpdatesFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (unacknowledgedTasksBuilder_ == null) {
unacknowledgedTasks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
unacknowledgedTasksBuilder_.clear();
}
if (unacknowledgedUpdatesBuilder_ == null) {
unacknowledgedUpdates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
unacknowledgedUpdatesBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Subscribe_descriptor;
}
public org.apache.mesos.v1.executor.Protos.Call.Subscribe getDefaultInstanceForType() {
return org.apache.mesos.v1.executor.Protos.Call.Subscribe.getDefaultInstance();
}
public org.apache.mesos.v1.executor.Protos.Call.Subscribe build() {
org.apache.mesos.v1.executor.Protos.Call.Subscribe result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.executor.Protos.Call.Subscribe buildPartial() {
org.apache.mesos.v1.executor.Protos.Call.Subscribe result = new org.apache.mesos.v1.executor.Protos.Call.Subscribe(this);
int from_bitField0_ = bitField0_;
if (unacknowledgedTasksBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
unacknowledgedTasks_ = java.util.Collections.unmodifiableList(unacknowledgedTasks_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.unacknowledgedTasks_ = unacknowledgedTasks_;
} else {
result.unacknowledgedTasks_ = unacknowledgedTasksBuilder_.build();
}
if (unacknowledgedUpdatesBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
unacknowledgedUpdates_ = java.util.Collections.unmodifiableList(unacknowledgedUpdates_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.unacknowledgedUpdates_ = unacknowledgedUpdates_;
} else {
result.unacknowledgedUpdates_ = unacknowledgedUpdatesBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.executor.Protos.Call.Subscribe) {
return mergeFrom((org.apache.mesos.v1.executor.Protos.Call.Subscribe)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.executor.Protos.Call.Subscribe other) {
if (other == org.apache.mesos.v1.executor.Protos.Call.Subscribe.getDefaultInstance()) return this;
if (unacknowledgedTasksBuilder_ == null) {
if (!other.unacknowledgedTasks_.isEmpty()) {
if (unacknowledgedTasks_.isEmpty()) {
unacknowledgedTasks_ = other.unacknowledgedTasks_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureUnacknowledgedTasksIsMutable();
unacknowledgedTasks_.addAll(other.unacknowledgedTasks_);
}
onChanged();
}
} else {
if (!other.unacknowledgedTasks_.isEmpty()) {
if (unacknowledgedTasksBuilder_.isEmpty()) {
unacknowledgedTasksBuilder_.dispose();
unacknowledgedTasksBuilder_ = null;
unacknowledgedTasks_ = other.unacknowledgedTasks_;
bitField0_ = (bitField0_ & ~0x00000001);
unacknowledgedTasksBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUnacknowledgedTasksFieldBuilder() : null;
} else {
unacknowledgedTasksBuilder_.addAllMessages(other.unacknowledgedTasks_);
}
}
}
if (unacknowledgedUpdatesBuilder_ == null) {
if (!other.unacknowledgedUpdates_.isEmpty()) {
if (unacknowledgedUpdates_.isEmpty()) {
unacknowledgedUpdates_ = other.unacknowledgedUpdates_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureUnacknowledgedUpdatesIsMutable();
unacknowledgedUpdates_.addAll(other.unacknowledgedUpdates_);
}
onChanged();
}
} else {
if (!other.unacknowledgedUpdates_.isEmpty()) {
if (unacknowledgedUpdatesBuilder_.isEmpty()) {
unacknowledgedUpdatesBuilder_.dispose();
unacknowledgedUpdatesBuilder_ = null;
unacknowledgedUpdates_ = other.unacknowledgedUpdates_;
bitField0_ = (bitField0_ & ~0x00000002);
unacknowledgedUpdatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUnacknowledgedUpdatesFieldBuilder() : null;
} else {
unacknowledgedUpdatesBuilder_.addAllMessages(other.unacknowledgedUpdates_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getUnacknowledgedTasksCount(); i++) {
if (!getUnacknowledgedTasks(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getUnacknowledgedUpdatesCount(); i++) {
if (!getUnacknowledgedUpdates(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.v1.executor.Protos.Call.Subscribe parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.executor.Protos.Call.Subscribe) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List unacknowledgedTasks_ =
java.util.Collections.emptyList();
private void ensureUnacknowledgedTasksIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
unacknowledgedTasks_ = new java.util.ArrayList(unacknowledgedTasks_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskInfo, org.apache.mesos.v1.Protos.TaskInfo.Builder, org.apache.mesos.v1.Protos.TaskInfoOrBuilder> unacknowledgedTasksBuilder_;
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public java.util.List getUnacknowledgedTasksList() {
if (unacknowledgedTasksBuilder_ == null) {
return java.util.Collections.unmodifiableList(unacknowledgedTasks_);
} else {
return unacknowledgedTasksBuilder_.getMessageList();
}
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public int getUnacknowledgedTasksCount() {
if (unacknowledgedTasksBuilder_ == null) {
return unacknowledgedTasks_.size();
} else {
return unacknowledgedTasksBuilder_.getCount();
}
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public org.apache.mesos.v1.Protos.TaskInfo getUnacknowledgedTasks(int index) {
if (unacknowledgedTasksBuilder_ == null) {
return unacknowledgedTasks_.get(index);
} else {
return unacknowledgedTasksBuilder_.getMessage(index);
}
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public Builder setUnacknowledgedTasks(
int index, org.apache.mesos.v1.Protos.TaskInfo value) {
if (unacknowledgedTasksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnacknowledgedTasksIsMutable();
unacknowledgedTasks_.set(index, value);
onChanged();
} else {
unacknowledgedTasksBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public Builder setUnacknowledgedTasks(
int index, org.apache.mesos.v1.Protos.TaskInfo.Builder builderForValue) {
if (unacknowledgedTasksBuilder_ == null) {
ensureUnacknowledgedTasksIsMutable();
unacknowledgedTasks_.set(index, builderForValue.build());
onChanged();
} else {
unacknowledgedTasksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public Builder addUnacknowledgedTasks(org.apache.mesos.v1.Protos.TaskInfo value) {
if (unacknowledgedTasksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnacknowledgedTasksIsMutable();
unacknowledgedTasks_.add(value);
onChanged();
} else {
unacknowledgedTasksBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public Builder addUnacknowledgedTasks(
int index, org.apache.mesos.v1.Protos.TaskInfo value) {
if (unacknowledgedTasksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnacknowledgedTasksIsMutable();
unacknowledgedTasks_.add(index, value);
onChanged();
} else {
unacknowledgedTasksBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public Builder addUnacknowledgedTasks(
org.apache.mesos.v1.Protos.TaskInfo.Builder builderForValue) {
if (unacknowledgedTasksBuilder_ == null) {
ensureUnacknowledgedTasksIsMutable();
unacknowledgedTasks_.add(builderForValue.build());
onChanged();
} else {
unacknowledgedTasksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public Builder addUnacknowledgedTasks(
int index, org.apache.mesos.v1.Protos.TaskInfo.Builder builderForValue) {
if (unacknowledgedTasksBuilder_ == null) {
ensureUnacknowledgedTasksIsMutable();
unacknowledgedTasks_.add(index, builderForValue.build());
onChanged();
} else {
unacknowledgedTasksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public Builder addAllUnacknowledgedTasks(
java.lang.Iterable extends org.apache.mesos.v1.Protos.TaskInfo> values) {
if (unacknowledgedTasksBuilder_ == null) {
ensureUnacknowledgedTasksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, unacknowledgedTasks_);
onChanged();
} else {
unacknowledgedTasksBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public Builder clearUnacknowledgedTasks() {
if (unacknowledgedTasksBuilder_ == null) {
unacknowledgedTasks_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
unacknowledgedTasksBuilder_.clear();
}
return this;
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public Builder removeUnacknowledgedTasks(int index) {
if (unacknowledgedTasksBuilder_ == null) {
ensureUnacknowledgedTasksIsMutable();
unacknowledgedTasks_.remove(index);
onChanged();
} else {
unacknowledgedTasksBuilder_.remove(index);
}
return this;
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public org.apache.mesos.v1.Protos.TaskInfo.Builder getUnacknowledgedTasksBuilder(
int index) {
return getUnacknowledgedTasksFieldBuilder().getBuilder(index);
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public org.apache.mesos.v1.Protos.TaskInfoOrBuilder getUnacknowledgedTasksOrBuilder(
int index) {
if (unacknowledgedTasksBuilder_ == null) {
return unacknowledgedTasks_.get(index); } else {
return unacknowledgedTasksBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public java.util.List extends org.apache.mesos.v1.Protos.TaskInfoOrBuilder>
getUnacknowledgedTasksOrBuilderList() {
if (unacknowledgedTasksBuilder_ != null) {
return unacknowledgedTasksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(unacknowledgedTasks_);
}
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public org.apache.mesos.v1.Protos.TaskInfo.Builder addUnacknowledgedTasksBuilder() {
return getUnacknowledgedTasksFieldBuilder().addBuilder(
org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance());
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public org.apache.mesos.v1.Protos.TaskInfo.Builder addUnacknowledgedTasksBuilder(
int index) {
return getUnacknowledgedTasksFieldBuilder().addBuilder(
index, org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance());
}
/**
* repeated .mesos.v1.TaskInfo unacknowledged_tasks = 1;
*/
public java.util.List
getUnacknowledgedTasksBuilderList() {
return getUnacknowledgedTasksFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskInfo, org.apache.mesos.v1.Protos.TaskInfo.Builder, org.apache.mesos.v1.Protos.TaskInfoOrBuilder>
getUnacknowledgedTasksFieldBuilder() {
if (unacknowledgedTasksBuilder_ == null) {
unacknowledgedTasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskInfo, org.apache.mesos.v1.Protos.TaskInfo.Builder, org.apache.mesos.v1.Protos.TaskInfoOrBuilder>(
unacknowledgedTasks_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
unacknowledgedTasks_ = null;
}
return unacknowledgedTasksBuilder_;
}
private java.util.List unacknowledgedUpdates_ =
java.util.Collections.emptyList();
private void ensureUnacknowledgedUpdatesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
unacknowledgedUpdates_ = new java.util.ArrayList(unacknowledgedUpdates_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Call.Update, org.apache.mesos.v1.executor.Protos.Call.Update.Builder, org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder> unacknowledgedUpdatesBuilder_;
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public java.util.List getUnacknowledgedUpdatesList() {
if (unacknowledgedUpdatesBuilder_ == null) {
return java.util.Collections.unmodifiableList(unacknowledgedUpdates_);
} else {
return unacknowledgedUpdatesBuilder_.getMessageList();
}
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public int getUnacknowledgedUpdatesCount() {
if (unacknowledgedUpdatesBuilder_ == null) {
return unacknowledgedUpdates_.size();
} else {
return unacknowledgedUpdatesBuilder_.getCount();
}
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public org.apache.mesos.v1.executor.Protos.Call.Update getUnacknowledgedUpdates(int index) {
if (unacknowledgedUpdatesBuilder_ == null) {
return unacknowledgedUpdates_.get(index);
} else {
return unacknowledgedUpdatesBuilder_.getMessage(index);
}
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public Builder setUnacknowledgedUpdates(
int index, org.apache.mesos.v1.executor.Protos.Call.Update value) {
if (unacknowledgedUpdatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnacknowledgedUpdatesIsMutable();
unacknowledgedUpdates_.set(index, value);
onChanged();
} else {
unacknowledgedUpdatesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public Builder setUnacknowledgedUpdates(
int index, org.apache.mesos.v1.executor.Protos.Call.Update.Builder builderForValue) {
if (unacknowledgedUpdatesBuilder_ == null) {
ensureUnacknowledgedUpdatesIsMutable();
unacknowledgedUpdates_.set(index, builderForValue.build());
onChanged();
} else {
unacknowledgedUpdatesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public Builder addUnacknowledgedUpdates(org.apache.mesos.v1.executor.Protos.Call.Update value) {
if (unacknowledgedUpdatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnacknowledgedUpdatesIsMutable();
unacknowledgedUpdates_.add(value);
onChanged();
} else {
unacknowledgedUpdatesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public Builder addUnacknowledgedUpdates(
int index, org.apache.mesos.v1.executor.Protos.Call.Update value) {
if (unacknowledgedUpdatesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnacknowledgedUpdatesIsMutable();
unacknowledgedUpdates_.add(index, value);
onChanged();
} else {
unacknowledgedUpdatesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public Builder addUnacknowledgedUpdates(
org.apache.mesos.v1.executor.Protos.Call.Update.Builder builderForValue) {
if (unacknowledgedUpdatesBuilder_ == null) {
ensureUnacknowledgedUpdatesIsMutable();
unacknowledgedUpdates_.add(builderForValue.build());
onChanged();
} else {
unacknowledgedUpdatesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public Builder addUnacknowledgedUpdates(
int index, org.apache.mesos.v1.executor.Protos.Call.Update.Builder builderForValue) {
if (unacknowledgedUpdatesBuilder_ == null) {
ensureUnacknowledgedUpdatesIsMutable();
unacknowledgedUpdates_.add(index, builderForValue.build());
onChanged();
} else {
unacknowledgedUpdatesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public Builder addAllUnacknowledgedUpdates(
java.lang.Iterable extends org.apache.mesos.v1.executor.Protos.Call.Update> values) {
if (unacknowledgedUpdatesBuilder_ == null) {
ensureUnacknowledgedUpdatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, unacknowledgedUpdates_);
onChanged();
} else {
unacknowledgedUpdatesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public Builder clearUnacknowledgedUpdates() {
if (unacknowledgedUpdatesBuilder_ == null) {
unacknowledgedUpdates_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
unacknowledgedUpdatesBuilder_.clear();
}
return this;
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public Builder removeUnacknowledgedUpdates(int index) {
if (unacknowledgedUpdatesBuilder_ == null) {
ensureUnacknowledgedUpdatesIsMutable();
unacknowledgedUpdates_.remove(index);
onChanged();
} else {
unacknowledgedUpdatesBuilder_.remove(index);
}
return this;
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public org.apache.mesos.v1.executor.Protos.Call.Update.Builder getUnacknowledgedUpdatesBuilder(
int index) {
return getUnacknowledgedUpdatesFieldBuilder().getBuilder(index);
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder getUnacknowledgedUpdatesOrBuilder(
int index) {
if (unacknowledgedUpdatesBuilder_ == null) {
return unacknowledgedUpdates_.get(index); } else {
return unacknowledgedUpdatesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public java.util.List extends org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder>
getUnacknowledgedUpdatesOrBuilderList() {
if (unacknowledgedUpdatesBuilder_ != null) {
return unacknowledgedUpdatesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(unacknowledgedUpdates_);
}
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public org.apache.mesos.v1.executor.Protos.Call.Update.Builder addUnacknowledgedUpdatesBuilder() {
return getUnacknowledgedUpdatesFieldBuilder().addBuilder(
org.apache.mesos.v1.executor.Protos.Call.Update.getDefaultInstance());
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public org.apache.mesos.v1.executor.Protos.Call.Update.Builder addUnacknowledgedUpdatesBuilder(
int index) {
return getUnacknowledgedUpdatesFieldBuilder().addBuilder(
index, org.apache.mesos.v1.executor.Protos.Call.Update.getDefaultInstance());
}
/**
* repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2;
*/
public java.util.List
getUnacknowledgedUpdatesBuilderList() {
return getUnacknowledgedUpdatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Call.Update, org.apache.mesos.v1.executor.Protos.Call.Update.Builder, org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder>
getUnacknowledgedUpdatesFieldBuilder() {
if (unacknowledgedUpdatesBuilder_ == null) {
unacknowledgedUpdatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Call.Update, org.apache.mesos.v1.executor.Protos.Call.Update.Builder, org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder>(
unacknowledgedUpdates_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
unacknowledgedUpdates_ = null;
}
return unacknowledgedUpdatesBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mesos.v1.executor.Call.Subscribe)
}
// @@protoc_insertion_point(class_scope:mesos.v1.executor.Call.Subscribe)
private static final org.apache.mesos.v1.executor.Protos.Call.Subscribe DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.mesos.v1.executor.Protos.Call.Subscribe();
}
public static org.apache.mesos.v1.executor.Protos.Call.Subscribe getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Subscribe parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Subscribe(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.mesos.v1.executor.Protos.Call.Subscribe getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UpdateOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.executor.Call.Update)
com.google.protobuf.MessageOrBuilder {
/**
* required .mesos.v1.TaskStatus status = 1;
*/
boolean hasStatus();
/**
* required .mesos.v1.TaskStatus status = 1;
*/
org.apache.mesos.v1.Protos.TaskStatus getStatus();
/**
* required .mesos.v1.TaskStatus status = 1;
*/
org.apache.mesos.v1.Protos.TaskStatusOrBuilder getStatusOrBuilder();
}
/**
*
* Notifies the scheduler that a task has transitioned from one
* state to another. Status updates should be used by executors
* to reliably communicate the status of the tasks that they
* manage. It is crucial that a terminal update (see TaskState
* in v1/mesos.proto) is sent to the scheduler as soon as the task
* terminates, in order for Mesos to release the resources allocated
* to the task. It is the responsibility of the scheduler to
* explicitly acknowledge the receipt of a status update. See
* 'Acknowledged' in the 'Events' section above for the semantics.
*
*
* Protobuf type {@code mesos.v1.executor.Call.Update}
*/
public static final class Update extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mesos.v1.executor.Call.Update)
UpdateOrBuilder {
private static final long serialVersionUID = 0L;
// Use Update.newBuilder() to construct.
private Update(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Update() {
}
@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 {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.v1.Protos.TaskStatus.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(org.apache.mesos.v1.Protos.TaskStatus.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = 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).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Update_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Update_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Call.Update.class, org.apache.mesos.v1.executor.Protos.Call.Update.Builder.class);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.TaskStatus status_;
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public org.apache.mesos.v1.Protos.TaskStatus getStatus() {
return status_ == null ? org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance() : status_;
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public org.apache.mesos.v1.Protos.TaskStatusOrBuilder getStatusOrBuilder() {
return status_ == null ? org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance() : status_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasStatus()) {
memoizedIsInitialized = 0;
return false;
}
if (!getStatus().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getStatus());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStatus());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.mesos.v1.executor.Protos.Call.Update)) {
return super.equals(obj);
}
org.apache.mesos.v1.executor.Protos.Call.Update other = (org.apache.mesos.v1.executor.Protos.Call.Update) obj;
boolean result = true;
result = result && (hasStatus() == other.hasStatus());
if (hasStatus()) {
result = result && getStatus()
.equals(other.getStatus());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.mesos.v1.executor.Protos.Call.Update parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Call.Update parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call.Update parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Call.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.v1.executor.Protos.Call.Update parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Call.Update parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call.Update parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Call.Update parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call.Update parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Call.Update parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call.Update parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Call.Update parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Call.Update prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Notifies the scheduler that a task has transitioned from one
* state to another. Status updates should be used by executors
* to reliably communicate the status of the tasks that they
* manage. It is crucial that a terminal update (see TaskState
* in v1/mesos.proto) is sent to the scheduler as soon as the task
* terminates, in order for Mesos to release the resources allocated
* to the task. It is the responsibility of the scheduler to
* explicitly acknowledge the receipt of a status update. See
* 'Acknowledged' in the 'Events' section above for the semantics.
*
*
* Protobuf type {@code mesos.v1.executor.Call.Update}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.executor.Call.Update)
org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Update_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Update_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Call.Update.class, org.apache.mesos.v1.executor.Protos.Call.Update.Builder.class);
}
// Construct using org.apache.mesos.v1.executor.Protos.Call.Update.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStatusFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (statusBuilder_ == null) {
status_ = null;
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Update_descriptor;
}
public org.apache.mesos.v1.executor.Protos.Call.Update getDefaultInstanceForType() {
return org.apache.mesos.v1.executor.Protos.Call.Update.getDefaultInstance();
}
public org.apache.mesos.v1.executor.Protos.Call.Update build() {
org.apache.mesos.v1.executor.Protos.Call.Update result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.executor.Protos.Call.Update buildPartial() {
org.apache.mesos.v1.executor.Protos.Call.Update result = new org.apache.mesos.v1.executor.Protos.Call.Update(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (statusBuilder_ == null) {
result.status_ = status_;
} else {
result.status_ = statusBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.executor.Protos.Call.Update) {
return mergeFrom((org.apache.mesos.v1.executor.Protos.Call.Update)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.executor.Protos.Call.Update other) {
if (other == org.apache.mesos.v1.executor.Protos.Call.Update.getDefaultInstance()) return this;
if (other.hasStatus()) {
mergeStatus(other.getStatus());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasStatus()) {
return false;
}
if (!getStatus().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.v1.executor.Protos.Call.Update parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.executor.Protos.Call.Update) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.TaskStatus status_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskStatus, org.apache.mesos.v1.Protos.TaskStatus.Builder, org.apache.mesos.v1.Protos.TaskStatusOrBuilder> statusBuilder_;
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public org.apache.mesos.v1.Protos.TaskStatus getStatus() {
if (statusBuilder_ == null) {
return status_ == null ? org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance() : status_;
} else {
return statusBuilder_.getMessage();
}
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public Builder setStatus(org.apache.mesos.v1.Protos.TaskStatus value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public Builder setStatus(
org.apache.mesos.v1.Protos.TaskStatus.Builder builderForValue) {
if (statusBuilder_ == null) {
status_ = builderForValue.build();
onChanged();
} else {
statusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public Builder mergeStatus(org.apache.mesos.v1.Protos.TaskStatus value) {
if (statusBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
status_ != null &&
status_ != org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance()) {
status_ =
org.apache.mesos.v1.Protos.TaskStatus.newBuilder(status_).mergeFrom(value).buildPartial();
} else {
status_ = value;
}
onChanged();
} else {
statusBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public Builder clearStatus() {
if (statusBuilder_ == null) {
status_ = null;
onChanged();
} else {
statusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public org.apache.mesos.v1.Protos.TaskStatus.Builder getStatusBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
public org.apache.mesos.v1.Protos.TaskStatusOrBuilder getStatusOrBuilder() {
if (statusBuilder_ != null) {
return statusBuilder_.getMessageOrBuilder();
} else {
return status_ == null ?
org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance() : status_;
}
}
/**
* required .mesos.v1.TaskStatus status = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskStatus, org.apache.mesos.v1.Protos.TaskStatus.Builder, org.apache.mesos.v1.Protos.TaskStatusOrBuilder>
getStatusFieldBuilder() {
if (statusBuilder_ == null) {
statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.TaskStatus, org.apache.mesos.v1.Protos.TaskStatus.Builder, org.apache.mesos.v1.Protos.TaskStatusOrBuilder>(
getStatus(),
getParentForChildren(),
isClean());
status_ = null;
}
return statusBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mesos.v1.executor.Call.Update)
}
// @@protoc_insertion_point(class_scope:mesos.v1.executor.Call.Update)
private static final org.apache.mesos.v1.executor.Protos.Call.Update DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.mesos.v1.executor.Protos.Call.Update();
}
public static org.apache.mesos.v1.executor.Protos.Call.Update getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final 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);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.mesos.v1.executor.Protos.Call.Update getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:mesos.v1.executor.Call.Message)
com.google.protobuf.MessageOrBuilder {
/**
* required bytes data = 2;
*/
boolean hasData();
/**
* required bytes data = 2;
*/
com.google.protobuf.ByteString getData();
}
/**
*
* Sends arbitrary binary data to the scheduler. Note that Mesos
* neither interprets this data nor makes any guarantees about the
* delivery of this message to the scheduler.
* See 'Message' in the 'Events' section.
*
*
* Protobuf type {@code mesos.v1.executor.Call.Message}
*/
public static final class Message extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:mesos.v1.executor.Call.Message)
MessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use Message.newBuilder() to construct.
private Message(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Message() {
data_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Message(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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_ |= 0x00000001;
data_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Message_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Call.Message.class, org.apache.mesos.v1.executor.Protos.Call.Message.Builder.class);
}
private int bitField0_;
public static final int DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString data_;
/**
* required bytes data = 2;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes data = 2;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasData()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(2, data_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, data_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.mesos.v1.executor.Protos.Call.Message)) {
return super.equals(obj);
}
org.apache.mesos.v1.executor.Protos.Call.Message other = (org.apache.mesos.v1.executor.Protos.Call.Message) obj;
boolean result = true;
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.mesos.v1.executor.Protos.Call.Message parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Call.Message parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call.Message parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Call.Message 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.v1.executor.Protos.Call.Message parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Call.Message parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call.Message parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Call.Message parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call.Message parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Call.Message parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call.Message parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Call.Message parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Call.Message prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Sends arbitrary binary data to the scheduler. Note that Mesos
* neither interprets this data nor makes any guarantees about the
* delivery of this message to the scheduler.
* See 'Message' in the 'Events' section.
*
*
* Protobuf type {@code mesos.v1.executor.Call.Message}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.executor.Call.Message)
org.apache.mesos.v1.executor.Protos.Call.MessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Message_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Message_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Call.Message.class, org.apache.mesos.v1.executor.Protos.Call.Message.Builder.class);
}
// Construct using org.apache.mesos.v1.executor.Protos.Call.Message.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_Message_descriptor;
}
public org.apache.mesos.v1.executor.Protos.Call.Message getDefaultInstanceForType() {
return org.apache.mesos.v1.executor.Protos.Call.Message.getDefaultInstance();
}
public org.apache.mesos.v1.executor.Protos.Call.Message build() {
org.apache.mesos.v1.executor.Protos.Call.Message result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.executor.Protos.Call.Message buildPartial() {
org.apache.mesos.v1.executor.Protos.Call.Message result = new org.apache.mesos.v1.executor.Protos.Call.Message(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.executor.Protos.Call.Message) {
return mergeFrom((org.apache.mesos.v1.executor.Protos.Call.Message)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.executor.Protos.Call.Message other) {
if (other == org.apache.mesos.v1.executor.Protos.Call.Message.getDefaultInstance()) return this;
if (other.hasData()) {
setData(other.getData());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasData()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.mesos.v1.executor.Protos.Call.Message parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.executor.Protos.Call.Message) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes data = 2;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes data = 2;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* required bytes data = 2;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
data_ = value;
onChanged();
return this;
}
/**
* required bytes data = 2;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000001);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mesos.v1.executor.Call.Message)
}
// @@protoc_insertion_point(class_scope:mesos.v1.executor.Call.Message)
private static final org.apache.mesos.v1.executor.Protos.Call.Message DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.mesos.v1.executor.Protos.Call.Message();
}
public static org.apache.mesos.v1.executor.Protos.Call.Message getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Message parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Message(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.mesos.v1.executor.Protos.Call.Message getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int EXECUTOR_ID_FIELD_NUMBER = 1;
private org.apache.mesos.v1.Protos.ExecutorID executorId_;
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public boolean hasExecutorId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() {
return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_;
}
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() {
return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_;
}
public static final int FRAMEWORK_ID_FIELD_NUMBER = 2;
private org.apache.mesos.v1.Protos.FrameworkID frameworkId_;
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
public boolean hasFrameworkId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() {
return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_;
}
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() {
return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_;
}
public static final int TYPE_FIELD_NUMBER = 3;
private int type_;
/**
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* In case type is SUBSCRIBED, no message needs to be set.
* See comments on `Event::Type` above on the reasoning behind this
* field being optional.
*
*
* optional .mesos.v1.executor.Call.Type type = 3;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* In case type is SUBSCRIBED, no message needs to be set.
* See comments on `Event::Type` above on the reasoning behind this
* field being optional.
*
*
* optional .mesos.v1.executor.Call.Type type = 3;
*/
public org.apache.mesos.v1.executor.Protos.Call.Type getType() {
org.apache.mesos.v1.executor.Protos.Call.Type result = org.apache.mesos.v1.executor.Protos.Call.Type.valueOf(type_);
return result == null ? org.apache.mesos.v1.executor.Protos.Call.Type.UNKNOWN : result;
}
public static final int SUBSCRIBE_FIELD_NUMBER = 4;
private org.apache.mesos.v1.executor.Protos.Call.Subscribe subscribe_;
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
public boolean hasSubscribe() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
public org.apache.mesos.v1.executor.Protos.Call.Subscribe getSubscribe() {
return subscribe_ == null ? org.apache.mesos.v1.executor.Protos.Call.Subscribe.getDefaultInstance() : subscribe_;
}
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
public org.apache.mesos.v1.executor.Protos.Call.SubscribeOrBuilder getSubscribeOrBuilder() {
return subscribe_ == null ? org.apache.mesos.v1.executor.Protos.Call.Subscribe.getDefaultInstance() : subscribe_;
}
public static final int UPDATE_FIELD_NUMBER = 5;
private org.apache.mesos.v1.executor.Protos.Call.Update update_;
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
public boolean hasUpdate() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
public org.apache.mesos.v1.executor.Protos.Call.Update getUpdate() {
return update_ == null ? org.apache.mesos.v1.executor.Protos.Call.Update.getDefaultInstance() : update_;
}
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
public org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder getUpdateOrBuilder() {
return update_ == null ? org.apache.mesos.v1.executor.Protos.Call.Update.getDefaultInstance() : update_;
}
public static final int MESSAGE_FIELD_NUMBER = 6;
private org.apache.mesos.v1.executor.Protos.Call.Message message_;
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
public org.apache.mesos.v1.executor.Protos.Call.Message getMessage() {
return message_ == null ? org.apache.mesos.v1.executor.Protos.Call.Message.getDefaultInstance() : message_;
}
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
public org.apache.mesos.v1.executor.Protos.Call.MessageOrBuilder getMessageOrBuilder() {
return message_ == null ? org.apache.mesos.v1.executor.Protos.Call.Message.getDefaultInstance() : message_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasExecutorId()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasFrameworkId()) {
memoizedIsInitialized = 0;
return false;
}
if (!getExecutorId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (!getFrameworkId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
if (hasSubscribe()) {
if (!getSubscribe().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasUpdate()) {
if (!getUpdate().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasMessage()) {
if (!getMessage().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getExecutorId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getFrameworkId());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeEnum(3, type_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getSubscribe());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, getUpdate());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeMessage(6, getMessage());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getExecutorId());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFrameworkId());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, type_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSubscribe());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getUpdate());
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getMessage());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.mesos.v1.executor.Protos.Call)) {
return super.equals(obj);
}
org.apache.mesos.v1.executor.Protos.Call other = (org.apache.mesos.v1.executor.Protos.Call) obj;
boolean result = true;
result = result && (hasExecutorId() == other.hasExecutorId());
if (hasExecutorId()) {
result = result && getExecutorId()
.equals(other.getExecutorId());
}
result = result && (hasFrameworkId() == other.hasFrameworkId());
if (hasFrameworkId()) {
result = result && getFrameworkId()
.equals(other.getFrameworkId());
}
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && type_ == other.type_;
}
result = result && (hasSubscribe() == other.hasSubscribe());
if (hasSubscribe()) {
result = result && getSubscribe()
.equals(other.getSubscribe());
}
result = result && (hasUpdate() == other.hasUpdate());
if (hasUpdate()) {
result = result && getUpdate()
.equals(other.getUpdate());
}
result = result && (hasMessage() == other.hasMessage());
if (hasMessage()) {
result = result && getMessage()
.equals(other.getMessage());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasExecutorId()) {
hash = (37 * hash) + EXECUTOR_ID_FIELD_NUMBER;
hash = (53 * hash) + getExecutorId().hashCode();
}
if (hasFrameworkId()) {
hash = (37 * hash) + FRAMEWORK_ID_FIELD_NUMBER;
hash = (53 * hash) + getFrameworkId().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
if (hasSubscribe()) {
hash = (37 * hash) + SUBSCRIBE_FIELD_NUMBER;
hash = (53 * hash) + getSubscribe().hashCode();
}
if (hasUpdate()) {
hash = (37 * hash) + UPDATE_FIELD_NUMBER;
hash = (53 * hash) + getUpdate().hashCode();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.mesos.v1.executor.Protos.Call parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Call parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Call 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.v1.executor.Protos.Call parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.mesos.v1.executor.Protos.Call parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Call parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Call parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.mesos.v1.executor.Protos.Call parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.mesos.v1.executor.Protos.Call parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Call prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
**
* Executor call API.
* Like Event, a Call is described using the standard protocol buffer
* "union" trick (see above).
*
*
* Protobuf type {@code mesos.v1.executor.Call}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:mesos.v1.executor.Call)
org.apache.mesos.v1.executor.Protos.CallOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.mesos.v1.executor.Protos.Call.class, org.apache.mesos.v1.executor.Protos.Call.Builder.class);
}
// Construct using org.apache.mesos.v1.executor.Protos.Call.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExecutorIdFieldBuilder();
getFrameworkIdFieldBuilder();
getSubscribeFieldBuilder();
getUpdateFieldBuilder();
getMessageFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (executorIdBuilder_ == null) {
executorId_ = null;
} else {
executorIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (frameworkIdBuilder_ == null) {
frameworkId_ = null;
} else {
frameworkIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (subscribeBuilder_ == null) {
subscribe_ = null;
} else {
subscribeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (updateBuilder_ == null) {
update_ = null;
} else {
updateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (messageBuilder_ == null) {
message_ = null;
} else {
messageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.mesos.v1.executor.Protos.internal_static_mesos_v1_executor_Call_descriptor;
}
public org.apache.mesos.v1.executor.Protos.Call getDefaultInstanceForType() {
return org.apache.mesos.v1.executor.Protos.Call.getDefaultInstance();
}
public org.apache.mesos.v1.executor.Protos.Call build() {
org.apache.mesos.v1.executor.Protos.Call result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.apache.mesos.v1.executor.Protos.Call buildPartial() {
org.apache.mesos.v1.executor.Protos.Call result = new org.apache.mesos.v1.executor.Protos.Call(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (executorIdBuilder_ == null) {
result.executorId_ = executorId_;
} else {
result.executorId_ = executorIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (frameworkIdBuilder_ == null) {
result.frameworkId_ = frameworkId_;
} else {
result.frameworkId_ = frameworkIdBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (subscribeBuilder_ == null) {
result.subscribe_ = subscribe_;
} else {
result.subscribe_ = subscribeBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (updateBuilder_ == null) {
result.update_ = update_;
} else {
result.update_ = updateBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
if (messageBuilder_ == null) {
result.message_ = message_;
} else {
result.message_ = messageBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.mesos.v1.executor.Protos.Call) {
return mergeFrom((org.apache.mesos.v1.executor.Protos.Call)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.mesos.v1.executor.Protos.Call other) {
if (other == org.apache.mesos.v1.executor.Protos.Call.getDefaultInstance()) return this;
if (other.hasExecutorId()) {
mergeExecutorId(other.getExecutorId());
}
if (other.hasFrameworkId()) {
mergeFrameworkId(other.getFrameworkId());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasSubscribe()) {
mergeSubscribe(other.getSubscribe());
}
if (other.hasUpdate()) {
mergeUpdate(other.getUpdate());
}
if (other.hasMessage()) {
mergeMessage(other.getMessage());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasExecutorId()) {
return false;
}
if (!hasFrameworkId()) {
return false;
}
if (!getExecutorId().isInitialized()) {
return false;
}
if (!getFrameworkId().isInitialized()) {
return false;
}
if (hasSubscribe()) {
if (!getSubscribe().isInitialized()) {
return false;
}
}
if (hasUpdate()) {
if (!getUpdate().isInitialized()) {
return false;
}
}
if (hasMessage()) {
if (!getMessage().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.v1.executor.Protos.Call parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.mesos.v1.executor.Protos.Call) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.apache.mesos.v1.Protos.ExecutorID executorId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> executorIdBuilder_;
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public boolean hasExecutorId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() {
if (executorIdBuilder_ == null) {
return executorId_ == null ? org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_;
} else {
return executorIdBuilder_.getMessage();
}
}
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public Builder setExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) {
if (executorIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executorId_ = value;
onChanged();
} else {
executorIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public Builder setExecutorId(
org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) {
if (executorIdBuilder_ == null) {
executorId_ = builderForValue.build();
onChanged();
} else {
executorIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public Builder mergeExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) {
if (executorIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
executorId_ != null &&
executorId_ != org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance()) {
executorId_ =
org.apache.mesos.v1.Protos.ExecutorID.newBuilder(executorId_).mergeFrom(value).buildPartial();
} else {
executorId_ = value;
}
onChanged();
} else {
executorIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public Builder clearExecutorId() {
if (executorIdBuilder_ == null) {
executorId_ = null;
onChanged();
} else {
executorIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorID.Builder getExecutorIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getExecutorIdFieldBuilder().getBuilder();
}
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() {
if (executorIdBuilder_ != null) {
return executorIdBuilder_.getMessageOrBuilder();
} else {
return executorId_ == null ?
org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance() : executorId_;
}
}
/**
*
* Identifies the executor which generated this call.
*
*
* required .mesos.v1.ExecutorID executor_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>
getExecutorIdFieldBuilder() {
if (executorIdBuilder_ == null) {
executorIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder>(
getExecutorId(),
getParentForChildren(),
isClean());
executorId_ = null;
}
return executorIdBuilder_;
}
private org.apache.mesos.v1.Protos.FrameworkID frameworkId_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder> frameworkIdBuilder_;
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
public boolean hasFrameworkId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() {
if (frameworkIdBuilder_ == null) {
return frameworkId_ == null ? org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_;
} else {
return frameworkIdBuilder_.getMessage();
}
}
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
public Builder setFrameworkId(org.apache.mesos.v1.Protos.FrameworkID value) {
if (frameworkIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
frameworkId_ = value;
onChanged();
} else {
frameworkIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
public Builder setFrameworkId(
org.apache.mesos.v1.Protos.FrameworkID.Builder builderForValue) {
if (frameworkIdBuilder_ == null) {
frameworkId_ = builderForValue.build();
onChanged();
} else {
frameworkIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
public Builder mergeFrameworkId(org.apache.mesos.v1.Protos.FrameworkID value) {
if (frameworkIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
frameworkId_ != null &&
frameworkId_ != org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance()) {
frameworkId_ =
org.apache.mesos.v1.Protos.FrameworkID.newBuilder(frameworkId_).mergeFrom(value).buildPartial();
} else {
frameworkId_ = value;
}
onChanged();
} else {
frameworkIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
public Builder clearFrameworkId() {
if (frameworkIdBuilder_ == null) {
frameworkId_ = null;
onChanged();
} else {
frameworkIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
public org.apache.mesos.v1.Protos.FrameworkID.Builder getFrameworkIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getFrameworkIdFieldBuilder().getBuilder();
}
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() {
if (frameworkIdBuilder_ != null) {
return frameworkIdBuilder_.getMessageOrBuilder();
} else {
return frameworkId_ == null ?
org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance() : frameworkId_;
}
}
/**
* required .mesos.v1.FrameworkID framework_id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder>
getFrameworkIdFieldBuilder() {
if (frameworkIdBuilder_ == null) {
frameworkIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.Protos.FrameworkID, org.apache.mesos.v1.Protos.FrameworkID.Builder, org.apache.mesos.v1.Protos.FrameworkIDOrBuilder>(
getFrameworkId(),
getParentForChildren(),
isClean());
frameworkId_ = null;
}
return frameworkIdBuilder_;
}
private int type_ = 0;
/**
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* In case type is SUBSCRIBED, no message needs to be set.
* See comments on `Event::Type` above on the reasoning behind this
* field being optional.
*
*
* optional .mesos.v1.executor.Call.Type type = 3;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* In case type is SUBSCRIBED, no message needs to be set.
* See comments on `Event::Type` above on the reasoning behind this
* field being optional.
*
*
* optional .mesos.v1.executor.Call.Type type = 3;
*/
public org.apache.mesos.v1.executor.Protos.Call.Type getType() {
org.apache.mesos.v1.executor.Protos.Call.Type result = org.apache.mesos.v1.executor.Protos.Call.Type.valueOf(type_);
return result == null ? org.apache.mesos.v1.executor.Protos.Call.Type.UNKNOWN : result;
}
/**
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* In case type is SUBSCRIBED, no message needs to be set.
* See comments on `Event::Type` above on the reasoning behind this
* field being optional.
*
*
* optional .mesos.v1.executor.Call.Type type = 3;
*/
public Builder setType(org.apache.mesos.v1.executor.Protos.Call.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Type of the call, indicates which optional field below should be
* present if that type has a nested message definition.
* In case type is SUBSCRIBED, no message needs to be set.
* See comments on `Event::Type` above on the reasoning behind this
* field being optional.
*
*
* optional .mesos.v1.executor.Call.Type type = 3;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000004);
type_ = 0;
onChanged();
return this;
}
private org.apache.mesos.v1.executor.Protos.Call.Subscribe subscribe_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Call.Subscribe, org.apache.mesos.v1.executor.Protos.Call.Subscribe.Builder, org.apache.mesos.v1.executor.Protos.Call.SubscribeOrBuilder> subscribeBuilder_;
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
public boolean hasSubscribe() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
public org.apache.mesos.v1.executor.Protos.Call.Subscribe getSubscribe() {
if (subscribeBuilder_ == null) {
return subscribe_ == null ? org.apache.mesos.v1.executor.Protos.Call.Subscribe.getDefaultInstance() : subscribe_;
} else {
return subscribeBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
public Builder setSubscribe(org.apache.mesos.v1.executor.Protos.Call.Subscribe value) {
if (subscribeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
subscribe_ = value;
onChanged();
} else {
subscribeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
public Builder setSubscribe(
org.apache.mesos.v1.executor.Protos.Call.Subscribe.Builder builderForValue) {
if (subscribeBuilder_ == null) {
subscribe_ = builderForValue.build();
onChanged();
} else {
subscribeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
public Builder mergeSubscribe(org.apache.mesos.v1.executor.Protos.Call.Subscribe value) {
if (subscribeBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
subscribe_ != null &&
subscribe_ != org.apache.mesos.v1.executor.Protos.Call.Subscribe.getDefaultInstance()) {
subscribe_ =
org.apache.mesos.v1.executor.Protos.Call.Subscribe.newBuilder(subscribe_).mergeFrom(value).buildPartial();
} else {
subscribe_ = value;
}
onChanged();
} else {
subscribeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
public Builder clearSubscribe() {
if (subscribeBuilder_ == null) {
subscribe_ = null;
onChanged();
} else {
subscribeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
public org.apache.mesos.v1.executor.Protos.Call.Subscribe.Builder getSubscribeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getSubscribeFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
public org.apache.mesos.v1.executor.Protos.Call.SubscribeOrBuilder getSubscribeOrBuilder() {
if (subscribeBuilder_ != null) {
return subscribeBuilder_.getMessageOrBuilder();
} else {
return subscribe_ == null ?
org.apache.mesos.v1.executor.Protos.Call.Subscribe.getDefaultInstance() : subscribe_;
}
}
/**
* optional .mesos.v1.executor.Call.Subscribe subscribe = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Call.Subscribe, org.apache.mesos.v1.executor.Protos.Call.Subscribe.Builder, org.apache.mesos.v1.executor.Protos.Call.SubscribeOrBuilder>
getSubscribeFieldBuilder() {
if (subscribeBuilder_ == null) {
subscribeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Call.Subscribe, org.apache.mesos.v1.executor.Protos.Call.Subscribe.Builder, org.apache.mesos.v1.executor.Protos.Call.SubscribeOrBuilder>(
getSubscribe(),
getParentForChildren(),
isClean());
subscribe_ = null;
}
return subscribeBuilder_;
}
private org.apache.mesos.v1.executor.Protos.Call.Update update_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Call.Update, org.apache.mesos.v1.executor.Protos.Call.Update.Builder, org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder> updateBuilder_;
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
public boolean hasUpdate() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
public org.apache.mesos.v1.executor.Protos.Call.Update getUpdate() {
if (updateBuilder_ == null) {
return update_ == null ? org.apache.mesos.v1.executor.Protos.Call.Update.getDefaultInstance() : update_;
} else {
return updateBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
public Builder setUpdate(org.apache.mesos.v1.executor.Protos.Call.Update value) {
if (updateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
update_ = value;
onChanged();
} else {
updateBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
public Builder setUpdate(
org.apache.mesos.v1.executor.Protos.Call.Update.Builder builderForValue) {
if (updateBuilder_ == null) {
update_ = builderForValue.build();
onChanged();
} else {
updateBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
public Builder mergeUpdate(org.apache.mesos.v1.executor.Protos.Call.Update value) {
if (updateBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
update_ != null &&
update_ != org.apache.mesos.v1.executor.Protos.Call.Update.getDefaultInstance()) {
update_ =
org.apache.mesos.v1.executor.Protos.Call.Update.newBuilder(update_).mergeFrom(value).buildPartial();
} else {
update_ = value;
}
onChanged();
} else {
updateBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
public Builder clearUpdate() {
if (updateBuilder_ == null) {
update_ = null;
onChanged();
} else {
updateBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
public org.apache.mesos.v1.executor.Protos.Call.Update.Builder getUpdateBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getUpdateFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
public org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder getUpdateOrBuilder() {
if (updateBuilder_ != null) {
return updateBuilder_.getMessageOrBuilder();
} else {
return update_ == null ?
org.apache.mesos.v1.executor.Protos.Call.Update.getDefaultInstance() : update_;
}
}
/**
* optional .mesos.v1.executor.Call.Update update = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Call.Update, org.apache.mesos.v1.executor.Protos.Call.Update.Builder, org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder>
getUpdateFieldBuilder() {
if (updateBuilder_ == null) {
updateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Call.Update, org.apache.mesos.v1.executor.Protos.Call.Update.Builder, org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder>(
getUpdate(),
getParentForChildren(),
isClean());
update_ = null;
}
return updateBuilder_;
}
private org.apache.mesos.v1.executor.Protos.Call.Message message_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Call.Message, org.apache.mesos.v1.executor.Protos.Call.Message.Builder, org.apache.mesos.v1.executor.Protos.Call.MessageOrBuilder> messageBuilder_;
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
public org.apache.mesos.v1.executor.Protos.Call.Message getMessage() {
if (messageBuilder_ == null) {
return message_ == null ? org.apache.mesos.v1.executor.Protos.Call.Message.getDefaultInstance() : message_;
} else {
return messageBuilder_.getMessage();
}
}
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
public Builder setMessage(org.apache.mesos.v1.executor.Protos.Call.Message value) {
if (messageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
messageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
public Builder setMessage(
org.apache.mesos.v1.executor.Protos.Call.Message.Builder builderForValue) {
if (messageBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
messageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
public Builder mergeMessage(org.apache.mesos.v1.executor.Protos.Call.Message value) {
if (messageBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020) &&
message_ != null &&
message_ != org.apache.mesos.v1.executor.Protos.Call.Message.getDefaultInstance()) {
message_ =
org.apache.mesos.v1.executor.Protos.Call.Message.newBuilder(message_).mergeFrom(value).buildPartial();
} else {
message_ = value;
}
onChanged();
} else {
messageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
public Builder clearMessage() {
if (messageBuilder_ == null) {
message_ = null;
onChanged();
} else {
messageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
public org.apache.mesos.v1.executor.Protos.Call.Message.Builder getMessageBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getMessageFieldBuilder().getBuilder();
}
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
public org.apache.mesos.v1.executor.Protos.Call.MessageOrBuilder getMessageOrBuilder() {
if (messageBuilder_ != null) {
return messageBuilder_.getMessageOrBuilder();
} else {
return message_ == null ?
org.apache.mesos.v1.executor.Protos.Call.Message.getDefaultInstance() : message_;
}
}
/**
* optional .mesos.v1.executor.Call.Message message = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Call.Message, org.apache.mesos.v1.executor.Protos.Call.Message.Builder, org.apache.mesos.v1.executor.Protos.Call.MessageOrBuilder>
getMessageFieldBuilder() {
if (messageBuilder_ == null) {
messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.mesos.v1.executor.Protos.Call.Message, org.apache.mesos.v1.executor.Protos.Call.Message.Builder, org.apache.mesos.v1.executor.Protos.Call.MessageOrBuilder>(
getMessage(),
getParentForChildren(),
isClean());
message_ = null;
}
return messageBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:mesos.v1.executor.Call)
}
// @@protoc_insertion_point(class_scope:mesos.v1.executor.Call)
private static final org.apache.mesos.v1.executor.Protos.Call DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.mesos.v1.executor.Protos.Call();
}
public static org.apache.mesos.v1.executor.Protos.Call getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Call parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Call(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.apache.mesos.v1.executor.Protos.Call getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_executor_Event_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_mesos_v1_executor_Event_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_executor_Event_Subscribed_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_mesos_v1_executor_Event_Subscribed_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_executor_Event_Launch_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_mesos_v1_executor_Event_Launch_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_executor_Event_LaunchGroup_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_mesos_v1_executor_Event_LaunchGroup_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_executor_Event_Kill_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_mesos_v1_executor_Event_Kill_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_executor_Event_Acknowledged_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_mesos_v1_executor_Event_Acknowledged_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_executor_Event_Message_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_mesos_v1_executor_Event_Message_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_executor_Event_Error_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_mesos_v1_executor_Event_Error_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_executor_Call_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_mesos_v1_executor_Call_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_executor_Call_Subscribe_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_mesos_v1_executor_Call_Subscribe_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_executor_Call_Update_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_mesos_v1_executor_Call_Update_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_mesos_v1_executor_Call_Message_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_mesos_v1_executor_Call_Message_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/v1/executor/executor.proto\022\021meso" +
"s.v1.executor\032\024mesos/v1/mesos.proto\"\262\010\n\005" +
"Event\022+\n\004type\030\001 \001(\0162\035.mesos.v1.executor." +
"Event.Type\0227\n\nsubscribed\030\002 \001(\0132#.mesos.v" +
"1.executor.Event.Subscribed\022;\n\014acknowled" +
"ged\030\003 \001(\0132%.mesos.v1.executor.Event.Ackn" +
"owledged\022/\n\006launch\030\004 \001(\0132\037.mesos.v1.exec" +
"utor.Event.Launch\022:\n\014launch_group\030\010 \001(\0132" +
"$.mesos.v1.executor.Event.LaunchGroup\022+\n" +
"\004kill\030\005 \001(\0132\035.mesos.v1.executor.Event.Ki" +
"ll\0221\n\007message\030\006 \001(\0132 .mesos.v1.executor." +
"Event.Message\022-\n\005error\030\007 \001(\0132\036.mesos.v1." +
"executor.Event.Error\032\302\001\n\nSubscribed\022-\n\re" +
"xecutor_info\030\001 \002(\0132\026.mesos.v1.ExecutorIn" +
"fo\022/\n\016framework_info\030\002 \002(\0132\027.mesos.v1.Fr" +
"ameworkInfo\022\'\n\nagent_info\030\003 \002(\0132\023.mesos." +
"v1.AgentInfo\022+\n\014container_id\030\004 \001(\0132\025.mes" +
"os.v1.ContainerID\032*\n\006Launch\022 \n\004task\030\001 \002(" +
"\0132\022.mesos.v1.TaskInfo\032:\n\013LaunchGroup\022+\n\n" +
"task_group\030\001 \002(\0132\027.mesos.v1.TaskGroupInf" +
"o\032T\n\004Kill\022!\n\007task_id\030\001 \002(\0132\020.mesos.v1.Ta" +
"skID\022)\n\013kill_policy\030\002 \001(\0132\024.mesos.v1.Kil" +
"lPolicy\032?\n\014Acknowledged\022!\n\007task_id\030\001 \002(\013" +
"2\020.mesos.v1.TaskID\022\014\n\004uuid\030\002 \002(\014\032\027\n\007Mess" +
"age\022\014\n\004data\030\001 \002(\014\032\030\n\005Error\022\017\n\007message\030\001 " +
"\002(\t\"\222\001\n\004Type\022\013\n\007UNKNOWN\020\000\022\016\n\nSUBSCRIBED\020" +
"\001\022\n\n\006LAUNCH\020\002\022\020\n\014LAUNCH_GROUP\020\010\022\010\n\004KILL\020" +
"\003\022\020\n\014ACKNOWLEDGED\020\004\022\013\n\007MESSAGE\020\005\022\t\n\005ERRO" +
"R\020\006\022\014\n\010SHUTDOWN\020\007\022\r\n\tHEARTBEAT\020\t\"\266\004\n\004Cal" +
"l\022)\n\013executor_id\030\001 \002(\0132\024.mesos.v1.Execut" +
"orID\022+\n\014framework_id\030\002 \002(\0132\025.mesos.v1.Fr" +
"ameworkID\022*\n\004type\030\003 \001(\0162\034.mesos.v1.execu" +
"tor.Call.Type\0224\n\tsubscribe\030\004 \001(\0132!.mesos" +
".v1.executor.Call.Subscribe\022.\n\006update\030\005 " +
"\001(\0132\036.mesos.v1.executor.Call.Update\0220\n\007m" +
"essage\030\006 \001(\0132\037.mesos.v1.executor.Call.Me" +
"ssage\032}\n\tSubscribe\0220\n\024unacknowledged_tas" +
"ks\030\001 \003(\0132\022.mesos.v1.TaskInfo\022>\n\026unacknow" +
"ledged_updates\030\002 \003(\0132\036.mesos.v1.executor" +
".Call.Update\032.\n\006Update\022$\n\006status\030\001 \002(\0132\024" +
".mesos.v1.TaskStatus\032\027\n\007Message\022\014\n\004data\030" +
"\002 \002(\014\"J\n\004Type\022\013\n\007UNKNOWN\020\000\022\r\n\tSUBSCRIBE\020" +
"\001\022\n\n\006UPDATE\020\002\022\013\n\007MESSAGE\020\003\022\r\n\tHEARTBEAT\020" +
"\004B&\n\034org.apache.mesos.v1.executorB\006Proto" +
"s"
};
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;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.apache.mesos.v1.Protos.getDescriptor(),
}, assigner);
internal_static_mesos_v1_executor_Event_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_mesos_v1_executor_Event_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_mesos_v1_executor_Event_descriptor,
new java.lang.String[] { "Type", "Subscribed", "Acknowledged", "Launch", "LaunchGroup", "Kill", "Message", "Error", });
internal_static_mesos_v1_executor_Event_Subscribed_descriptor =
internal_static_mesos_v1_executor_Event_descriptor.getNestedTypes().get(0);
internal_static_mesos_v1_executor_Event_Subscribed_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_mesos_v1_executor_Event_Subscribed_descriptor,
new java.lang.String[] { "ExecutorInfo", "FrameworkInfo", "AgentInfo", "ContainerId", });
internal_static_mesos_v1_executor_Event_Launch_descriptor =
internal_static_mesos_v1_executor_Event_descriptor.getNestedTypes().get(1);
internal_static_mesos_v1_executor_Event_Launch_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_mesos_v1_executor_Event_Launch_descriptor,
new java.lang.String[] { "Task", });
internal_static_mesos_v1_executor_Event_LaunchGroup_descriptor =
internal_static_mesos_v1_executor_Event_descriptor.getNestedTypes().get(2);
internal_static_mesos_v1_executor_Event_LaunchGroup_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_mesos_v1_executor_Event_LaunchGroup_descriptor,
new java.lang.String[] { "TaskGroup", });
internal_static_mesos_v1_executor_Event_Kill_descriptor =
internal_static_mesos_v1_executor_Event_descriptor.getNestedTypes().get(3);
internal_static_mesos_v1_executor_Event_Kill_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_mesos_v1_executor_Event_Kill_descriptor,
new java.lang.String[] { "TaskId", "KillPolicy", });
internal_static_mesos_v1_executor_Event_Acknowledged_descriptor =
internal_static_mesos_v1_executor_Event_descriptor.getNestedTypes().get(4);
internal_static_mesos_v1_executor_Event_Acknowledged_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_mesos_v1_executor_Event_Acknowledged_descriptor,
new java.lang.String[] { "TaskId", "Uuid", });
internal_static_mesos_v1_executor_Event_Message_descriptor =
internal_static_mesos_v1_executor_Event_descriptor.getNestedTypes().get(5);
internal_static_mesos_v1_executor_Event_Message_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_mesos_v1_executor_Event_Message_descriptor,
new java.lang.String[] { "Data", });
internal_static_mesos_v1_executor_Event_Error_descriptor =
internal_static_mesos_v1_executor_Event_descriptor.getNestedTypes().get(6);
internal_static_mesos_v1_executor_Event_Error_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_mesos_v1_executor_Event_Error_descriptor,
new java.lang.String[] { "Message", });
internal_static_mesos_v1_executor_Call_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_mesos_v1_executor_Call_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_mesos_v1_executor_Call_descriptor,
new java.lang.String[] { "ExecutorId", "FrameworkId", "Type", "Subscribe", "Update", "Message", });
internal_static_mesos_v1_executor_Call_Subscribe_descriptor =
internal_static_mesos_v1_executor_Call_descriptor.getNestedTypes().get(0);
internal_static_mesos_v1_executor_Call_Subscribe_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_mesos_v1_executor_Call_Subscribe_descriptor,
new java.lang.String[] { "UnacknowledgedTasks", "UnacknowledgedUpdates", });
internal_static_mesos_v1_executor_Call_Update_descriptor =
internal_static_mesos_v1_executor_Call_descriptor.getNestedTypes().get(1);
internal_static_mesos_v1_executor_Call_Update_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_mesos_v1_executor_Call_Update_descriptor,
new java.lang.String[] { "Status", });
internal_static_mesos_v1_executor_Call_Message_descriptor =
internal_static_mesos_v1_executor_Call_descriptor.getNestedTypes().get(2);
internal_static_mesos_v1_executor_Call_Message_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_mesos_v1_executor_Call_Message_descriptor,
new java.lang.String[] { "Data", });
org.apache.mesos.v1.Protos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy