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

org.apache.mesos.v1.executor.Protos Maven / Gradle / Ivy

There is a newer version: 1.11.0
Show newest version
// 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.ExtensionRegistry registry) {
  }
  public interface EventOrBuilder extends
      // @@protoc_insertion_point(interface_extends:mesos.v1.executor.Event)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional .mesos.v1.executor.Event.Type type = 1;
     *
     * 
     * 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.
     * 
*/ boolean hasType(); /** * optional .mesos.v1.executor.Event.Type type = 1; * *
     * 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.
     * 
*/ 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(); } /** * Protobuf type {@code mesos.v1.executor.Event} * *
   **
   * Executor event API.
   * An event is described using the standard protocol buffer "union"
   * trick, see https://developers.google.com/protocol-buffers/docs/techniques#union.
   * 
*/ public static final class Event extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.executor.Event) EventOrBuilder { // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Event(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Event defaultInstance; public static Event getDefaultInstance() { return defaultInstance; } public Event getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @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 { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { 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_ = value; } 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.getMessage()).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.GeneratedMessage.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); } public static 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); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code mesos.v1.executor.Event.Type} * *
     * Possible event types, followed by message definitions if
     * applicable.
     * 
*/ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; * *
       * 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, 0), /** * SUBSCRIBED = 1; * *
       * See 'Subscribed' below.
       * 
*/ SUBSCRIBED(1, 1), /** * LAUNCH = 2; * *
       * See 'Launch' below.
       * 
*/ LAUNCH(2, 2), /** * LAUNCH_GROUP = 8; * *
       * See 'LaunchGroup' below.
       * 
*/ LAUNCH_GROUP(3, 8), /** * KILL = 3; * *
       * See 'Kill' below.
       * 
*/ KILL(4, 3), /** * ACKNOWLEDGED = 4; * *
       * See 'Acknowledged' below.
       * 
*/ ACKNOWLEDGED(5, 4), /** * MESSAGE = 5; * *
       * See 'Message' below.
       * 
*/ MESSAGE(6, 5), /** * ERROR = 6; * *
       * See 'Error' below.
       * 
*/ ERROR(7, 6), /** * SHUTDOWN = 7; * *
       * 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(8, 7), ; /** * UNKNOWN = 0; * *
       * 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.
       * 
*/ public static final int UNKNOWN_VALUE = 0; /** * SUBSCRIBED = 1; * *
       * See 'Subscribed' below.
       * 
*/ public static final int SUBSCRIBED_VALUE = 1; /** * LAUNCH = 2; * *
       * See 'Launch' below.
       * 
*/ public static final int LAUNCH_VALUE = 2; /** * LAUNCH_GROUP = 8; * *
       * See 'LaunchGroup' below.
       * 
*/ public static final int LAUNCH_GROUP_VALUE = 8; /** * KILL = 3; * *
       * See 'Kill' below.
       * 
*/ public static final int KILL_VALUE = 3; /** * ACKNOWLEDGED = 4; * *
       * See 'Acknowledged' below.
       * 
*/ public static final int ACKNOWLEDGED_VALUE = 4; /** * MESSAGE = 5; * *
       * See 'Message' below.
       * 
*/ public static final int MESSAGE_VALUE = 5; /** * ERROR = 6; * *
       * See 'Error' below.
       * 
*/ public static final int ERROR_VALUE = 6; /** * SHUTDOWN = 7; * *
       * 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.
       * 
*/ public static final int SHUTDOWN_VALUE = 7; public final int getNumber() { return value; } public static Type valueOf(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; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } 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 index; private final int value; private Type(int index, int value) { this.index = index; 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(); /** * optional .mesos.v1.ContainerID container_id = 4; * *
       * Uniquely identifies the container of an executor run.
       * 
*/ boolean hasContainerId(); /** * optional .mesos.v1.ContainerID container_id = 4; * *
       * Uniquely identifies the container of an executor run.
       * 
*/ org.apache.mesos.v1.Protos.ContainerID getContainerId(); /** * optional .mesos.v1.ContainerID container_id = 4; * *
       * Uniquely identifies the container of an executor run.
       * 
*/ org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder(); } /** * Protobuf type {@code mesos.v1.executor.Event.Subscribed} * *
     * First event received when the executor subscribes.
     * The 'id' field in the 'framework_info' will be set.
     * 
*/ public static final class Subscribed extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.Subscribed) SubscribedOrBuilder { // Use Subscribed.newBuilder() to construct. private Subscribed(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Subscribed(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Subscribed defaultInstance; public static Subscribed getDefaultInstance() { return defaultInstance; } public Subscribed getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @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 { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.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.getMessage()).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.GeneratedMessage.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); } public static 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); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } 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_; } /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ public org.apache.mesos.v1.Protos.ExecutorInfoOrBuilder getExecutorInfoOrBuilder() { return 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_; } /** * required .mesos.v1.FrameworkInfo framework_info = 2; */ public org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder getFrameworkInfoOrBuilder() { return 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_; } /** * required .mesos.v1.AgentInfo agent_info = 3; */ public org.apache.mesos.v1.Protos.AgentInfoOrBuilder getAgentInfoOrBuilder() { return agentInfo_; } public static final int CONTAINER_ID_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.ContainerID containerId_; /** * optional .mesos.v1.ContainerID container_id = 4; * *
       * Uniquely identifies the container of an executor run.
       * 
*/ public boolean hasContainerId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.ContainerID container_id = 4; * *
       * Uniquely identifies the container of an executor run.
       * 
*/ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { return containerId_; } /** * optional .mesos.v1.ContainerID container_id = 4; * *
       * Uniquely identifies the container of an executor run.
       * 
*/ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { return containerId_; } private void initFields() { executorInfo_ = org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance(); frameworkInfo_ = org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance(); agentInfo_ = org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance(); containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); } 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 { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, executorInfo_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, frameworkInfo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, agentInfo_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, containerId_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, executorInfo_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, frameworkInfo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, agentInfo_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, containerId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.Subscribed parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.Subscribed parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.Subscribed prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.executor.Event.Subscribed} * *
       * First event received when the executor subscribes.
       * The 'id' field in the 'framework_info' will be set.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getExecutorInfoFieldBuilder(); getFrameworkInfoFieldBuilder(); getAgentInfoFieldBuilder(); getContainerIdFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (executorInfoBuilder_ == null) { executorInfo_ = org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance(); } else { executorInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (frameworkInfoBuilder_ == null) { frameworkInfo_ = org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance(); } else { frameworkInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (agentInfoBuilder_ == null) { agentInfo_ = org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance(); } else { agentInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } 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 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.getUnknownFields()); 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; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.ExecutorInfo executorInfo_ = org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.Protos.ExecutorInfo.getDefaultInstance(); 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_; } } /** * required .mesos.v1.ExecutorInfo executor_info = 1; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_ = org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance(); 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_; } } /** * required .mesos.v1.FrameworkInfo framework_info = 2; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_ = org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance(); 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_; } } /** * required .mesos.v1.AgentInfo agent_info = 3; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ContainerID, org.apache.mesos.v1.Protos.ContainerID.Builder, org.apache.mesos.v1.Protos.ContainerIDOrBuilder> containerIdBuilder_; /** * optional .mesos.v1.ContainerID container_id = 4; * *
         * Uniquely identifies the container of an executor run.
         * 
*/ public boolean hasContainerId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.ContainerID container_id = 4; * *
         * Uniquely identifies the container of an executor run.
         * 
*/ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { if (containerIdBuilder_ == null) { return containerId_; } else { return containerIdBuilder_.getMessage(); } } /** * optional .mesos.v1.ContainerID container_id = 4; * *
         * Uniquely identifies the container of an executor run.
         * 
*/ 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; } /** * optional .mesos.v1.ContainerID container_id = 4; * *
         * Uniquely identifies the container of an executor run.
         * 
*/ 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; } /** * optional .mesos.v1.ContainerID container_id = 4; * *
         * Uniquely identifies the container of an executor run.
         * 
*/ public Builder mergeContainerId(org.apache.mesos.v1.Protos.ContainerID value) { if (containerIdBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && 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; } /** * optional .mesos.v1.ContainerID container_id = 4; * *
         * Uniquely identifies the container of an executor run.
         * 
*/ public Builder clearContainerId() { if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); onChanged(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.ContainerID container_id = 4; * *
         * Uniquely identifies the container of an executor run.
         * 
*/ public org.apache.mesos.v1.Protos.ContainerID.Builder getContainerIdBuilder() { bitField0_ |= 0x00000008; onChanged(); return getContainerIdFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ContainerID container_id = 4; * *
         * Uniquely identifies the container of an executor run.
         * 
*/ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { if (containerIdBuilder_ != null) { return containerIdBuilder_.getMessageOrBuilder(); } else { return containerId_; } } /** * optional .mesos.v1.ContainerID container_id = 4; * *
         * Uniquely identifies the container of an executor run.
         * 
*/ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_; } // @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.Subscribed) } static { defaultInstance = new Subscribed(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.Subscribed) } 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(); } /** * Protobuf type {@code mesos.v1.executor.Event.Launch} * *
     * 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).
     * 
*/ public static final class Launch extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.Launch) LaunchOrBuilder { // Use Launch.newBuilder() to construct. private Launch(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Launch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Launch defaultInstance; public static Launch getDefaultInstance() { return defaultInstance; } public Launch getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Launch( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.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.getMessage()).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.GeneratedMessage.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); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Launch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Launch(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; 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_; } /** * required .mesos.v1.TaskInfo task = 1; */ public org.apache.mesos.v1.Protos.TaskInfoOrBuilder getTaskOrBuilder() { return task_; } private void initFields() { task_ = org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance(); } 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 { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, task_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, task_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.Launch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.Launch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.Launch prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.executor.Event.Launch} * *
       * 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).
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTaskFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (taskBuilder_ == null) { task_ = org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance(); } else { taskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } 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 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.getUnknownFields()); 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; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.TaskInfo task_ = org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.Protos.TaskInfo.getDefaultInstance(); 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_; } } /** * required .mesos.v1.TaskInfo task = 1; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_; } // @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.Launch) } static { defaultInstance = new Launch(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.Launch) } 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(); } /** * Protobuf type {@code mesos.v1.executor.Event.LaunchGroup} * *
     * 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.
     * 
*/ public static final class LaunchGroup extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.LaunchGroup) LaunchGroupOrBuilder { // Use LaunchGroup.newBuilder() to construct. private LaunchGroup(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private LaunchGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final LaunchGroup defaultInstance; public static LaunchGroup getDefaultInstance() { return defaultInstance; } public LaunchGroup getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @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 { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.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.getMessage()).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.GeneratedMessage.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); } public static 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); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } 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_; } /** * required .mesos.v1.TaskGroupInfo task_group = 1; */ public org.apache.mesos.v1.Protos.TaskGroupInfoOrBuilder getTaskGroupOrBuilder() { return taskGroup_; } private void initFields() { taskGroup_ = org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance(); } 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 { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, taskGroup_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, taskGroup_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.LaunchGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.LaunchGroup prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.executor.Event.LaunchGroup} * *
       * 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.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTaskGroupFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (taskGroupBuilder_ == null) { taskGroup_ = org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance(); } else { taskGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } 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 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.getUnknownFields()); 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; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.TaskGroupInfo taskGroup_ = org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.Protos.TaskGroupInfo.getDefaultInstance(); 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_; } } /** * required .mesos.v1.TaskGroupInfo task_group = 1; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_; } // @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.LaunchGroup) } static { defaultInstance = new LaunchGroup(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.LaunchGroup) } 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(); /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
       * 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.
       * 
*/ boolean hasKillPolicy(); /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
       * 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.
       * 
*/ org.apache.mesos.v1.Protos.KillPolicy getKillPolicy(); /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
       * 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.
       * 
*/ org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder(); } /** * Protobuf type {@code mesos.v1.executor.Event.Kill} * *
     * 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.
     * 
*/ public static final class Kill extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.Kill) KillOrBuilder { // Use Kill.newBuilder() to construct. private Kill(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Kill(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Kill defaultInstance; public static Kill getDefaultInstance() { return defaultInstance; } public Kill getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @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 { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.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.getMessage()).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.GeneratedMessage.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); } public static 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); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } 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_; } /** * required .mesos.v1.TaskID task_id = 1; */ public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() { return taskId_; } public static final int KILL_POLICY_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.KillPolicy killPolicy_; /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
       * 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.
       * 
*/ public boolean hasKillPolicy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
       * 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.
       * 
*/ public org.apache.mesos.v1.Protos.KillPolicy getKillPolicy() { return killPolicy_; } /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
       * 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.
       * 
*/ public org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder() { return killPolicy_; } private void initFields() { taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance(); killPolicy_ = org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance(); } 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 { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, taskId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, killPolicy_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, taskId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, killPolicy_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.Kill parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.Kill parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.Kill prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.executor.Event.Kill} * *
       * 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.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTaskIdFieldBuilder(); getKillPolicyFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (taskIdBuilder_ == null) { taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance(); } else { taskIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (killPolicyBuilder_ == null) { killPolicy_ = org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance(); } else { killPolicyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } 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 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.getUnknownFields()); 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; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.TaskID taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance(); 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_; } } /** * required .mesos.v1.TaskID task_id = 1; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_ = org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.KillPolicy, org.apache.mesos.v1.Protos.KillPolicy.Builder, org.apache.mesos.v1.Protos.KillPolicyOrBuilder> killPolicyBuilder_; /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
         * 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.
         * 
*/ public boolean hasKillPolicy() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
         * 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.
         * 
*/ public org.apache.mesos.v1.Protos.KillPolicy getKillPolicy() { if (killPolicyBuilder_ == null) { return killPolicy_; } else { return killPolicyBuilder_.getMessage(); } } /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
         * 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.
         * 
*/ 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; } /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
         * 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.
         * 
*/ 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; } /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
         * 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.
         * 
*/ public Builder mergeKillPolicy(org.apache.mesos.v1.Protos.KillPolicy value) { if (killPolicyBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && 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; } /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
         * 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.
         * 
*/ public Builder clearKillPolicy() { if (killPolicyBuilder_ == null) { killPolicy_ = org.apache.mesos.v1.Protos.KillPolicy.getDefaultInstance(); onChanged(); } else { killPolicyBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
         * 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.
         * 
*/ public org.apache.mesos.v1.Protos.KillPolicy.Builder getKillPolicyBuilder() { bitField0_ |= 0x00000002; onChanged(); return getKillPolicyFieldBuilder().getBuilder(); } /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
         * 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.
         * 
*/ public org.apache.mesos.v1.Protos.KillPolicyOrBuilder getKillPolicyOrBuilder() { if (killPolicyBuilder_ != null) { return killPolicyBuilder_.getMessageOrBuilder(); } else { return killPolicy_; } } /** * optional .mesos.v1.KillPolicy kill_policy = 2; * *
         * 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.
         * 
*/ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_; } // @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.Kill) } static { defaultInstance = new Kill(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.Kill) } 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(); } /** * Protobuf type {@code mesos.v1.executor.Event.Acknowledged} * *
     * 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.
     * 
*/ public static final class Acknowledged extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.Acknowledged) AcknowledgedOrBuilder { // Use Acknowledged.newBuilder() to construct. private Acknowledged(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Acknowledged(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Acknowledged defaultInstance; public static Acknowledged getDefaultInstance() { return defaultInstance; } public Acknowledged getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @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 { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.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.getMessage()).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.GeneratedMessage.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); } public static 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); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } 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_; } /** * required .mesos.v1.TaskID task_id = 1; */ public org.apache.mesos.v1.Protos.TaskIDOrBuilder getTaskIdOrBuilder() { return 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 void initFields() { taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance(); uuid_ = com.google.protobuf.ByteString.EMPTY; } 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 { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, taskId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, uuid_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, taskId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, uuid_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.Acknowledged parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.Acknowledged prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.executor.Event.Acknowledged} * *
       * 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.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTaskIdFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (taskIdBuilder_ == null) { taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance(); } else { taskIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); uuid_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } 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 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.getUnknownFields()); 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; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.TaskID taskId_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.Protos.TaskID.getDefaultInstance(); 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_; } } /** * required .mesos.v1.TaskID task_id = 1; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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; } // @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.Acknowledged) } static { defaultInstance = new Acknowledged(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.Acknowledged) } 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(); } /** * Protobuf type {@code mesos.v1.executor.Event.Message} * *
     * 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.
     * 
*/ public static final class Message extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.Message) MessageOrBuilder { // Use Message.newBuilder() to construct. private Message(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Message(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Message defaultInstance; public static Message getDefaultInstance() { return defaultInstance; } public Message getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @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 { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; 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.getMessage()).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.GeneratedMessage.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); } public static 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); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } 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 void initFields() { data_ = com.google.protobuf.ByteString.EMPTY; } 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 { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, data_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, data_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.Message parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.Message prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.executor.Event.Message} * *
       * 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.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } 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 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.getUnknownFields()); 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; } 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; } // @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.Message) } static { defaultInstance = new Message(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.Message) } 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(); } /** * Protobuf type {@code mesos.v1.executor.Event.Error} * *
     * 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.
     * 
*/ public static final class Error extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.executor.Event.Error) ErrorOrBuilder { // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Error(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Error defaultInstance; public static Error getDefaultInstance() { return defaultInstance; } public Error getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @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 { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { 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.getMessage()).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.GeneratedMessage.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); } public static 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); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int MESSAGE_FIELD_NUMBER = 1; 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) { 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 void initFields() { message_ = ""; } 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 { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getMessageBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getMessageBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event.Error parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event.Error prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.executor.Event.Error} * *
       * 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.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); message_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } 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 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.getUnknownFields()); 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; } 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; } // @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event.Error) } static { defaultInstance = new Error(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.executor.Event.Error) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private org.apache.mesos.v1.executor.Protos.Event.Type type_; /** * optional .mesos.v1.executor.Event.Type type = 1; * *
     * 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.
     * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.executor.Event.Type type = 1; * *
     * 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.
     * 
*/ public org.apache.mesos.v1.executor.Protos.Event.Type getType() { return type_; } 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_; } /** * optional .mesos.v1.executor.Event.Subscribed subscribed = 2; */ public org.apache.mesos.v1.executor.Protos.Event.SubscribedOrBuilder getSubscribedOrBuilder() { return 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_; } /** * optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3; */ public org.apache.mesos.v1.executor.Protos.Event.AcknowledgedOrBuilder getAcknowledgedOrBuilder() { return 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_; } /** * optional .mesos.v1.executor.Event.Launch launch = 4; */ public org.apache.mesos.v1.executor.Protos.Event.LaunchOrBuilder getLaunchOrBuilder() { return 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_; } /** * optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8; */ public org.apache.mesos.v1.executor.Protos.Event.LaunchGroupOrBuilder getLaunchGroupOrBuilder() { return 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_; } /** * optional .mesos.v1.executor.Event.Kill kill = 5; */ public org.apache.mesos.v1.executor.Protos.Event.KillOrBuilder getKillOrBuilder() { return 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_; } /** * optional .mesos.v1.executor.Event.Message message = 6; */ public org.apache.mesos.v1.executor.Protos.Event.MessageOrBuilder getMessageOrBuilder() { return 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_; } /** * optional .mesos.v1.executor.Event.Error error = 7; */ public org.apache.mesos.v1.executor.Protos.Event.ErrorOrBuilder getErrorOrBuilder() { return error_; } private void initFields() { type_ = org.apache.mesos.v1.executor.Protos.Event.Type.UNKNOWN; subscribed_ = org.apache.mesos.v1.executor.Protos.Event.Subscribed.getDefaultInstance(); acknowledged_ = org.apache.mesos.v1.executor.Protos.Event.Acknowledged.getDefaultInstance(); launch_ = org.apache.mesos.v1.executor.Protos.Event.Launch.getDefaultInstance(); launchGroup_ = org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.getDefaultInstance(); kill_ = org.apache.mesos.v1.executor.Protos.Event.Kill.getDefaultInstance(); message_ = org.apache.mesos.v1.executor.Protos.Event.Message.getDefaultInstance(); error_ = org.apache.mesos.v1.executor.Protos.Event.Error.getDefaultInstance(); } 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 { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, type_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, subscribed_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, acknowledged_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, launch_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(5, kill_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(6, message_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(7, error_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(8, launchGroup_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, subscribed_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, acknowledged_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, launch_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, kill_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, message_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, error_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, launchGroup_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Event parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Event prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.executor.Event} * *
     **
     * Executor event API.
     * An event is described using the standard protocol buffer "union"
     * trick, see https://developers.google.com/protocol-buffers/docs/techniques#union.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSubscribedFieldBuilder(); getAcknowledgedFieldBuilder(); getLaunchFieldBuilder(); getLaunchGroupFieldBuilder(); getKillFieldBuilder(); getMessageFieldBuilder(); getErrorFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = org.apache.mesos.v1.executor.Protos.Event.Type.UNKNOWN; bitField0_ = (bitField0_ & ~0x00000001); if (subscribedBuilder_ == null) { subscribed_ = org.apache.mesos.v1.executor.Protos.Event.Subscribed.getDefaultInstance(); } else { subscribedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (acknowledgedBuilder_ == null) { acknowledged_ = org.apache.mesos.v1.executor.Protos.Event.Acknowledged.getDefaultInstance(); } else { acknowledgedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (launchBuilder_ == null) { launch_ = org.apache.mesos.v1.executor.Protos.Event.Launch.getDefaultInstance(); } else { launchBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (launchGroupBuilder_ == null) { launchGroup_ = org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.getDefaultInstance(); } else { launchGroupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (killBuilder_ == null) { kill_ = org.apache.mesos.v1.executor.Protos.Event.Kill.getDefaultInstance(); } else { killBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (messageBuilder_ == null) { message_ = org.apache.mesos.v1.executor.Protos.Event.Message.getDefaultInstance(); } else { messageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (errorBuilder_ == null) { error_ = org.apache.mesos.v1.executor.Protos.Event.Error.getDefaultInstance(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } 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 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.getUnknownFields()); 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; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.executor.Protos.Event.Type type_ = org.apache.mesos.v1.executor.Protos.Event.Type.UNKNOWN; /** * optional .mesos.v1.executor.Event.Type type = 1; * *
       * 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.
       * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.executor.Event.Type type = 1; * *
       * 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.
       * 
*/ public org.apache.mesos.v1.executor.Protos.Event.Type getType() { return type_; } /** * optional .mesos.v1.executor.Event.Type type = 1; * *
       * 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.
       * 
*/ public Builder setType(org.apache.mesos.v1.executor.Protos.Event.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * optional .mesos.v1.executor.Event.Type type = 1; * *
       * 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.
       * 
*/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.mesos.v1.executor.Protos.Event.Type.UNKNOWN; onChanged(); return this; } private org.apache.mesos.v1.executor.Protos.Event.Subscribed subscribed_ = org.apache.mesos.v1.executor.Protos.Event.Subscribed.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.executor.Protos.Event.Subscribed.getDefaultInstance(); 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_; } } /** * optional .mesos.v1.executor.Event.Subscribed subscribed = 2; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_ = org.apache.mesos.v1.executor.Protos.Event.Acknowledged.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.executor.Protos.Event.Acknowledged.getDefaultInstance(); 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_; } } /** * optional .mesos.v1.executor.Event.Acknowledged acknowledged = 3; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_ = org.apache.mesos.v1.executor.Protos.Event.Launch.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.executor.Protos.Event.Launch.getDefaultInstance(); 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_; } } /** * optional .mesos.v1.executor.Event.Launch launch = 4; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_ = org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.executor.Protos.Event.LaunchGroup.getDefaultInstance(); 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_; } } /** * optional .mesos.v1.executor.Event.LaunchGroup launch_group = 8; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_ = org.apache.mesos.v1.executor.Protos.Event.Kill.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.executor.Protos.Event.Kill.getDefaultInstance(); 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_; } } /** * optional .mesos.v1.executor.Event.Kill kill = 5; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_ = org.apache.mesos.v1.executor.Protos.Event.Message.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.executor.Protos.Event.Message.getDefaultInstance(); 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_; } } /** * optional .mesos.v1.executor.Event.Message message = 6; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_ = org.apache.mesos.v1.executor.Protos.Event.Error.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.executor.Protos.Event.Error.getDefaultInstance(); 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_; } } /** * optional .mesos.v1.executor.Event.Error error = 7; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_; } // @@protoc_insertion_point(builder_scope:mesos.v1.executor.Event) } static { defaultInstance = new Event(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.executor.Event) } public interface CallOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.executor.Call) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.ExecutorID executor_id = 1; * *
     * Identifies the executor which generated this call.
     * 
*/ boolean hasExecutorId(); /** * required .mesos.v1.ExecutorID executor_id = 1; * *
     * Identifies the executor which generated this call.
     * 
*/ org.apache.mesos.v1.Protos.ExecutorID getExecutorId(); /** * required .mesos.v1.ExecutorID executor_id = 1; * *
     * Identifies the executor which generated this call.
     * 
*/ 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(); /** * optional .mesos.v1.executor.Call.Type type = 3; * *
     * 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.
     * 
*/ boolean hasType(); /** * optional .mesos.v1.executor.Call.Type type = 3; * *
     * 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.
     * 
*/ 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(); } /** * Protobuf type {@code mesos.v1.executor.Call} * *
   **
   * Executor call API.
   * Like Event, a Call is described using the standard protocol buffer
   * "union" trick (see above).
   * 
*/ public static final class Call extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.executor.Call) CallOrBuilder { // Use Call.newBuilder() to construct. private Call(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Call(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Call defaultInstance; public static Call getDefaultInstance() { return defaultInstance; } public Call getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @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 { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.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_ = value; } 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.getMessage()).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.GeneratedMessage.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); } public static 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); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code mesos.v1.executor.Call.Type} * *
     * Possible call types, followed by message definitions if
     * applicable.
     * 
*/ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; * *
       * See comments above on `Event::Type` for more details on this enum value.
       * 
*/ UNKNOWN(0, 0), /** * SUBSCRIBE = 1; * *
       * See 'Subscribe' below.
       * 
*/ SUBSCRIBE(1, 1), /** * UPDATE = 2; * *
       * See 'Update' below.
       * 
*/ UPDATE(2, 2), /** * MESSAGE = 3; * *
       * See 'Message' below.
       * 
*/ MESSAGE(3, 3), ; /** * UNKNOWN = 0; * *
       * See comments above on `Event::Type` for more details on this enum value.
       * 
*/ public static final int UNKNOWN_VALUE = 0; /** * SUBSCRIBE = 1; * *
       * See 'Subscribe' below.
       * 
*/ public static final int SUBSCRIBE_VALUE = 1; /** * UPDATE = 2; * *
       * See 'Update' below.
       * 
*/ public static final int UPDATE_VALUE = 2; /** * MESSAGE = 3; * *
       * See 'Message' below.
       * 
*/ public static final int MESSAGE_VALUE = 3; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 0: return UNKNOWN; case 1: return SUBSCRIBE; case 2: return UPDATE; case 3: return MESSAGE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } 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 index; private final int value; private Type(int index, int value) { this.index = index; 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 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 getUnacknowledgedUpdatesOrBuilderList(); /** * repeated .mesos.v1.executor.Call.Update unacknowledged_updates = 2; */ org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder getUnacknowledgedUpdatesOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.executor.Call.Subscribe} * *
     * 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.
     * 
*/ public static final class Subscribe extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.executor.Call.Subscribe) SubscribeOrBuilder { // Use Subscribe.newBuilder() to construct. private Subscribe(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Subscribe(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Subscribe defaultInstance; public static Subscribe getDefaultInstance() { return defaultInstance; } public Subscribe getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @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 { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 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.getMessage()).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.GeneratedMessage.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 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); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } 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 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 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 void initFields() { unacknowledgedTasks_ = java.util.Collections.emptyList(); unacknowledgedUpdates_ = java.util.Collections.emptyList(); } 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 { getSerializedSize(); 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)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < 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 += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Call.Subscribe parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Call.Subscribe parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Call.Subscribe prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.executor.Call.Subscribe} * *
       * 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.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getUnacknowledgedTasksFieldBuilder(); getUnacknowledgedUpdatesFieldBuilder(); } } private static Builder create() { return new Builder(); } 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 Builder clone() { return create().mergeFrom(buildPartial()); } 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 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.GeneratedMessage.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.GeneratedMessage.alwaysUseFieldBuilders ? getUnacknowledgedUpdatesFieldBuilder() : null; } else { unacknowledgedUpdatesBuilder_.addAllMessages(other.unacknowledgedUpdates_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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; } 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.RepeatedFieldBuilder< 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 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 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.RepeatedFieldBuilder< 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.RepeatedFieldBuilder< 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.RepeatedFieldBuilder< 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 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 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.RepeatedFieldBuilder< 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.RepeatedFieldBuilder< 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_; } // @@protoc_insertion_point(builder_scope:mesos.v1.executor.Call.Subscribe) } static { defaultInstance = new Subscribe(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.executor.Call.Subscribe) } 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(); } /** * Protobuf type {@code mesos.v1.executor.Call.Update} * *
     * 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.
     * 
*/ public static final class Update extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.executor.Call.Update) UpdateOrBuilder { // Use Update.newBuilder() to construct. private Update(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Update(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Update defaultInstance; public static Update getDefaultInstance() { return defaultInstance; } public Update getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Update( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.mesos.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.getMessage()).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.GeneratedMessage.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); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Update parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Update(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; 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_; } /** * required .mesos.v1.TaskStatus status = 1; */ public org.apache.mesos.v1.Protos.TaskStatusOrBuilder getStatusOrBuilder() { return status_; } private void initFields() { status_ = org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance(); } 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 { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, status_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, status_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Call.Update parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Call.Update parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Call.Update prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.executor.Call.Update} * *
       * 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.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getStatusFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (statusBuilder_ == null) { status_ = org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance(); } else { statusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } 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 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.getUnknownFields()); 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; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.TaskStatus status_ = org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.Protos.TaskStatus.getDefaultInstance(); 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_; } } /** * required .mesos.v1.TaskStatus status = 1; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_; } // @@protoc_insertion_point(builder_scope:mesos.v1.executor.Call.Update) } static { defaultInstance = new Update(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.executor.Call.Update) } 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(); } /** * Protobuf type {@code mesos.v1.executor.Call.Message} * *
     * 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.
     * 
*/ public static final class Message extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.executor.Call.Message) MessageOrBuilder { // Use Message.newBuilder() to construct. private Message(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Message(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Message defaultInstance; public static Message getDefaultInstance() { return defaultInstance; } public Message getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @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 { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 18: { bitField0_ |= 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.getMessage()).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.GeneratedMessage.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); } public static 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); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } 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 void initFields() { data_ = com.google.protobuf.ByteString.EMPTY; } 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 { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(2, data_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, data_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Call.Message parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Call.Message parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Call.Message prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.executor.Call.Message} * *
       * 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.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } 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 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.getUnknownFields()); 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; } 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; } // @@protoc_insertion_point(builder_scope:mesos.v1.executor.Call.Message) } static { defaultInstance = new Message(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.executor.Call.Message) } private int bitField0_; public static final int EXECUTOR_ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.ExecutorID executorId_; /** * required .mesos.v1.ExecutorID executor_id = 1; * *
     * Identifies the executor which generated this call.
     * 
*/ public boolean hasExecutorId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ExecutorID executor_id = 1; * *
     * Identifies the executor which generated this call.
     * 
*/ public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() { return executorId_; } /** * required .mesos.v1.ExecutorID executor_id = 1; * *
     * Identifies the executor which generated this call.
     * 
*/ public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { return 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_; } /** * required .mesos.v1.FrameworkID framework_id = 2; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { return frameworkId_; } public static final int TYPE_FIELD_NUMBER = 3; private org.apache.mesos.v1.executor.Protos.Call.Type type_; /** * optional .mesos.v1.executor.Call.Type type = 3; * *
     * 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.
     * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.executor.Call.Type type = 3; * *
     * 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.
     * 
*/ public org.apache.mesos.v1.executor.Protos.Call.Type getType() { return type_; } 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_; } /** * optional .mesos.v1.executor.Call.Subscribe subscribe = 4; */ public org.apache.mesos.v1.executor.Protos.Call.SubscribeOrBuilder getSubscribeOrBuilder() { return 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_; } /** * optional .mesos.v1.executor.Call.Update update = 5; */ public org.apache.mesos.v1.executor.Protos.Call.UpdateOrBuilder getUpdateOrBuilder() { return 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_; } /** * optional .mesos.v1.executor.Call.Message message = 6; */ public org.apache.mesos.v1.executor.Protos.Call.MessageOrBuilder getMessageOrBuilder() { return message_; } private void initFields() { executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance(); frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance(); type_ = org.apache.mesos.v1.executor.Protos.Call.Type.UNKNOWN; subscribe_ = org.apache.mesos.v1.executor.Protos.Call.Subscribe.getDefaultInstance(); update_ = org.apache.mesos.v1.executor.Protos.Call.Update.getDefaultInstance(); message_ = org.apache.mesos.v1.executor.Protos.Call.Message.getDefaultInstance(); } 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 { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, executorId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, frameworkId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, type_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, subscribe_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, update_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, message_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, executorId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, frameworkId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, subscribe_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, update_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, message_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.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 PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Call parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(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 PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.mesos.v1.executor.Protos.Call parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(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 PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.mesos.v1.executor.Protos.Call prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code mesos.v1.executor.Call} * *
     **
     * Executor call API.
     * Like Event, a Call is described using the standard protocol buffer
     * "union" trick (see above).
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getExecutorIdFieldBuilder(); getFrameworkIdFieldBuilder(); getSubscribeFieldBuilder(); getUpdateFieldBuilder(); getMessageFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (executorIdBuilder_ == null) { executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance(); } else { executorIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (frameworkIdBuilder_ == null) { frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance(); } else { frameworkIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); type_ = org.apache.mesos.v1.executor.Protos.Call.Type.UNKNOWN; bitField0_ = (bitField0_ & ~0x00000004); if (subscribeBuilder_ == null) { subscribe_ = org.apache.mesos.v1.executor.Protos.Call.Subscribe.getDefaultInstance(); } else { subscribeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (updateBuilder_ == null) { update_ = org.apache.mesos.v1.executor.Protos.Call.Update.getDefaultInstance(); } else { updateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (messageBuilder_ == null) { message_ = org.apache.mesos.v1.executor.Protos.Call.Message.getDefaultInstance(); } else { messageBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } 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 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.getUnknownFields()); 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; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.ExecutorID executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ExecutorID, org.apache.mesos.v1.Protos.ExecutorID.Builder, org.apache.mesos.v1.Protos.ExecutorIDOrBuilder> executorIdBuilder_; /** * required .mesos.v1.ExecutorID executor_id = 1; * *
       * Identifies the executor which generated this call.
       * 
*/ public boolean hasExecutorId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ExecutorID executor_id = 1; * *
       * Identifies the executor which generated this call.
       * 
*/ public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() { if (executorIdBuilder_ == null) { return executorId_; } else { return executorIdBuilder_.getMessage(); } } /** * required .mesos.v1.ExecutorID executor_id = 1; * *
       * Identifies the executor which generated this call.
       * 
*/ 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; } /** * required .mesos.v1.ExecutorID executor_id = 1; * *
       * Identifies the executor which generated this call.
       * 
*/ 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; } /** * required .mesos.v1.ExecutorID executor_id = 1; * *
       * Identifies the executor which generated this call.
       * 
*/ public Builder mergeExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) { if (executorIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && 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; } /** * required .mesos.v1.ExecutorID executor_id = 1; * *
       * Identifies the executor which generated this call.
       * 
*/ public Builder clearExecutorId() { if (executorIdBuilder_ == null) { executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance(); onChanged(); } else { executorIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.ExecutorID executor_id = 1; * *
       * Identifies the executor which generated this call.
       * 
*/ public org.apache.mesos.v1.Protos.ExecutorID.Builder getExecutorIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getExecutorIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.ExecutorID executor_id = 1; * *
       * Identifies the executor which generated this call.
       * 
*/ public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { if (executorIdBuilder_ != null) { return executorIdBuilder_.getMessageOrBuilder(); } else { return executorId_; } } /** * required .mesos.v1.ExecutorID executor_id = 1; * *
       * Identifies the executor which generated this call.
       * 
*/ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance(); 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_; } } /** * required .mesos.v1.FrameworkID framework_id = 2; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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 org.apache.mesos.v1.executor.Protos.Call.Type type_ = org.apache.mesos.v1.executor.Protos.Call.Type.UNKNOWN; /** * optional .mesos.v1.executor.Call.Type type = 3; * *
       * 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.
       * 
*/ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.executor.Call.Type type = 3; * *
       * 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.
       * 
*/ public org.apache.mesos.v1.executor.Protos.Call.Type getType() { return type_; } /** * optional .mesos.v1.executor.Call.Type type = 3; * *
       * 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.
       * 
*/ public Builder setType(org.apache.mesos.v1.executor.Protos.Call.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** * optional .mesos.v1.executor.Call.Type type = 3; * *
       * 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.
       * 
*/ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = org.apache.mesos.v1.executor.Protos.Call.Type.UNKNOWN; onChanged(); return this; } private org.apache.mesos.v1.executor.Protos.Call.Subscribe subscribe_ = org.apache.mesos.v1.executor.Protos.Call.Subscribe.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.executor.Protos.Call.Subscribe.getDefaultInstance(); 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_; } } /** * optional .mesos.v1.executor.Call.Subscribe subscribe = 4; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_ = org.apache.mesos.v1.executor.Protos.Call.Update.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.executor.Protos.Call.Update.getDefaultInstance(); 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_; } } /** * optional .mesos.v1.executor.Call.Update update = 5; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_ = org.apache.mesos.v1.executor.Protos.Call.Message.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< 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_; } 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_ != 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_ = org.apache.mesos.v1.executor.Protos.Call.Message.getDefaultInstance(); 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_; } } /** * optional .mesos.v1.executor.Call.Message message = 6; */ private com.google.protobuf.SingleFieldBuilder< 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.SingleFieldBuilder< 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_; } // @@protoc_insertion_point(builder_scope:mesos.v1.executor.Call) } static { defaultInstance = new Call(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.executor.Call) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_executor_Event_descriptor; private static com.google.protobuf.GeneratedMessage.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 com.google.protobuf.GeneratedMessage.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 com.google.protobuf.GeneratedMessage.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 com.google.protobuf.GeneratedMessage.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 com.google.protobuf.GeneratedMessage.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 com.google.protobuf.GeneratedMessage.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 com.google.protobuf.GeneratedMessage.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 com.google.protobuf.GeneratedMessage.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 com.google.protobuf.GeneratedMessage.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 com.google.protobuf.GeneratedMessage.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 com.google.protobuf.GeneratedMessage.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 com.google.protobuf.GeneratedMessage.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\"\243\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\"\203\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\"\247\004\n\004Call\022)\n\013executor_i" + "d\030\001 \002(\0132\024.mesos.v1.ExecutorID\022+\n\014framewo", "rk_id\030\002 \002(\0132\025.mesos.v1.FrameworkID\022*\n\004ty" + "pe\030\003 \001(\0162\034.mesos.v1.executor.Call.Type\0224" + "\n\tsubscribe\030\004 \001(\0132!.mesos.v1.executor.Ca" + "ll.Subscribe\022.\n\006update\030\005 \001(\0132\036.mesos.v1." + "executor.Call.Update\0220\n\007message\030\006 \001(\0132\037." + "mesos.v1.executor.Call.Message\032}\n\tSubscr" + "ibe\0220\n\024unacknowledged_tasks\030\001 \003(\0132\022.meso" + "s.v1.TaskInfo\022>\n\026unacknowledged_updates\030" + "\002 \003(\0132\036.mesos.v1.executor.Call.Update\032.\n" + "\006Update\022$\n\006status\030\001 \002(\0132\024.mesos.v1.TaskS", "tatus\032\027\n\007Message\022\014\n\004data\030\002 \002(\014\";\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\003B&\n\034org.apache.mesos.v1.execu" + "torB\006Protos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; 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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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