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

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

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: mesos/v1/agent/agent.proto

package org.apache.mesos.v1.agent;

public final class Protos {
  private Protos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface CallOrBuilder extends
      // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Call)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional .mesos.v1.agent.Call.Type type = 1;
     */
    boolean hasType();
    /**
     * optional .mesos.v1.agent.Call.Type type = 1;
     */
    org.apache.mesos.v1.agent.Protos.Call.Type getType();

    /**
     * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2;
     */
    boolean hasGetMetrics();
    /**
     * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2;
     */
    org.apache.mesos.v1.agent.Protos.Call.GetMetrics getGetMetrics();
    /**
     * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2;
     */
    org.apache.mesos.v1.agent.Protos.Call.GetMetricsOrBuilder getGetMetricsOrBuilder();

    /**
     * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3;
     */
    boolean hasSetLoggingLevel();
    /**
     * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3;
     */
    org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel getSetLoggingLevel();
    /**
     * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3;
     */
    org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevelOrBuilder getSetLoggingLevelOrBuilder();

    /**
     * optional .mesos.v1.agent.Call.ListFiles list_files = 4;
     */
    boolean hasListFiles();
    /**
     * optional .mesos.v1.agent.Call.ListFiles list_files = 4;
     */
    org.apache.mesos.v1.agent.Protos.Call.ListFiles getListFiles();
    /**
     * optional .mesos.v1.agent.Call.ListFiles list_files = 4;
     */
    org.apache.mesos.v1.agent.Protos.Call.ListFilesOrBuilder getListFilesOrBuilder();

    /**
     * optional .mesos.v1.agent.Call.ReadFile read_file = 5;
     */
    boolean hasReadFile();
    /**
     * optional .mesos.v1.agent.Call.ReadFile read_file = 5;
     */
    org.apache.mesos.v1.agent.Protos.Call.ReadFile getReadFile();
    /**
     * optional .mesos.v1.agent.Call.ReadFile read_file = 5;
     */
    org.apache.mesos.v1.agent.Protos.Call.ReadFileOrBuilder getReadFileOrBuilder();

    /**
     * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6;
     */
    boolean hasLaunchNestedContainer();
    /**
     * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6;
     */
    org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer getLaunchNestedContainer();
    /**
     * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6;
     */
    org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerOrBuilder getLaunchNestedContainerOrBuilder();

    /**
     * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7;
     */
    boolean hasWaitNestedContainer();
    /**
     * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7;
     */
    org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer getWaitNestedContainer();
    /**
     * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7;
     */
    org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainerOrBuilder getWaitNestedContainerOrBuilder();

    /**
     * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8;
     */
    boolean hasKillNestedContainer();
    /**
     * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8;
     */
    org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer getKillNestedContainer();
    /**
     * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8;
     */
    org.apache.mesos.v1.agent.Protos.Call.KillNestedContainerOrBuilder getKillNestedContainerOrBuilder();

    /**
     * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12;
     */
    boolean hasRemoveNestedContainer();
    /**
     * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12;
     */
    org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer getRemoveNestedContainer();
    /**
     * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12;
     */
    org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainerOrBuilder getRemoveNestedContainerOrBuilder();

    /**
     * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9;
     */
    boolean hasLaunchNestedContainerSession();
    /**
     * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9;
     */
    org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession getLaunchNestedContainerSession();
    /**
     * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9;
     */
    org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSessionOrBuilder getLaunchNestedContainerSessionOrBuilder();

    /**
     * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10;
     */
    boolean hasAttachContainerInput();
    /**
     * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10;
     */
    org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput getAttachContainerInput();
    /**
     * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10;
     */
    org.apache.mesos.v1.agent.Protos.Call.AttachContainerInputOrBuilder getAttachContainerInputOrBuilder();

    /**
     * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11;
     */
    boolean hasAttachContainerOutput();
    /**
     * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11;
     */
    org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput getAttachContainerOutput();
    /**
     * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11;
     */
    org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutputOrBuilder getAttachContainerOutputOrBuilder();
  }
  /**
   * Protobuf type {@code mesos.v1.agent.Call}
   *
   * 
   **
   * Calls that can be sent to the v1 agent API.
   * A call is described using the standard protocol buffer "union"
   * trick, see
   * https://developers.google.com/protocol-buffers/docs/techniques#union.
   * 
*/ public static final class Call extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.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 8: { int rawValue = input.readEnum(); org.apache.mesos.v1.agent.Protos.Call.Type value = org.apache.mesos.v1.agent.Protos.Call.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = value; } break; } case 18: { org.apache.mesos.v1.agent.Protos.Call.GetMetrics.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = getMetrics_.toBuilder(); } getMetrics_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Call.GetMetrics.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getMetrics_); getMetrics_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = setLoggingLevel_.toBuilder(); } setLoggingLevel_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(setLoggingLevel_); setLoggingLevel_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { org.apache.mesos.v1.agent.Protos.Call.ListFiles.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = listFiles_.toBuilder(); } listFiles_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Call.ListFiles.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(listFiles_); listFiles_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { org.apache.mesos.v1.agent.Protos.Call.ReadFile.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = readFile_.toBuilder(); } readFile_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Call.ReadFile.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(readFile_); readFile_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = launchNestedContainer_.toBuilder(); } launchNestedContainer_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(launchNestedContainer_); launchNestedContainer_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 58: { org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = waitNestedContainer_.toBuilder(); } waitNestedContainer_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(waitNestedContainer_); waitNestedContainer_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 66: { org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = killNestedContainer_.toBuilder(); } killNestedContainer_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(killNestedContainer_); killNestedContainer_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 74: { org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.Builder subBuilder = null; if (((bitField0_ & 0x00000200) == 0x00000200)) { subBuilder = launchNestedContainerSession_.toBuilder(); } launchNestedContainerSession_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(launchNestedContainerSession_); launchNestedContainerSession_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 82: { org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Builder subBuilder = null; if (((bitField0_ & 0x00000400) == 0x00000400)) { subBuilder = attachContainerInput_.toBuilder(); } attachContainerInput_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(attachContainerInput_); attachContainerInput_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000400; break; } case 90: { org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.Builder subBuilder = null; if (((bitField0_ & 0x00000800) == 0x00000800)) { subBuilder = attachContainerOutput_.toBuilder(); } attachContainerOutput_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(attachContainerOutput_); attachContainerOutput_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000800; break; } case 98: { org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = removeNestedContainer_.toBuilder(); } removeNestedContainer_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(removeNestedContainer_); removeNestedContainer_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; 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.agent.Protos.internal_static_mesos_v1_agent_Call_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.class, org.apache.mesos.v1.agent.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.agent.Call.Type} * *
     * If a call of type `Call::FOO` requires additional parameters they can be
     * included in the corresponding `Call::Foo` message. Similarly, if a call
     * receives a synchronous response it will be returned as a `Response`
     * message of type `Response::FOO`; see `Call::LaunchNestedContainerSession`
     * and `Call::AttachContainerOutput` for exceptions.
     * 
*/ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0, 0), /** * GET_HEALTH = 1; * *
       * Retrieves the agent's health status.
       * 
*/ GET_HEALTH(1, 1), /** * GET_FLAGS = 2; * *
       * Retrieves the agent's flag configuration.
       * 
*/ GET_FLAGS(2, 2), /** * GET_VERSION = 3; * *
       * Retrieves the agent's version information.
       * 
*/ GET_VERSION(3, 3), /** * GET_METRICS = 4; * *
       * See 'GetMetrics' below.
       * 
*/ GET_METRICS(4, 4), /** * GET_LOGGING_LEVEL = 5; * *
       * Retrieves the agent's logging level.
       * 
*/ GET_LOGGING_LEVEL(5, 5), /** * SET_LOGGING_LEVEL = 6; * *
       * See 'SetLoggingLevel' below.
       * 
*/ SET_LOGGING_LEVEL(6, 6), /** * LIST_FILES = 7; */ LIST_FILES(7, 7), /** * READ_FILE = 8; * *
       * See 'ReadFile' below.
       * 
*/ READ_FILE(8, 8), /** * GET_STATE = 9; */ GET_STATE(9, 9), /** * GET_CONTAINERS = 10; */ GET_CONTAINERS(10, 10), /** * GET_FRAMEWORKS = 11; * *
       * Retrieves the information about known frameworks.
       * 
*/ GET_FRAMEWORKS(11, 11), /** * GET_EXECUTORS = 12; * *
       * Retrieves the information about known executors.
       * 
*/ GET_EXECUTORS(12, 12), /** * GET_TASKS = 13; * *
       * Retrieves the information about known tasks.
       * 
*/ GET_TASKS(13, 13), /** * GET_AGENT = 20; * *
       * Retrieves the agent information.
       * 
*/ GET_AGENT(14, 20), /** * LAUNCH_NESTED_CONTAINER = 14; * *
       * Calls for managing nested containers underneath an executor's container.
       * 
*/ LAUNCH_NESTED_CONTAINER(15, 14), /** * WAIT_NESTED_CONTAINER = 15; * *
       * See 'WaitNestedContainer' below.
       * 
*/ WAIT_NESTED_CONTAINER(16, 15), /** * KILL_NESTED_CONTAINER = 16; * *
       * See 'KillNestedContainer' below.
       * 
*/ KILL_NESTED_CONTAINER(17, 16), /** * REMOVE_NESTED_CONTAINER = 21; * *
       * See 'RemoveNestedContainer' below.
       * 
*/ REMOVE_NESTED_CONTAINER(18, 21), /** * LAUNCH_NESTED_CONTAINER_SESSION = 17; * *
       * See 'LaunchNestedContainerSession' below.
       * 
*/ LAUNCH_NESTED_CONTAINER_SESSION(19, 17), /** * ATTACH_CONTAINER_INPUT = 18; * *
       * See 'AttachContainerInput' below.
       * 
*/ ATTACH_CONTAINER_INPUT(20, 18), /** * ATTACH_CONTAINER_OUTPUT = 19; * *
       * see 'AttachContainerOutput' below.
       * 
*/ ATTACH_CONTAINER_OUTPUT(21, 19), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * GET_HEALTH = 1; * *
       * Retrieves the agent's health status.
       * 
*/ public static final int GET_HEALTH_VALUE = 1; /** * GET_FLAGS = 2; * *
       * Retrieves the agent's flag configuration.
       * 
*/ public static final int GET_FLAGS_VALUE = 2; /** * GET_VERSION = 3; * *
       * Retrieves the agent's version information.
       * 
*/ public static final int GET_VERSION_VALUE = 3; /** * GET_METRICS = 4; * *
       * See 'GetMetrics' below.
       * 
*/ public static final int GET_METRICS_VALUE = 4; /** * GET_LOGGING_LEVEL = 5; * *
       * Retrieves the agent's logging level.
       * 
*/ public static final int GET_LOGGING_LEVEL_VALUE = 5; /** * SET_LOGGING_LEVEL = 6; * *
       * See 'SetLoggingLevel' below.
       * 
*/ public static final int SET_LOGGING_LEVEL_VALUE = 6; /** * LIST_FILES = 7; */ public static final int LIST_FILES_VALUE = 7; /** * READ_FILE = 8; * *
       * See 'ReadFile' below.
       * 
*/ public static final int READ_FILE_VALUE = 8; /** * GET_STATE = 9; */ public static final int GET_STATE_VALUE = 9; /** * GET_CONTAINERS = 10; */ public static final int GET_CONTAINERS_VALUE = 10; /** * GET_FRAMEWORKS = 11; * *
       * Retrieves the information about known frameworks.
       * 
*/ public static final int GET_FRAMEWORKS_VALUE = 11; /** * GET_EXECUTORS = 12; * *
       * Retrieves the information about known executors.
       * 
*/ public static final int GET_EXECUTORS_VALUE = 12; /** * GET_TASKS = 13; * *
       * Retrieves the information about known tasks.
       * 
*/ public static final int GET_TASKS_VALUE = 13; /** * GET_AGENT = 20; * *
       * Retrieves the agent information.
       * 
*/ public static final int GET_AGENT_VALUE = 20; /** * LAUNCH_NESTED_CONTAINER = 14; * *
       * Calls for managing nested containers underneath an executor's container.
       * 
*/ public static final int LAUNCH_NESTED_CONTAINER_VALUE = 14; /** * WAIT_NESTED_CONTAINER = 15; * *
       * See 'WaitNestedContainer' below.
       * 
*/ public static final int WAIT_NESTED_CONTAINER_VALUE = 15; /** * KILL_NESTED_CONTAINER = 16; * *
       * See 'KillNestedContainer' below.
       * 
*/ public static final int KILL_NESTED_CONTAINER_VALUE = 16; /** * REMOVE_NESTED_CONTAINER = 21; * *
       * See 'RemoveNestedContainer' below.
       * 
*/ public static final int REMOVE_NESTED_CONTAINER_VALUE = 21; /** * LAUNCH_NESTED_CONTAINER_SESSION = 17; * *
       * See 'LaunchNestedContainerSession' below.
       * 
*/ public static final int LAUNCH_NESTED_CONTAINER_SESSION_VALUE = 17; /** * ATTACH_CONTAINER_INPUT = 18; * *
       * See 'AttachContainerInput' below.
       * 
*/ public static final int ATTACH_CONTAINER_INPUT_VALUE = 18; /** * ATTACH_CONTAINER_OUTPUT = 19; * *
       * see 'AttachContainerOutput' below.
       * 
*/ public static final int ATTACH_CONTAINER_OUTPUT_VALUE = 19; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 0: return UNKNOWN; case 1: return GET_HEALTH; case 2: return GET_FLAGS; case 3: return GET_VERSION; case 4: return GET_METRICS; case 5: return GET_LOGGING_LEVEL; case 6: return SET_LOGGING_LEVEL; case 7: return LIST_FILES; case 8: return READ_FILE; case 9: return GET_STATE; case 10: return GET_CONTAINERS; case 11: return GET_FRAMEWORKS; case 12: return GET_EXECUTORS; case 13: return GET_TASKS; case 20: return GET_AGENT; case 14: return LAUNCH_NESTED_CONTAINER; case 15: return WAIT_NESTED_CONTAINER; case 16: return KILL_NESTED_CONTAINER; case 21: return REMOVE_NESTED_CONTAINER; case 17: return LAUNCH_NESTED_CONTAINER_SESSION; case 18: return ATTACH_CONTAINER_INPUT; case 19: return ATTACH_CONTAINER_OUTPUT; 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.agent.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.agent.Call.Type) } public interface GetMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Call.GetMetrics) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.DurationInfo timeout = 1; * *
       * If set, `timeout` would be used to determines the maximum amount of time
       * the API will take to respond. If the timeout is exceeded, some metrics
       * may not be included in the response.
       * 
*/ boolean hasTimeout(); /** * optional .mesos.v1.DurationInfo timeout = 1; * *
       * If set, `timeout` would be used to determines the maximum amount of time
       * the API will take to respond. If the timeout is exceeded, some metrics
       * may not be included in the response.
       * 
*/ org.apache.mesos.v1.Protos.DurationInfo getTimeout(); /** * optional .mesos.v1.DurationInfo timeout = 1; * *
       * If set, `timeout` would be used to determines the maximum amount of time
       * the API will take to respond. If the timeout is exceeded, some metrics
       * may not be included in the response.
       * 
*/ org.apache.mesos.v1.Protos.DurationInfoOrBuilder getTimeoutOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Call.GetMetrics} * *
     * Provides a snapshot of the current metrics tracked by the agent.
     * 
*/ public static final class GetMetrics extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Call.GetMetrics) GetMetricsOrBuilder { // Use GetMetrics.newBuilder() to construct. private GetMetrics(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetMetrics(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetMetrics defaultInstance; public static GetMetrics getDefaultInstance() { return defaultInstance; } public GetMetrics getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetMetrics( 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.DurationInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = timeout_.toBuilder(); } timeout_ = input.readMessage(org.apache.mesos.v1.Protos.DurationInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timeout_); timeout_ = 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.agent.Protos.internal_static_mesos_v1_agent_Call_GetMetrics_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_GetMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.GetMetrics.class, org.apache.mesos.v1.agent.Protos.Call.GetMetrics.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetMetrics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetMetrics(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int TIMEOUT_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.DurationInfo timeout_; /** * optional .mesos.v1.DurationInfo timeout = 1; * *
       * If set, `timeout` would be used to determines the maximum amount of time
       * the API will take to respond. If the timeout is exceeded, some metrics
       * may not be included in the response.
       * 
*/ public boolean hasTimeout() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.DurationInfo timeout = 1; * *
       * If set, `timeout` would be used to determines the maximum amount of time
       * the API will take to respond. If the timeout is exceeded, some metrics
       * may not be included in the response.
       * 
*/ public org.apache.mesos.v1.Protos.DurationInfo getTimeout() { return timeout_; } /** * optional .mesos.v1.DurationInfo timeout = 1; * *
       * If set, `timeout` would be used to determines the maximum amount of time
       * the API will take to respond. If the timeout is exceeded, some metrics
       * may not be included in the response.
       * 
*/ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getTimeoutOrBuilder() { return timeout_; } private void initFields() { timeout_ = org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasTimeout()) { if (!getTimeout().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, timeout_); } 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, timeout_); } 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.agent.Protos.Call.GetMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.GetMetrics 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.agent.Protos.Call.GetMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.GetMetrics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Call.GetMetrics parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.GetMetrics 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.agent.Protos.Call.GetMetrics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.GetMetrics 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.agent.Protos.Call.GetMetrics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.GetMetrics 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.agent.Protos.Call.GetMetrics 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.agent.Call.GetMetrics} * *
       * Provides a snapshot of the current metrics tracked by the agent.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Call.GetMetrics) org.apache.mesos.v1.agent.Protos.Call.GetMetricsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_GetMetrics_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_GetMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.GetMetrics.class, org.apache.mesos.v1.agent.Protos.Call.GetMetrics.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Call.GetMetrics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTimeoutFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (timeoutBuilder_ == null) { timeout_ = org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance(); } else { timeoutBuilder_.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.agent.Protos.internal_static_mesos_v1_agent_Call_GetMetrics_descriptor; } public org.apache.mesos.v1.agent.Protos.Call.GetMetrics getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Call.GetMetrics.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Call.GetMetrics build() { org.apache.mesos.v1.agent.Protos.Call.GetMetrics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Call.GetMetrics buildPartial() { org.apache.mesos.v1.agent.Protos.Call.GetMetrics result = new org.apache.mesos.v1.agent.Protos.Call.GetMetrics(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (timeoutBuilder_ == null) { result.timeout_ = timeout_; } else { result.timeout_ = timeoutBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Call.GetMetrics) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Call.GetMetrics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Call.GetMetrics other) { if (other == org.apache.mesos.v1.agent.Protos.Call.GetMetrics.getDefaultInstance()) return this; if (other.hasTimeout()) { mergeTimeout(other.getTimeout()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasTimeout()) { if (!getTimeout().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.agent.Protos.Call.GetMetrics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Call.GetMetrics) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.DurationInfo timeout_ = org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder> timeoutBuilder_; /** * optional .mesos.v1.DurationInfo timeout = 1; * *
         * If set, `timeout` would be used to determines the maximum amount of time
         * the API will take to respond. If the timeout is exceeded, some metrics
         * may not be included in the response.
         * 
*/ public boolean hasTimeout() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.DurationInfo timeout = 1; * *
         * If set, `timeout` would be used to determines the maximum amount of time
         * the API will take to respond. If the timeout is exceeded, some metrics
         * may not be included in the response.
         * 
*/ public org.apache.mesos.v1.Protos.DurationInfo getTimeout() { if (timeoutBuilder_ == null) { return timeout_; } else { return timeoutBuilder_.getMessage(); } } /** * optional .mesos.v1.DurationInfo timeout = 1; * *
         * If set, `timeout` would be used to determines the maximum amount of time
         * the API will take to respond. If the timeout is exceeded, some metrics
         * may not be included in the response.
         * 
*/ public Builder setTimeout(org.apache.mesos.v1.Protos.DurationInfo value) { if (timeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeout_ = value; onChanged(); } else { timeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.DurationInfo timeout = 1; * *
         * If set, `timeout` would be used to determines the maximum amount of time
         * the API will take to respond. If the timeout is exceeded, some metrics
         * may not be included in the response.
         * 
*/ public Builder setTimeout( org.apache.mesos.v1.Protos.DurationInfo.Builder builderForValue) { if (timeoutBuilder_ == null) { timeout_ = builderForValue.build(); onChanged(); } else { timeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.DurationInfo timeout = 1; * *
         * If set, `timeout` would be used to determines the maximum amount of time
         * the API will take to respond. If the timeout is exceeded, some metrics
         * may not be included in the response.
         * 
*/ public Builder mergeTimeout(org.apache.mesos.v1.Protos.DurationInfo value) { if (timeoutBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && timeout_ != org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance()) { timeout_ = org.apache.mesos.v1.Protos.DurationInfo.newBuilder(timeout_).mergeFrom(value).buildPartial(); } else { timeout_ = value; } onChanged(); } else { timeoutBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.DurationInfo timeout = 1; * *
         * If set, `timeout` would be used to determines the maximum amount of time
         * the API will take to respond. If the timeout is exceeded, some metrics
         * may not be included in the response.
         * 
*/ public Builder clearTimeout() { if (timeoutBuilder_ == null) { timeout_ = org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance(); onChanged(); } else { timeoutBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.DurationInfo timeout = 1; * *
         * If set, `timeout` would be used to determines the maximum amount of time
         * the API will take to respond. If the timeout is exceeded, some metrics
         * may not be included in the response.
         * 
*/ public org.apache.mesos.v1.Protos.DurationInfo.Builder getTimeoutBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTimeoutFieldBuilder().getBuilder(); } /** * optional .mesos.v1.DurationInfo timeout = 1; * *
         * If set, `timeout` would be used to determines the maximum amount of time
         * the API will take to respond. If the timeout is exceeded, some metrics
         * may not be included in the response.
         * 
*/ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getTimeoutOrBuilder() { if (timeoutBuilder_ != null) { return timeoutBuilder_.getMessageOrBuilder(); } else { return timeout_; } } /** * optional .mesos.v1.DurationInfo timeout = 1; * *
         * If set, `timeout` would be used to determines the maximum amount of time
         * the API will take to respond. If the timeout is exceeded, some metrics
         * may not be included in the response.
         * 
*/ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder> getTimeoutFieldBuilder() { if (timeoutBuilder_ == null) { timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder>( getTimeout(), getParentForChildren(), isClean()); timeout_ = null; } return timeoutBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Call.GetMetrics) } static { defaultInstance = new GetMetrics(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Call.GetMetrics) } public interface SetLoggingLevelOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Call.SetLoggingLevel) com.google.protobuf.MessageOrBuilder { /** * required uint32 level = 1; * *
       * The verbosity level.
       * 
*/ boolean hasLevel(); /** * required uint32 level = 1; * *
       * The verbosity level.
       * 
*/ int getLevel(); /** * required .mesos.v1.DurationInfo duration = 2; * *
       * The duration to keep verbosity level toggled. After this duration, the
       * verbosity level of log would revert to the original level.
       * 
*/ boolean hasDuration(); /** * required .mesos.v1.DurationInfo duration = 2; * *
       * The duration to keep verbosity level toggled. After this duration, the
       * verbosity level of log would revert to the original level.
       * 
*/ org.apache.mesos.v1.Protos.DurationInfo getDuration(); /** * required .mesos.v1.DurationInfo duration = 2; * *
       * The duration to keep verbosity level toggled. After this duration, the
       * verbosity level of log would revert to the original level.
       * 
*/ org.apache.mesos.v1.Protos.DurationInfoOrBuilder getDurationOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Call.SetLoggingLevel} * *
     * Sets the logging verbosity level for a specified duration. Mesos uses
     * [glog](https://github.com/google/glog) for logging. The library only uses
     * verbose logging which means nothing will be output unless the verbosity
     * level is set (by default it's 0, libprocess uses levels 1, 2, and 3).
     * 
*/ public static final class SetLoggingLevel extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Call.SetLoggingLevel) SetLoggingLevelOrBuilder { // Use SetLoggingLevel.newBuilder() to construct. private SetLoggingLevel(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SetLoggingLevel(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SetLoggingLevel defaultInstance; public static SetLoggingLevel getDefaultInstance() { return defaultInstance; } public SetLoggingLevel getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SetLoggingLevel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; level_ = input.readUInt32(); break; } case 18: { org.apache.mesos.v1.Protos.DurationInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = duration_.toBuilder(); } duration_ = input.readMessage(org.apache.mesos.v1.Protos.DurationInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(duration_); duration_ = 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.agent.Protos.internal_static_mesos_v1_agent_Call_SetLoggingLevel_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_SetLoggingLevel_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.class, org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SetLoggingLevel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetLoggingLevel(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int LEVEL_FIELD_NUMBER = 1; private int level_; /** * required uint32 level = 1; * *
       * The verbosity level.
       * 
*/ public boolean hasLevel() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 level = 1; * *
       * The verbosity level.
       * 
*/ public int getLevel() { return level_; } public static final int DURATION_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.DurationInfo duration_; /** * required .mesos.v1.DurationInfo duration = 2; * *
       * The duration to keep verbosity level toggled. After this duration, the
       * verbosity level of log would revert to the original level.
       * 
*/ public boolean hasDuration() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.DurationInfo duration = 2; * *
       * The duration to keep verbosity level toggled. After this duration, the
       * verbosity level of log would revert to the original level.
       * 
*/ public org.apache.mesos.v1.Protos.DurationInfo getDuration() { return duration_; } /** * required .mesos.v1.DurationInfo duration = 2; * *
       * The duration to keep verbosity level toggled. After this duration, the
       * verbosity level of log would revert to the original level.
       * 
*/ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getDurationOrBuilder() { return duration_; } private void initFields() { level_ = 0; duration_ = org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasLevel()) { memoizedIsInitialized = 0; return false; } if (!hasDuration()) { memoizedIsInitialized = 0; return false; } if (!getDuration().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.writeUInt32(1, level_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, duration_); } 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 .computeUInt32Size(1, level_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, duration_); } 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.agent.Protos.Call.SetLoggingLevel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel 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.agent.Protos.Call.SetLoggingLevel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel 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.agent.Protos.Call.SetLoggingLevel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel 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.agent.Protos.Call.SetLoggingLevel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel 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.agent.Protos.Call.SetLoggingLevel 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.agent.Call.SetLoggingLevel} * *
       * Sets the logging verbosity level for a specified duration. Mesos uses
       * [glog](https://github.com/google/glog) for logging. The library only uses
       * verbose logging which means nothing will be output unless the verbosity
       * level is set (by default it's 0, libprocess uses levels 1, 2, and 3).
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Call.SetLoggingLevel) org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_SetLoggingLevel_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_SetLoggingLevel_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.class, org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getDurationFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); level_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (durationBuilder_ == null) { duration_ = org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance(); } else { durationBuilder_.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.agent.Protos.internal_static_mesos_v1_agent_Call_SetLoggingLevel_descriptor; } public org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel build() { org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel buildPartial() { org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel result = new org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.level_ = level_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (durationBuilder_ == null) { result.duration_ = duration_; } else { result.duration_ = durationBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel other) { if (other == org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.getDefaultInstance()) return this; if (other.hasLevel()) { setLevel(other.getLevel()); } if (other.hasDuration()) { mergeDuration(other.getDuration()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasLevel()) { return false; } if (!hasDuration()) { return false; } if (!getDuration().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.agent.Protos.Call.SetLoggingLevel parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int level_ ; /** * required uint32 level = 1; * *
         * The verbosity level.
         * 
*/ public boolean hasLevel() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 level = 1; * *
         * The verbosity level.
         * 
*/ public int getLevel() { return level_; } /** * required uint32 level = 1; * *
         * The verbosity level.
         * 
*/ public Builder setLevel(int value) { bitField0_ |= 0x00000001; level_ = value; onChanged(); return this; } /** * required uint32 level = 1; * *
         * The verbosity level.
         * 
*/ public Builder clearLevel() { bitField0_ = (bitField0_ & ~0x00000001); level_ = 0; onChanged(); return this; } private org.apache.mesos.v1.Protos.DurationInfo duration_ = org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder> durationBuilder_; /** * required .mesos.v1.DurationInfo duration = 2; * *
         * The duration to keep verbosity level toggled. After this duration, the
         * verbosity level of log would revert to the original level.
         * 
*/ public boolean hasDuration() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.DurationInfo duration = 2; * *
         * The duration to keep verbosity level toggled. After this duration, the
         * verbosity level of log would revert to the original level.
         * 
*/ public org.apache.mesos.v1.Protos.DurationInfo getDuration() { if (durationBuilder_ == null) { return duration_; } else { return durationBuilder_.getMessage(); } } /** * required .mesos.v1.DurationInfo duration = 2; * *
         * The duration to keep verbosity level toggled. After this duration, the
         * verbosity level of log would revert to the original level.
         * 
*/ public Builder setDuration(org.apache.mesos.v1.Protos.DurationInfo value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } duration_ = value; onChanged(); } else { durationBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.DurationInfo duration = 2; * *
         * The duration to keep verbosity level toggled. After this duration, the
         * verbosity level of log would revert to the original level.
         * 
*/ public Builder setDuration( org.apache.mesos.v1.Protos.DurationInfo.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); } else { durationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.DurationInfo duration = 2; * *
         * The duration to keep verbosity level toggled. After this duration, the
         * verbosity level of log would revert to the original level.
         * 
*/ public Builder mergeDuration(org.apache.mesos.v1.Protos.DurationInfo value) { if (durationBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && duration_ != org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance()) { duration_ = org.apache.mesos.v1.Protos.DurationInfo.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } onChanged(); } else { durationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.DurationInfo duration = 2; * *
         * The duration to keep verbosity level toggled. After this duration, the
         * verbosity level of log would revert to the original level.
         * 
*/ public Builder clearDuration() { if (durationBuilder_ == null) { duration_ = org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance(); onChanged(); } else { durationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .mesos.v1.DurationInfo duration = 2; * *
         * The duration to keep verbosity level toggled. After this duration, the
         * verbosity level of log would revert to the original level.
         * 
*/ public org.apache.mesos.v1.Protos.DurationInfo.Builder getDurationBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDurationFieldBuilder().getBuilder(); } /** * required .mesos.v1.DurationInfo duration = 2; * *
         * The duration to keep verbosity level toggled. After this duration, the
         * verbosity level of log would revert to the original level.
         * 
*/ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { return duration_; } } /** * required .mesos.v1.DurationInfo duration = 2; * *
         * The duration to keep verbosity level toggled. After this duration, the
         * verbosity level of log would revert to the original level.
         * 
*/ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { durationBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder>( getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Call.SetLoggingLevel) } static { defaultInstance = new SetLoggingLevel(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Call.SetLoggingLevel) } public interface ListFilesOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Call.ListFiles) com.google.protobuf.MessageOrBuilder { /** * required string path = 1; */ boolean hasPath(); /** * required string path = 1; */ java.lang.String getPath(); /** * required string path = 1; */ com.google.protobuf.ByteString getPathBytes(); } /** * Protobuf type {@code mesos.v1.agent.Call.ListFiles} * *
     * Provides the file listing for a directory.
     * 
*/ public static final class ListFiles extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Call.ListFiles) ListFilesOrBuilder { // Use ListFiles.newBuilder() to construct. private ListFiles(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ListFiles(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ListFiles defaultInstance; public static ListFiles getDefaultInstance() { return defaultInstance; } public ListFiles getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListFiles( 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; path_ = 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.agent.Protos.internal_static_mesos_v1_agent_Call_ListFiles_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_ListFiles_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.ListFiles.class, org.apache.mesos.v1.agent.Protos.Call.ListFiles.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ListFiles parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListFiles(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; private java.lang.Object path_; /** * required string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; 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()) { path_ = s; } return s; } } /** * required string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { path_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPath()) { 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, getPathBytes()); } 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, getPathBytes()); } 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.agent.Protos.Call.ListFiles parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.ListFiles 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.agent.Protos.Call.ListFiles parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.ListFiles parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Call.ListFiles parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.ListFiles 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.agent.Protos.Call.ListFiles parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.ListFiles 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.agent.Protos.Call.ListFiles parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.ListFiles 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.agent.Protos.Call.ListFiles 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.agent.Call.ListFiles} * *
       * Provides the file listing for a directory.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Call.ListFiles) org.apache.mesos.v1.agent.Protos.Call.ListFilesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_ListFiles_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_ListFiles_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.ListFiles.class, org.apache.mesos.v1.agent.Protos.Call.ListFiles.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Call.ListFiles.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(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_ListFiles_descriptor; } public org.apache.mesos.v1.agent.Protos.Call.ListFiles getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Call.ListFiles.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Call.ListFiles build() { org.apache.mesos.v1.agent.Protos.Call.ListFiles result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Call.ListFiles buildPartial() { org.apache.mesos.v1.agent.Protos.Call.ListFiles result = new org.apache.mesos.v1.agent.Protos.Call.ListFiles(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.path_ = path_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Call.ListFiles) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Call.ListFiles)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Call.ListFiles other) { if (other == org.apache.mesos.v1.agent.Protos.Call.ListFiles.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasPath()) { 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.agent.Protos.Call.ListFiles parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Call.ListFiles) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object path_ = ""; /** * required string path = 1; */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string path = 1; */ public java.lang.String getPath() { java.lang.Object ref = path_; 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()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string path = 1; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string path = 1; */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } /** * required string path = 1; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000001); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * required string path = 1; */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Call.ListFiles) } static { defaultInstance = new ListFiles(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Call.ListFiles) } public interface ReadFileOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Call.ReadFile) com.google.protobuf.MessageOrBuilder { /** * required string path = 1; * *
       * The path of file.
       * 
*/ boolean hasPath(); /** * required string path = 1; * *
       * The path of file.
       * 
*/ java.lang.String getPath(); /** * required string path = 1; * *
       * The path of file.
       * 
*/ com.google.protobuf.ByteString getPathBytes(); /** * required uint64 offset = 2; * *
       * Initial offset in file to start reading from.
       * 
*/ boolean hasOffset(); /** * required uint64 offset = 2; * *
       * Initial offset in file to start reading from.
       * 
*/ long getOffset(); /** * optional uint64 length = 3; * *
       * The maximum number of bytes to read. The read length is capped at 16
       * memory pages.
       * 
*/ boolean hasLength(); /** * optional uint64 length = 3; * *
       * The maximum number of bytes to read. The read length is capped at 16
       * memory pages.
       * 
*/ long getLength(); } /** * Protobuf type {@code mesos.v1.agent.Call.ReadFile} * *
     * Reads data from a file.
     * 
*/ public static final class ReadFile extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Call.ReadFile) ReadFileOrBuilder { // Use ReadFile.newBuilder() to construct. private ReadFile(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReadFile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReadFile defaultInstance; public static ReadFile getDefaultInstance() { return defaultInstance; } public ReadFile getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReadFile( 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; path_ = bs; break; } case 16: { bitField0_ |= 0x00000002; offset_ = input.readUInt64(); break; } case 24: { bitField0_ |= 0x00000004; length_ = input.readUInt64(); 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.agent.Protos.internal_static_mesos_v1_agent_Call_ReadFile_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_ReadFile_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.ReadFile.class, org.apache.mesos.v1.agent.Protos.Call.ReadFile.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReadFile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadFile(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; private java.lang.Object path_; /** * required string path = 1; * *
       * The path of file.
       * 
*/ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string path = 1; * *
       * The path of file.
       * 
*/ public java.lang.String getPath() { java.lang.Object ref = path_; 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()) { path_ = s; } return s; } } /** * required string path = 1; * *
       * The path of file.
       * 
*/ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OFFSET_FIELD_NUMBER = 2; private long offset_; /** * required uint64 offset = 2; * *
       * Initial offset in file to start reading from.
       * 
*/ public boolean hasOffset() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint64 offset = 2; * *
       * Initial offset in file to start reading from.
       * 
*/ public long getOffset() { return offset_; } public static final int LENGTH_FIELD_NUMBER = 3; private long length_; /** * optional uint64 length = 3; * *
       * The maximum number of bytes to read. The read length is capped at 16
       * memory pages.
       * 
*/ public boolean hasLength() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint64 length = 3; * *
       * The maximum number of bytes to read. The read length is capped at 16
       * memory pages.
       * 
*/ public long getLength() { return length_; } private void initFields() { path_ = ""; offset_ = 0L; length_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPath()) { memoizedIsInitialized = 0; return false; } if (!hasOffset()) { 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, getPathBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt64(2, offset_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, length_); } 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, getPathBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, offset_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, length_); } 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.agent.Protos.Call.ReadFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.ReadFile 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.agent.Protos.Call.ReadFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.ReadFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Call.ReadFile parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.ReadFile 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.agent.Protos.Call.ReadFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.ReadFile 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.agent.Protos.Call.ReadFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.ReadFile 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.agent.Protos.Call.ReadFile 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.agent.Call.ReadFile} * *
       * Reads data from a file.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Call.ReadFile) org.apache.mesos.v1.agent.Protos.Call.ReadFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_ReadFile_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_ReadFile_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.ReadFile.class, org.apache.mesos.v1.agent.Protos.Call.ReadFile.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Call.ReadFile.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(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); offset_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); length_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_ReadFile_descriptor; } public org.apache.mesos.v1.agent.Protos.Call.ReadFile getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Call.ReadFile.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Call.ReadFile build() { org.apache.mesos.v1.agent.Protos.Call.ReadFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Call.ReadFile buildPartial() { org.apache.mesos.v1.agent.Protos.Call.ReadFile result = new org.apache.mesos.v1.agent.Protos.Call.ReadFile(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.path_ = path_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.offset_ = offset_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.length_ = length_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Call.ReadFile) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Call.ReadFile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Call.ReadFile other) { if (other == org.apache.mesos.v1.agent.Protos.Call.ReadFile.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; onChanged(); } if (other.hasOffset()) { setOffset(other.getOffset()); } if (other.hasLength()) { setLength(other.getLength()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasPath()) { return false; } if (!hasOffset()) { 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.agent.Protos.Call.ReadFile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Call.ReadFile) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object path_ = ""; /** * required string path = 1; * *
         * The path of file.
         * 
*/ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required string path = 1; * *
         * The path of file.
         * 
*/ public java.lang.String getPath() { java.lang.Object ref = path_; 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()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string path = 1; * *
         * The path of file.
         * 
*/ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string path = 1; * *
         * The path of file.
         * 
*/ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } /** * required string path = 1; * *
         * The path of file.
         * 
*/ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000001); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * required string path = 1; * *
         * The path of file.
         * 
*/ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } private long offset_ ; /** * required uint64 offset = 2; * *
         * Initial offset in file to start reading from.
         * 
*/ public boolean hasOffset() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required uint64 offset = 2; * *
         * Initial offset in file to start reading from.
         * 
*/ public long getOffset() { return offset_; } /** * required uint64 offset = 2; * *
         * Initial offset in file to start reading from.
         * 
*/ public Builder setOffset(long value) { bitField0_ |= 0x00000002; offset_ = value; onChanged(); return this; } /** * required uint64 offset = 2; * *
         * Initial offset in file to start reading from.
         * 
*/ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000002); offset_ = 0L; onChanged(); return this; } private long length_ ; /** * optional uint64 length = 3; * *
         * The maximum number of bytes to read. The read length is capped at 16
         * memory pages.
         * 
*/ public boolean hasLength() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint64 length = 3; * *
         * The maximum number of bytes to read. The read length is capped at 16
         * memory pages.
         * 
*/ public long getLength() { return length_; } /** * optional uint64 length = 3; * *
         * The maximum number of bytes to read. The read length is capped at 16
         * memory pages.
         * 
*/ public Builder setLength(long value) { bitField0_ |= 0x00000004; length_ = value; onChanged(); return this; } /** * optional uint64 length = 3; * *
         * The maximum number of bytes to read. The read length is capped at 16
         * memory pages.
         * 
*/ public Builder clearLength() { bitField0_ = (bitField0_ & ~0x00000004); length_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Call.ReadFile) } static { defaultInstance = new ReadFile(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Call.ReadFile) } public interface LaunchNestedContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Call.LaunchNestedContainer) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.ContainerID container_id = 1; */ boolean hasContainerId(); /** * required .mesos.v1.ContainerID container_id = 1; */ org.apache.mesos.v1.Protos.ContainerID getContainerId(); /** * required .mesos.v1.ContainerID container_id = 1; */ org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder(); /** * optional .mesos.v1.CommandInfo command = 2; */ boolean hasCommand(); /** * optional .mesos.v1.CommandInfo command = 2; */ org.apache.mesos.v1.Protos.CommandInfo getCommand(); /** * optional .mesos.v1.CommandInfo command = 2; */ org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder(); /** * optional .mesos.v1.ContainerInfo container = 3; */ boolean hasContainer(); /** * optional .mesos.v1.ContainerInfo container = 3; */ org.apache.mesos.v1.Protos.ContainerInfo getContainer(); /** * optional .mesos.v1.ContainerInfo container = 3; */ org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Call.LaunchNestedContainer} * *
     * Launches a nested container within an executor's tree of containers.
     * 
*/ public static final class LaunchNestedContainer extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Call.LaunchNestedContainer) LaunchNestedContainerOrBuilder { // Use LaunchNestedContainer.newBuilder() to construct. private LaunchNestedContainer(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private LaunchNestedContainer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final LaunchNestedContainer defaultInstance; public static LaunchNestedContainer getDefaultInstance() { return defaultInstance; } public LaunchNestedContainer getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LaunchNestedContainer( 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.ContainerID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = containerId_.toBuilder(); } containerId_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(containerId_); containerId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.Protos.CommandInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = command_.toBuilder(); } command_ = input.readMessage(org.apache.mesos.v1.Protos.CommandInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(command_); command_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.ContainerInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = container_.toBuilder(); } container_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(container_); container_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; 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.agent.Protos.internal_static_mesos_v1_agent_Call_LaunchNestedContainer_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_LaunchNestedContainer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.class, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LaunchNestedContainer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LaunchNestedContainer(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int CONTAINER_ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.ContainerID containerId_; /** * required .mesos.v1.ContainerID container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { return containerId_; } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { return containerId_; } public static final int COMMAND_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.CommandInfo command_; /** * optional .mesos.v1.CommandInfo command = 2; */ public boolean hasCommand() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.CommandInfo command = 2; */ public org.apache.mesos.v1.Protos.CommandInfo getCommand() { return command_; } /** * optional .mesos.v1.CommandInfo command = 2; */ public org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder() { return command_; } public static final int CONTAINER_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.ContainerInfo container_; /** * optional .mesos.v1.ContainerInfo container = 3; */ public boolean hasContainer() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.ContainerInfo container = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo getContainer() { return container_; } /** * optional .mesos.v1.ContainerInfo container = 3; */ public org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { return container_; } private void initFields() { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); command_ = org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance(); container_ = org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasContainerId()) { memoizedIsInitialized = 0; return false; } if (!getContainerId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasCommand()) { if (!getCommand().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasContainer()) { if (!getContainer().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, containerId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, command_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, container_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, containerId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, command_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, container_); } 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.agent.Protos.Call.LaunchNestedContainer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer 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.agent.Protos.Call.LaunchNestedContainer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer 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.agent.Protos.Call.LaunchNestedContainer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer 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.agent.Protos.Call.LaunchNestedContainer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer 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.agent.Protos.Call.LaunchNestedContainer 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.agent.Call.LaunchNestedContainer} * *
       * Launches a nested container within an executor's tree of containers.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Call.LaunchNestedContainer) org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_LaunchNestedContainer_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_LaunchNestedContainer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.class, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContainerIdFieldBuilder(); getCommandFieldBuilder(); getContainerFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (commandBuilder_ == null) { command_ = org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance(); } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (containerBuilder_ == null) { container_ = org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance(); } else { containerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_LaunchNestedContainer_descriptor; } public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer build() { org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer buildPartial() { org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer result = new org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (containerIdBuilder_ == null) { result.containerId_ = containerId_; } else { result.containerId_ = containerIdBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (commandBuilder_ == null) { result.command_ = command_; } else { result.command_ = commandBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (containerBuilder_ == null) { result.container_ = container_; } else { result.container_ = containerBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer other) { if (other == org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.getDefaultInstance()) return this; if (other.hasContainerId()) { mergeContainerId(other.getContainerId()); } if (other.hasCommand()) { mergeCommand(other.getCommand()); } if (other.hasContainer()) { mergeContainer(other.getContainer()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasContainerId()) { return false; } if (!getContainerId().isInitialized()) { return false; } if (hasCommand()) { if (!getCommand().isInitialized()) { return false; } } if (hasContainer()) { if (!getContainer().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.agent.Protos.Call.LaunchNestedContainer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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_; /** * required .mesos.v1.ContainerID container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { if (containerIdBuilder_ == null) { return containerId_; } else { return containerIdBuilder_.getMessage(); } } /** * required .mesos.v1.ContainerID container_id = 1; */ 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_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder setContainerId( org.apache.mesos.v1.Protos.ContainerID.Builder builderForValue) { if (containerIdBuilder_ == null) { containerId_ = builderForValue.build(); onChanged(); } else { containerIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder mergeContainerId(org.apache.mesos.v1.Protos.ContainerID value) { if (containerIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && 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_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder clearContainerId() { if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); onChanged(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID.Builder getContainerIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getContainerIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { if (containerIdBuilder_ != null) { return containerIdBuilder_.getMessageOrBuilder(); } else { return containerId_; } } /** * required .mesos.v1.ContainerID container_id = 1; */ 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_; } private org.apache.mesos.v1.Protos.CommandInfo command_ = org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.CommandInfo, org.apache.mesos.v1.Protos.CommandInfo.Builder, org.apache.mesos.v1.Protos.CommandInfoOrBuilder> commandBuilder_; /** * optional .mesos.v1.CommandInfo command = 2; */ public boolean hasCommand() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.CommandInfo command = 2; */ public org.apache.mesos.v1.Protos.CommandInfo getCommand() { if (commandBuilder_ == null) { return command_; } else { return commandBuilder_.getMessage(); } } /** * optional .mesos.v1.CommandInfo command = 2; */ public Builder setCommand(org.apache.mesos.v1.Protos.CommandInfo value) { if (commandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { commandBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.CommandInfo command = 2; */ public Builder setCommand( org.apache.mesos.v1.Protos.CommandInfo.Builder builderForValue) { if (commandBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { commandBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.CommandInfo command = 2; */ public Builder mergeCommand(org.apache.mesos.v1.Protos.CommandInfo value) { if (commandBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && command_ != org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance()) { command_ = org.apache.mesos.v1.Protos.CommandInfo.newBuilder(command_).mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { commandBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.CommandInfo command = 2; */ public Builder clearCommand() { if (commandBuilder_ == null) { command_ = org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance(); onChanged(); } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.CommandInfo command = 2; */ public org.apache.mesos.v1.Protos.CommandInfo.Builder getCommandBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCommandFieldBuilder().getBuilder(); } /** * optional .mesos.v1.CommandInfo command = 2; */ public org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder() { if (commandBuilder_ != null) { return commandBuilder_.getMessageOrBuilder(); } else { return command_; } } /** * optional .mesos.v1.CommandInfo command = 2; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.CommandInfo, org.apache.mesos.v1.Protos.CommandInfo.Builder, org.apache.mesos.v1.Protos.CommandInfoOrBuilder> getCommandFieldBuilder() { if (commandBuilder_ == null) { commandBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.CommandInfo, org.apache.mesos.v1.Protos.CommandInfo.Builder, org.apache.mesos.v1.Protos.CommandInfoOrBuilder>( getCommand(), getParentForChildren(), isClean()); command_ = null; } return commandBuilder_; } private org.apache.mesos.v1.Protos.ContainerInfo container_ = org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ContainerInfo, org.apache.mesos.v1.Protos.ContainerInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfoOrBuilder> containerBuilder_; /** * optional .mesos.v1.ContainerInfo container = 3; */ public boolean hasContainer() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.ContainerInfo container = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo getContainer() { if (containerBuilder_ == null) { return container_; } else { return containerBuilder_.getMessage(); } } /** * optional .mesos.v1.ContainerInfo container = 3; */ public Builder setContainer(org.apache.mesos.v1.Protos.ContainerInfo value) { if (containerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } container_ = value; onChanged(); } else { containerBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.ContainerInfo container = 3; */ public Builder setContainer( org.apache.mesos.v1.Protos.ContainerInfo.Builder builderForValue) { if (containerBuilder_ == null) { container_ = builderForValue.build(); onChanged(); } else { containerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.ContainerInfo container = 3; */ public Builder mergeContainer(org.apache.mesos.v1.Protos.ContainerInfo value) { if (containerBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && container_ != org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance()) { container_ = org.apache.mesos.v1.Protos.ContainerInfo.newBuilder(container_).mergeFrom(value).buildPartial(); } else { container_ = value; } onChanged(); } else { containerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.ContainerInfo container = 3; */ public Builder clearContainer() { if (containerBuilder_ == null) { container_ = org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance(); onChanged(); } else { containerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.ContainerInfo container = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.Builder getContainerBuilder() { bitField0_ |= 0x00000004; onChanged(); return getContainerFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ContainerInfo container = 3; */ public org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { if (containerBuilder_ != null) { return containerBuilder_.getMessageOrBuilder(); } else { return container_; } } /** * optional .mesos.v1.ContainerInfo container = 3; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ContainerInfo, org.apache.mesos.v1.Protos.ContainerInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfoOrBuilder> getContainerFieldBuilder() { if (containerBuilder_ == null) { containerBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ContainerInfo, org.apache.mesos.v1.Protos.ContainerInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfoOrBuilder>( getContainer(), getParentForChildren(), isClean()); container_ = null; } return containerBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Call.LaunchNestedContainer) } static { defaultInstance = new LaunchNestedContainer(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Call.LaunchNestedContainer) } public interface WaitNestedContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Call.WaitNestedContainer) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.ContainerID container_id = 1; */ boolean hasContainerId(); /** * required .mesos.v1.ContainerID container_id = 1; */ org.apache.mesos.v1.Protos.ContainerID getContainerId(); /** * required .mesos.v1.ContainerID container_id = 1; */ org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Call.WaitNestedContainer} * *
     * Waits for the nested container to terminate and receives the exit status.
     * 
*/ public static final class WaitNestedContainer extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Call.WaitNestedContainer) WaitNestedContainerOrBuilder { // Use WaitNestedContainer.newBuilder() to construct. private WaitNestedContainer(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private WaitNestedContainer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final WaitNestedContainer defaultInstance; public static WaitNestedContainer getDefaultInstance() { return defaultInstance; } public WaitNestedContainer getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WaitNestedContainer( 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.ContainerID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = containerId_.toBuilder(); } containerId_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(containerId_); containerId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_WaitNestedContainer_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_WaitNestedContainer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.class, org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WaitNestedContainer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WaitNestedContainer(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int CONTAINER_ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.ContainerID containerId_; /** * required .mesos.v1.ContainerID container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { return containerId_; } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { return containerId_; } private void initFields() { 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 (!hasContainerId()) { memoizedIsInitialized = 0; return false; } if (!getContainerId().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, containerId_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, containerId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer 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.agent.Protos.Call.WaitNestedContainer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer 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.agent.Protos.Call.WaitNestedContainer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer 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.agent.Protos.Call.WaitNestedContainer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer 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.agent.Protos.Call.WaitNestedContainer 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.agent.Call.WaitNestedContainer} * *
       * Waits for the nested container to terminate and receives the exit status.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Call.WaitNestedContainer) org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_WaitNestedContainer_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_WaitNestedContainer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.class, org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContainerIdFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_WaitNestedContainer_descriptor; } public org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer build() { org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer buildPartial() { org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer result = new org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (containerIdBuilder_ == null) { result.containerId_ = containerId_; } else { result.containerId_ = containerIdBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer other) { if (other == org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.getDefaultInstance()) return this; if (other.hasContainerId()) { mergeContainerId(other.getContainerId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasContainerId()) { return false; } if (!getContainerId().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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_; /** * required .mesos.v1.ContainerID container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { if (containerIdBuilder_ == null) { return containerId_; } else { return containerIdBuilder_.getMessage(); } } /** * required .mesos.v1.ContainerID container_id = 1; */ 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_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder setContainerId( org.apache.mesos.v1.Protos.ContainerID.Builder builderForValue) { if (containerIdBuilder_ == null) { containerId_ = builderForValue.build(); onChanged(); } else { containerIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder mergeContainerId(org.apache.mesos.v1.Protos.ContainerID value) { if (containerIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && 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_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder clearContainerId() { if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); onChanged(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID.Builder getContainerIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getContainerIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { if (containerIdBuilder_ != null) { return containerIdBuilder_.getMessageOrBuilder(); } else { return containerId_; } } /** * required .mesos.v1.ContainerID container_id = 1; */ 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.agent.Call.WaitNestedContainer) } static { defaultInstance = new WaitNestedContainer(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Call.WaitNestedContainer) } public interface KillNestedContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Call.KillNestedContainer) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.ContainerID container_id = 1; */ boolean hasContainerId(); /** * required .mesos.v1.ContainerID container_id = 1; */ org.apache.mesos.v1.Protos.ContainerID getContainerId(); /** * required .mesos.v1.ContainerID container_id = 1; */ org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Call.KillNestedContainer} * *
     * Kills the nested container. Currently only supports SIGKILL.
     * 
*/ public static final class KillNestedContainer extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Call.KillNestedContainer) KillNestedContainerOrBuilder { // Use KillNestedContainer.newBuilder() to construct. private KillNestedContainer(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private KillNestedContainer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final KillNestedContainer defaultInstance; public static KillNestedContainer getDefaultInstance() { return defaultInstance; } public KillNestedContainer getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KillNestedContainer( 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.ContainerID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = containerId_.toBuilder(); } containerId_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(containerId_); containerId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_KillNestedContainer_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_KillNestedContainer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.class, org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public KillNestedContainer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KillNestedContainer(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int CONTAINER_ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.ContainerID containerId_; /** * required .mesos.v1.ContainerID container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { return containerId_; } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { return containerId_; } private void initFields() { 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 (!hasContainerId()) { memoizedIsInitialized = 0; return false; } if (!getContainerId().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, containerId_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, containerId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer 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.agent.Protos.Call.KillNestedContainer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer 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.agent.Protos.Call.KillNestedContainer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer 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.agent.Protos.Call.KillNestedContainer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer 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.agent.Protos.Call.KillNestedContainer 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.agent.Call.KillNestedContainer} * *
       * Kills the nested container. Currently only supports SIGKILL.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Call.KillNestedContainer) org.apache.mesos.v1.agent.Protos.Call.KillNestedContainerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_KillNestedContainer_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_KillNestedContainer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.class, org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContainerIdFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_KillNestedContainer_descriptor; } public org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer build() { org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer buildPartial() { org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer result = new org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (containerIdBuilder_ == null) { result.containerId_ = containerId_; } else { result.containerId_ = containerIdBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer other) { if (other == org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.getDefaultInstance()) return this; if (other.hasContainerId()) { mergeContainerId(other.getContainerId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasContainerId()) { return false; } if (!getContainerId().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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_; /** * required .mesos.v1.ContainerID container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { if (containerIdBuilder_ == null) { return containerId_; } else { return containerIdBuilder_.getMessage(); } } /** * required .mesos.v1.ContainerID container_id = 1; */ 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_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder setContainerId( org.apache.mesos.v1.Protos.ContainerID.Builder builderForValue) { if (containerIdBuilder_ == null) { containerId_ = builderForValue.build(); onChanged(); } else { containerIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder mergeContainerId(org.apache.mesos.v1.Protos.ContainerID value) { if (containerIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && 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_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder clearContainerId() { if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); onChanged(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID.Builder getContainerIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getContainerIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { if (containerIdBuilder_ != null) { return containerIdBuilder_.getMessageOrBuilder(); } else { return containerId_; } } /** * required .mesos.v1.ContainerID container_id = 1; */ 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.agent.Call.KillNestedContainer) } static { defaultInstance = new KillNestedContainer(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Call.KillNestedContainer) } public interface RemoveNestedContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Call.RemoveNestedContainer) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.ContainerID container_id = 1; */ boolean hasContainerId(); /** * required .mesos.v1.ContainerID container_id = 1; */ org.apache.mesos.v1.Protos.ContainerID getContainerId(); /** * required .mesos.v1.ContainerID container_id = 1; */ org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Call.RemoveNestedContainer} * *
     * Removes a nested container and its artifacts (runtime and sandbox
     * directories).
     * 
*/ public static final class RemoveNestedContainer extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Call.RemoveNestedContainer) RemoveNestedContainerOrBuilder { // Use RemoveNestedContainer.newBuilder() to construct. private RemoveNestedContainer(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RemoveNestedContainer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RemoveNestedContainer defaultInstance; public static RemoveNestedContainer getDefaultInstance() { return defaultInstance; } public RemoveNestedContainer getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RemoveNestedContainer( 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.ContainerID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = containerId_.toBuilder(); } containerId_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(containerId_); containerId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_RemoveNestedContainer_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_RemoveNestedContainer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.class, org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RemoveNestedContainer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoveNestedContainer(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int CONTAINER_ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.ContainerID containerId_; /** * required .mesos.v1.ContainerID container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { return containerId_; } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { return containerId_; } private void initFields() { 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 (!hasContainerId()) { memoizedIsInitialized = 0; return false; } if (!getContainerId().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, containerId_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, containerId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer 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.agent.Protos.Call.RemoveNestedContainer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer 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.agent.Protos.Call.RemoveNestedContainer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer 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.agent.Protos.Call.RemoveNestedContainer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer 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.agent.Protos.Call.RemoveNestedContainer 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.agent.Call.RemoveNestedContainer} * *
       * Removes a nested container and its artifacts (runtime and sandbox
       * directories).
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Call.RemoveNestedContainer) org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_RemoveNestedContainer_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_RemoveNestedContainer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.class, org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContainerIdFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_RemoveNestedContainer_descriptor; } public org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer build() { org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer buildPartial() { org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer result = new org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (containerIdBuilder_ == null) { result.containerId_ = containerId_; } else { result.containerId_ = containerIdBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer other) { if (other == org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.getDefaultInstance()) return this; if (other.hasContainerId()) { mergeContainerId(other.getContainerId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasContainerId()) { return false; } if (!getContainerId().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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_; /** * required .mesos.v1.ContainerID container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { if (containerIdBuilder_ == null) { return containerId_; } else { return containerIdBuilder_.getMessage(); } } /** * required .mesos.v1.ContainerID container_id = 1; */ 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_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder setContainerId( org.apache.mesos.v1.Protos.ContainerID.Builder builderForValue) { if (containerIdBuilder_ == null) { containerId_ = builderForValue.build(); onChanged(); } else { containerIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder mergeContainerId(org.apache.mesos.v1.Protos.ContainerID value) { if (containerIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && 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_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder clearContainerId() { if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); onChanged(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID.Builder getContainerIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getContainerIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { if (containerIdBuilder_ != null) { return containerIdBuilder_.getMessageOrBuilder(); } else { return containerId_; } } /** * required .mesos.v1.ContainerID container_id = 1; */ 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.agent.Call.RemoveNestedContainer) } static { defaultInstance = new RemoveNestedContainer(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Call.RemoveNestedContainer) } public interface LaunchNestedContainerSessionOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Call.LaunchNestedContainerSession) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.ContainerID container_id = 1; */ boolean hasContainerId(); /** * required .mesos.v1.ContainerID container_id = 1; */ org.apache.mesos.v1.Protos.ContainerID getContainerId(); /** * required .mesos.v1.ContainerID container_id = 1; */ org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder(); /** * optional .mesos.v1.CommandInfo command = 2; */ boolean hasCommand(); /** * optional .mesos.v1.CommandInfo command = 2; */ org.apache.mesos.v1.Protos.CommandInfo getCommand(); /** * optional .mesos.v1.CommandInfo command = 2; */ org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder(); /** * optional .mesos.v1.ContainerInfo container = 3; */ boolean hasContainer(); /** * optional .mesos.v1.ContainerInfo container = 3; */ org.apache.mesos.v1.Protos.ContainerInfo getContainer(); /** * optional .mesos.v1.ContainerInfo container = 3; */ org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Call.LaunchNestedContainerSession} * *
     * Launches a nested container within an executor's tree of containers.
     * The differences between this call and `LaunchNestedContainer` are:
     * 1) The container's life-cycle is tied to the lifetime of the
     *    connection used to make this call, i.e., if the connection ever
     *    breaks, the container will be destroyed.
     * 2) The nested container shares the same namespaces and cgroups as
     *    its parent container.
     * 3) Results in a streaming response of type `ProcessIO`. So the call
     *    needs to be made on a persistent connection.
     * 
*/ public static final class LaunchNestedContainerSession extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Call.LaunchNestedContainerSession) LaunchNestedContainerSessionOrBuilder { // Use LaunchNestedContainerSession.newBuilder() to construct. private LaunchNestedContainerSession(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private LaunchNestedContainerSession(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final LaunchNestedContainerSession defaultInstance; public static LaunchNestedContainerSession getDefaultInstance() { return defaultInstance; } public LaunchNestedContainerSession getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LaunchNestedContainerSession( 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.ContainerID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = containerId_.toBuilder(); } containerId_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(containerId_); containerId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.Protos.CommandInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = command_.toBuilder(); } command_ = input.readMessage(org.apache.mesos.v1.Protos.CommandInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(command_); command_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.Protos.ContainerInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = container_.toBuilder(); } container_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(container_); container_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; 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.agent.Protos.internal_static_mesos_v1_agent_Call_LaunchNestedContainerSession_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_LaunchNestedContainerSession_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.class, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LaunchNestedContainerSession parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LaunchNestedContainerSession(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int CONTAINER_ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.ContainerID containerId_; /** * required .mesos.v1.ContainerID container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { return containerId_; } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { return containerId_; } public static final int COMMAND_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.CommandInfo command_; /** * optional .mesos.v1.CommandInfo command = 2; */ public boolean hasCommand() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.CommandInfo command = 2; */ public org.apache.mesos.v1.Protos.CommandInfo getCommand() { return command_; } /** * optional .mesos.v1.CommandInfo command = 2; */ public org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder() { return command_; } public static final int CONTAINER_FIELD_NUMBER = 3; private org.apache.mesos.v1.Protos.ContainerInfo container_; /** * optional .mesos.v1.ContainerInfo container = 3; */ public boolean hasContainer() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.ContainerInfo container = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo getContainer() { return container_; } /** * optional .mesos.v1.ContainerInfo container = 3; */ public org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { return container_; } private void initFields() { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); command_ = org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance(); container_ = org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasContainerId()) { memoizedIsInitialized = 0; return false; } if (!getContainerId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasCommand()) { if (!getCommand().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasContainer()) { if (!getContainer().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, containerId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, command_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, container_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, containerId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, command_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, container_); } 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.agent.Protos.Call.LaunchNestedContainerSession parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession 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.agent.Protos.Call.LaunchNestedContainerSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession 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.agent.Protos.Call.LaunchNestedContainerSession parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession 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.agent.Protos.Call.LaunchNestedContainerSession parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession 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.agent.Protos.Call.LaunchNestedContainerSession 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.agent.Call.LaunchNestedContainerSession} * *
       * Launches a nested container within an executor's tree of containers.
       * The differences between this call and `LaunchNestedContainer` are:
       * 1) The container's life-cycle is tied to the lifetime of the
       *    connection used to make this call, i.e., if the connection ever
       *    breaks, the container will be destroyed.
       * 2) The nested container shares the same namespaces and cgroups as
       *    its parent container.
       * 3) Results in a streaming response of type `ProcessIO`. So the call
       *    needs to be made on a persistent connection.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Call.LaunchNestedContainerSession) org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSessionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_LaunchNestedContainerSession_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_LaunchNestedContainerSession_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.class, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContainerIdFieldBuilder(); getCommandFieldBuilder(); getContainerFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (commandBuilder_ == null) { command_ = org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance(); } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (containerBuilder_ == null) { container_ = org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance(); } else { containerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_LaunchNestedContainerSession_descriptor; } public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession build() { org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession buildPartial() { org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession result = new org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (containerIdBuilder_ == null) { result.containerId_ = containerId_; } else { result.containerId_ = containerIdBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (commandBuilder_ == null) { result.command_ = command_; } else { result.command_ = commandBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (containerBuilder_ == null) { result.container_ = container_; } else { result.container_ = containerBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession other) { if (other == org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.getDefaultInstance()) return this; if (other.hasContainerId()) { mergeContainerId(other.getContainerId()); } if (other.hasCommand()) { mergeCommand(other.getCommand()); } if (other.hasContainer()) { mergeContainer(other.getContainer()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasContainerId()) { return false; } if (!getContainerId().isInitialized()) { return false; } if (hasCommand()) { if (!getCommand().isInitialized()) { return false; } } if (hasContainer()) { if (!getContainer().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.agent.Protos.Call.LaunchNestedContainerSession parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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_; /** * required .mesos.v1.ContainerID container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { if (containerIdBuilder_ == null) { return containerId_; } else { return containerIdBuilder_.getMessage(); } } /** * required .mesos.v1.ContainerID container_id = 1; */ 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_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder setContainerId( org.apache.mesos.v1.Protos.ContainerID.Builder builderForValue) { if (containerIdBuilder_ == null) { containerId_ = builderForValue.build(); onChanged(); } else { containerIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder mergeContainerId(org.apache.mesos.v1.Protos.ContainerID value) { if (containerIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && 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_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder clearContainerId() { if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); onChanged(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID.Builder getContainerIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getContainerIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { if (containerIdBuilder_ != null) { return containerIdBuilder_.getMessageOrBuilder(); } else { return containerId_; } } /** * required .mesos.v1.ContainerID container_id = 1; */ 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_; } private org.apache.mesos.v1.Protos.CommandInfo command_ = org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.CommandInfo, org.apache.mesos.v1.Protos.CommandInfo.Builder, org.apache.mesos.v1.Protos.CommandInfoOrBuilder> commandBuilder_; /** * optional .mesos.v1.CommandInfo command = 2; */ public boolean hasCommand() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.CommandInfo command = 2; */ public org.apache.mesos.v1.Protos.CommandInfo getCommand() { if (commandBuilder_ == null) { return command_; } else { return commandBuilder_.getMessage(); } } /** * optional .mesos.v1.CommandInfo command = 2; */ public Builder setCommand(org.apache.mesos.v1.Protos.CommandInfo value) { if (commandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { commandBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.CommandInfo command = 2; */ public Builder setCommand( org.apache.mesos.v1.Protos.CommandInfo.Builder builderForValue) { if (commandBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { commandBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.CommandInfo command = 2; */ public Builder mergeCommand(org.apache.mesos.v1.Protos.CommandInfo value) { if (commandBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && command_ != org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance()) { command_ = org.apache.mesos.v1.Protos.CommandInfo.newBuilder(command_).mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { commandBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.CommandInfo command = 2; */ public Builder clearCommand() { if (commandBuilder_ == null) { command_ = org.apache.mesos.v1.Protos.CommandInfo.getDefaultInstance(); onChanged(); } else { commandBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.CommandInfo command = 2; */ public org.apache.mesos.v1.Protos.CommandInfo.Builder getCommandBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCommandFieldBuilder().getBuilder(); } /** * optional .mesos.v1.CommandInfo command = 2; */ public org.apache.mesos.v1.Protos.CommandInfoOrBuilder getCommandOrBuilder() { if (commandBuilder_ != null) { return commandBuilder_.getMessageOrBuilder(); } else { return command_; } } /** * optional .mesos.v1.CommandInfo command = 2; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.CommandInfo, org.apache.mesos.v1.Protos.CommandInfo.Builder, org.apache.mesos.v1.Protos.CommandInfoOrBuilder> getCommandFieldBuilder() { if (commandBuilder_ == null) { commandBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.CommandInfo, org.apache.mesos.v1.Protos.CommandInfo.Builder, org.apache.mesos.v1.Protos.CommandInfoOrBuilder>( getCommand(), getParentForChildren(), isClean()); command_ = null; } return commandBuilder_; } private org.apache.mesos.v1.Protos.ContainerInfo container_ = org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ContainerInfo, org.apache.mesos.v1.Protos.ContainerInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfoOrBuilder> containerBuilder_; /** * optional .mesos.v1.ContainerInfo container = 3; */ public boolean hasContainer() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.ContainerInfo container = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo getContainer() { if (containerBuilder_ == null) { return container_; } else { return containerBuilder_.getMessage(); } } /** * optional .mesos.v1.ContainerInfo container = 3; */ public Builder setContainer(org.apache.mesos.v1.Protos.ContainerInfo value) { if (containerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } container_ = value; onChanged(); } else { containerBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.ContainerInfo container = 3; */ public Builder setContainer( org.apache.mesos.v1.Protos.ContainerInfo.Builder builderForValue) { if (containerBuilder_ == null) { container_ = builderForValue.build(); onChanged(); } else { containerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.ContainerInfo container = 3; */ public Builder mergeContainer(org.apache.mesos.v1.Protos.ContainerInfo value) { if (containerBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && container_ != org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance()) { container_ = org.apache.mesos.v1.Protos.ContainerInfo.newBuilder(container_).mergeFrom(value).buildPartial(); } else { container_ = value; } onChanged(); } else { containerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.ContainerInfo container = 3; */ public Builder clearContainer() { if (containerBuilder_ == null) { container_ = org.apache.mesos.v1.Protos.ContainerInfo.getDefaultInstance(); onChanged(); } else { containerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.ContainerInfo container = 3; */ public org.apache.mesos.v1.Protos.ContainerInfo.Builder getContainerBuilder() { bitField0_ |= 0x00000004; onChanged(); return getContainerFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ContainerInfo container = 3; */ public org.apache.mesos.v1.Protos.ContainerInfoOrBuilder getContainerOrBuilder() { if (containerBuilder_ != null) { return containerBuilder_.getMessageOrBuilder(); } else { return container_; } } /** * optional .mesos.v1.ContainerInfo container = 3; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ContainerInfo, org.apache.mesos.v1.Protos.ContainerInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfoOrBuilder> getContainerFieldBuilder() { if (containerBuilder_ == null) { containerBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ContainerInfo, org.apache.mesos.v1.Protos.ContainerInfo.Builder, org.apache.mesos.v1.Protos.ContainerInfoOrBuilder>( getContainer(), getParentForChildren(), isClean()); container_ = null; } return containerBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Call.LaunchNestedContainerSession) } static { defaultInstance = new LaunchNestedContainerSession(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Call.LaunchNestedContainerSession) } public interface AttachContainerInputOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Call.AttachContainerInput) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.agent.Call.AttachContainerInput.Type type = 1; */ boolean hasType(); /** * optional .mesos.v1.agent.Call.AttachContainerInput.Type type = 1; */ org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Type getType(); /** * optional .mesos.v1.ContainerID container_id = 2; */ boolean hasContainerId(); /** * optional .mesos.v1.ContainerID container_id = 2; */ org.apache.mesos.v1.Protos.ContainerID getContainerId(); /** * optional .mesos.v1.ContainerID container_id = 2; */ org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder(); /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ boolean hasProcessIo(); /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ org.apache.mesos.v1.agent.Protos.ProcessIO getProcessIo(); /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ org.apache.mesos.v1.agent.Protos.ProcessIOOrBuilder getProcessIoOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Call.AttachContainerInput} * *
     * Attaches the caller to the STDIN of the entry point of the container.
     * Clients can use this to stream input data to a container.
     * Note that this call needs to be made on a persistent connection by
     * streaming a CONTAINER_ID message followed by one or more PROCESS_IO
     * messages.
     * 
*/ public static final class AttachContainerInput extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Call.AttachContainerInput) AttachContainerInputOrBuilder { // Use AttachContainerInput.newBuilder() to construct. private AttachContainerInput(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AttachContainerInput(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AttachContainerInput defaultInstance; public static AttachContainerInput getDefaultInstance() { return defaultInstance; } public AttachContainerInput getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttachContainerInput( 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.agent.Protos.Call.AttachContainerInput.Type value = org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = value; } break; } case 18: { org.apache.mesos.v1.Protos.ContainerID.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = containerId_.toBuilder(); } containerId_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(containerId_); containerId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.agent.Protos.ProcessIO.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = processIo_.toBuilder(); } processIo_ = input.readMessage(org.apache.mesos.v1.agent.Protos.ProcessIO.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(processIo_); processIo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; 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.agent.Protos.internal_static_mesos_v1_agent_Call_AttachContainerInput_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_AttachContainerInput_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.class, org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AttachContainerInput parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttachContainerInput(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code mesos.v1.agent.Call.AttachContainerInput.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0, 0), /** * CONTAINER_ID = 1; */ CONTAINER_ID(1, 1), /** * PROCESS_IO = 2; */ PROCESS_IO(2, 2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * CONTAINER_ID = 1; */ public static final int CONTAINER_ID_VALUE = 1; /** * PROCESS_IO = 2; */ public static final int PROCESS_IO_VALUE = 2; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 0: return UNKNOWN; case 1: return CONTAINER_ID; case 2: return PROCESS_IO; 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.agent.Protos.Call.AttachContainerInput.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.agent.Call.AttachContainerInput.Type) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Type type_; /** * optional .mesos.v1.agent.Call.AttachContainerInput.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.Call.AttachContainerInput.Type type = 1; */ public org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Type getType() { return type_; } public static final int CONTAINER_ID_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.ContainerID containerId_; /** * optional .mesos.v1.ContainerID container_id = 2; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.ContainerID container_id = 2; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { return containerId_; } /** * optional .mesos.v1.ContainerID container_id = 2; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { return containerId_; } public static final int PROCESS_IO_FIELD_NUMBER = 3; private org.apache.mesos.v1.agent.Protos.ProcessIO processIo_; /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ public boolean hasProcessIo() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIO getProcessIo() { return processIo_; } /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIOOrBuilder getProcessIoOrBuilder() { return processIo_; } private void initFields() { type_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Type.UNKNOWN; containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); processIo_ = org.apache.mesos.v1.agent.Protos.ProcessIO.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasContainerId()) { if (!getContainerId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasProcessIo()) { if (!getProcessIo().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, containerId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, processIo_); } 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, containerId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, processIo_); } 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.agent.Protos.Call.AttachContainerInput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput 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.agent.Protos.Call.AttachContainerInput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput 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.agent.Protos.Call.AttachContainerInput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput 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.agent.Protos.Call.AttachContainerInput parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput 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.agent.Protos.Call.AttachContainerInput 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.agent.Call.AttachContainerInput} * *
       * Attaches the caller to the STDIN of the entry point of the container.
       * Clients can use this to stream input data to a container.
       * Note that this call needs to be made on a persistent connection by
       * streaming a CONTAINER_ID message followed by one or more PROCESS_IO
       * messages.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Call.AttachContainerInput) org.apache.mesos.v1.agent.Protos.Call.AttachContainerInputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_AttachContainerInput_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_AttachContainerInput_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.class, org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContainerIdFieldBuilder(); getProcessIoFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Type.UNKNOWN; bitField0_ = (bitField0_ & ~0x00000001); if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (processIoBuilder_ == null) { processIo_ = org.apache.mesos.v1.agent.Protos.ProcessIO.getDefaultInstance(); } else { processIoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_AttachContainerInput_descriptor; } public org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput build() { org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput buildPartial() { org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput result = new org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput(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 (containerIdBuilder_ == null) { result.containerId_ = containerId_; } else { result.containerId_ = containerIdBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (processIoBuilder_ == null) { result.processIo_ = processIo_; } else { result.processIo_ = processIoBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput other) { if (other == org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasContainerId()) { mergeContainerId(other.getContainerId()); } if (other.hasProcessIo()) { mergeProcessIo(other.getProcessIo()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasContainerId()) { if (!getContainerId().isInitialized()) { return false; } } if (hasProcessIo()) { if (!getProcessIo().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.agent.Protos.Call.AttachContainerInput parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Type type_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Type.UNKNOWN; /** * optional .mesos.v1.agent.Call.AttachContainerInput.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.Call.AttachContainerInput.Type type = 1; */ public org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Type getType() { return type_; } /** * optional .mesos.v1.agent.Call.AttachContainerInput.Type type = 1; */ public Builder setType(org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * optional .mesos.v1.agent.Call.AttachContainerInput.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Type.UNKNOWN; onChanged(); return this; } 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 = 2; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.ContainerID container_id = 2; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { if (containerIdBuilder_ == null) { return containerId_; } else { return containerIdBuilder_.getMessage(); } } /** * optional .mesos.v1.ContainerID container_id = 2; */ 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_ |= 0x00000002; return this; } /** * optional .mesos.v1.ContainerID container_id = 2; */ public Builder setContainerId( org.apache.mesos.v1.Protos.ContainerID.Builder builderForValue) { if (containerIdBuilder_ == null) { containerId_ = builderForValue.build(); onChanged(); } else { containerIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.ContainerID container_id = 2; */ public Builder mergeContainerId(org.apache.mesos.v1.Protos.ContainerID value) { if (containerIdBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && 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_ |= 0x00000002; return this; } /** * optional .mesos.v1.ContainerID container_id = 2; */ public Builder clearContainerId() { if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); onChanged(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.ContainerID container_id = 2; */ public org.apache.mesos.v1.Protos.ContainerID.Builder getContainerIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getContainerIdFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ContainerID container_id = 2; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { if (containerIdBuilder_ != null) { return containerIdBuilder_.getMessageOrBuilder(); } else { return containerId_; } } /** * optional .mesos.v1.ContainerID container_id = 2; */ 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_; } private org.apache.mesos.v1.agent.Protos.ProcessIO processIo_ = org.apache.mesos.v1.agent.Protos.ProcessIO.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.ProcessIO, org.apache.mesos.v1.agent.Protos.ProcessIO.Builder, org.apache.mesos.v1.agent.Protos.ProcessIOOrBuilder> processIoBuilder_; /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ public boolean hasProcessIo() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIO getProcessIo() { if (processIoBuilder_ == null) { return processIo_; } else { return processIoBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ public Builder setProcessIo(org.apache.mesos.v1.agent.Protos.ProcessIO value) { if (processIoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } processIo_ = value; onChanged(); } else { processIoBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ public Builder setProcessIo( org.apache.mesos.v1.agent.Protos.ProcessIO.Builder builderForValue) { if (processIoBuilder_ == null) { processIo_ = builderForValue.build(); onChanged(); } else { processIoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ public Builder mergeProcessIo(org.apache.mesos.v1.agent.Protos.ProcessIO value) { if (processIoBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && processIo_ != org.apache.mesos.v1.agent.Protos.ProcessIO.getDefaultInstance()) { processIo_ = org.apache.mesos.v1.agent.Protos.ProcessIO.newBuilder(processIo_).mergeFrom(value).buildPartial(); } else { processIo_ = value; } onChanged(); } else { processIoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ public Builder clearProcessIo() { if (processIoBuilder_ == null) { processIo_ = org.apache.mesos.v1.agent.Protos.ProcessIO.getDefaultInstance(); onChanged(); } else { processIoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Builder getProcessIoBuilder() { bitField0_ |= 0x00000004; onChanged(); return getProcessIoFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIOOrBuilder getProcessIoOrBuilder() { if (processIoBuilder_ != null) { return processIoBuilder_.getMessageOrBuilder(); } else { return processIo_; } } /** * optional .mesos.v1.agent.ProcessIO process_io = 3; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.ProcessIO, org.apache.mesos.v1.agent.Protos.ProcessIO.Builder, org.apache.mesos.v1.agent.Protos.ProcessIOOrBuilder> getProcessIoFieldBuilder() { if (processIoBuilder_ == null) { processIoBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.ProcessIO, org.apache.mesos.v1.agent.Protos.ProcessIO.Builder, org.apache.mesos.v1.agent.Protos.ProcessIOOrBuilder>( getProcessIo(), getParentForChildren(), isClean()); processIo_ = null; } return processIoBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Call.AttachContainerInput) } static { defaultInstance = new AttachContainerInput(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Call.AttachContainerInput) } public interface AttachContainerOutputOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Call.AttachContainerOutput) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.ContainerID container_id = 1; */ boolean hasContainerId(); /** * required .mesos.v1.ContainerID container_id = 1; */ org.apache.mesos.v1.Protos.ContainerID getContainerId(); /** * required .mesos.v1.ContainerID container_id = 1; */ org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Call.AttachContainerOutput} * *
     * Attaches the caller to the STDOUT and STDERR of the entrypoint of
     * the container. Clients can use this to stream output/error from the
     * container. This call will result in a streaming response of `ProcessIO`;
     * so this call needs to be made on a persistent connection.
     * 
*/ public static final class AttachContainerOutput extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Call.AttachContainerOutput) AttachContainerOutputOrBuilder { // Use AttachContainerOutput.newBuilder() to construct. private AttachContainerOutput(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AttachContainerOutput(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AttachContainerOutput defaultInstance; public static AttachContainerOutput getDefaultInstance() { return defaultInstance; } public AttachContainerOutput getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AttachContainerOutput( 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.ContainerID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = containerId_.toBuilder(); } containerId_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(containerId_); containerId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_AttachContainerOutput_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_AttachContainerOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.class, org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AttachContainerOutput parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AttachContainerOutput(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int CONTAINER_ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.ContainerID containerId_; /** * required .mesos.v1.ContainerID container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { return containerId_; } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { return containerId_; } private void initFields() { 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 (!hasContainerId()) { memoizedIsInitialized = 0; return false; } if (!getContainerId().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, containerId_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, containerId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput 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.agent.Protos.Call.AttachContainerOutput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput 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.agent.Protos.Call.AttachContainerOutput parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput 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.agent.Protos.Call.AttachContainerOutput parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput 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.agent.Protos.Call.AttachContainerOutput 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.agent.Call.AttachContainerOutput} * *
       * Attaches the caller to the STDOUT and STDERR of the entrypoint of
       * the container. Clients can use this to stream output/error from the
       * container. This call will result in a streaming response of `ProcessIO`;
       * so this call needs to be made on a persistent connection.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Call.AttachContainerOutput) org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutputOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_AttachContainerOutput_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_AttachContainerOutput_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.class, org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContainerIdFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_AttachContainerOutput_descriptor; } public org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput build() { org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput buildPartial() { org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput result = new org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (containerIdBuilder_ == null) { result.containerId_ = containerId_; } else { result.containerId_ = containerIdBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput other) { if (other == org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.getDefaultInstance()) return this; if (other.hasContainerId()) { mergeContainerId(other.getContainerId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasContainerId()) { return false; } if (!getContainerId().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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_; /** * required .mesos.v1.ContainerID container_id = 1; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { if (containerIdBuilder_ == null) { return containerId_; } else { return containerIdBuilder_.getMessage(); } } /** * required .mesos.v1.ContainerID container_id = 1; */ 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_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder setContainerId( org.apache.mesos.v1.Protos.ContainerID.Builder builderForValue) { if (containerIdBuilder_ == null) { containerId_ = builderForValue.build(); onChanged(); } else { containerIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder mergeContainerId(org.apache.mesos.v1.Protos.ContainerID value) { if (containerIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && 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_ |= 0x00000001; return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public Builder clearContainerId() { if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); onChanged(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerID.Builder getContainerIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getContainerIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.ContainerID container_id = 1; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { if (containerIdBuilder_ != null) { return containerIdBuilder_.getMessageOrBuilder(); } else { return containerId_; } } /** * required .mesos.v1.ContainerID container_id = 1; */ 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.agent.Call.AttachContainerOutput) } static { defaultInstance = new AttachContainerOutput(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Call.AttachContainerOutput) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private org.apache.mesos.v1.agent.Protos.Call.Type type_; /** * optional .mesos.v1.agent.Call.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.Call.Type type = 1; */ public org.apache.mesos.v1.agent.Protos.Call.Type getType() { return type_; } public static final int GET_METRICS_FIELD_NUMBER = 2; private org.apache.mesos.v1.agent.Protos.Call.GetMetrics getMetrics_; /** * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2; */ public boolean hasGetMetrics() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2; */ public org.apache.mesos.v1.agent.Protos.Call.GetMetrics getGetMetrics() { return getMetrics_; } /** * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2; */ public org.apache.mesos.v1.agent.Protos.Call.GetMetricsOrBuilder getGetMetricsOrBuilder() { return getMetrics_; } public static final int SET_LOGGING_LEVEL_FIELD_NUMBER = 3; private org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel setLoggingLevel_; /** * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3; */ public boolean hasSetLoggingLevel() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3; */ public org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel getSetLoggingLevel() { return setLoggingLevel_; } /** * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3; */ public org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevelOrBuilder getSetLoggingLevelOrBuilder() { return setLoggingLevel_; } public static final int LIST_FILES_FIELD_NUMBER = 4; private org.apache.mesos.v1.agent.Protos.Call.ListFiles listFiles_; /** * optional .mesos.v1.agent.Call.ListFiles list_files = 4; */ public boolean hasListFiles() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.agent.Call.ListFiles list_files = 4; */ public org.apache.mesos.v1.agent.Protos.Call.ListFiles getListFiles() { return listFiles_; } /** * optional .mesos.v1.agent.Call.ListFiles list_files = 4; */ public org.apache.mesos.v1.agent.Protos.Call.ListFilesOrBuilder getListFilesOrBuilder() { return listFiles_; } public static final int READ_FILE_FIELD_NUMBER = 5; private org.apache.mesos.v1.agent.Protos.Call.ReadFile readFile_; /** * optional .mesos.v1.agent.Call.ReadFile read_file = 5; */ public boolean hasReadFile() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.agent.Call.ReadFile read_file = 5; */ public org.apache.mesos.v1.agent.Protos.Call.ReadFile getReadFile() { return readFile_; } /** * optional .mesos.v1.agent.Call.ReadFile read_file = 5; */ public org.apache.mesos.v1.agent.Protos.Call.ReadFileOrBuilder getReadFileOrBuilder() { return readFile_; } public static final int LAUNCH_NESTED_CONTAINER_FIELD_NUMBER = 6; private org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer launchNestedContainer_; /** * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6; */ public boolean hasLaunchNestedContainer() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6; */ public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer getLaunchNestedContainer() { return launchNestedContainer_; } /** * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6; */ public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerOrBuilder getLaunchNestedContainerOrBuilder() { return launchNestedContainer_; } public static final int WAIT_NESTED_CONTAINER_FIELD_NUMBER = 7; private org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer waitNestedContainer_; /** * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7; */ public boolean hasWaitNestedContainer() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7; */ public org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer getWaitNestedContainer() { return waitNestedContainer_; } /** * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7; */ public org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainerOrBuilder getWaitNestedContainerOrBuilder() { return waitNestedContainer_; } public static final int KILL_NESTED_CONTAINER_FIELD_NUMBER = 8; private org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer killNestedContainer_; /** * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8; */ public boolean hasKillNestedContainer() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8; */ public org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer getKillNestedContainer() { return killNestedContainer_; } /** * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8; */ public org.apache.mesos.v1.agent.Protos.Call.KillNestedContainerOrBuilder getKillNestedContainerOrBuilder() { return killNestedContainer_; } public static final int REMOVE_NESTED_CONTAINER_FIELD_NUMBER = 12; private org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer removeNestedContainer_; /** * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12; */ public boolean hasRemoveNestedContainer() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12; */ public org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer getRemoveNestedContainer() { return removeNestedContainer_; } /** * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12; */ public org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainerOrBuilder getRemoveNestedContainerOrBuilder() { return removeNestedContainer_; } public static final int LAUNCH_NESTED_CONTAINER_SESSION_FIELD_NUMBER = 9; private org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession launchNestedContainerSession_; /** * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9; */ public boolean hasLaunchNestedContainerSession() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9; */ public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession getLaunchNestedContainerSession() { return launchNestedContainerSession_; } /** * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9; */ public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSessionOrBuilder getLaunchNestedContainerSessionOrBuilder() { return launchNestedContainerSession_; } public static final int ATTACH_CONTAINER_INPUT_FIELD_NUMBER = 10; private org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput attachContainerInput_; /** * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10; */ public boolean hasAttachContainerInput() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10; */ public org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput getAttachContainerInput() { return attachContainerInput_; } /** * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10; */ public org.apache.mesos.v1.agent.Protos.Call.AttachContainerInputOrBuilder getAttachContainerInputOrBuilder() { return attachContainerInput_; } public static final int ATTACH_CONTAINER_OUTPUT_FIELD_NUMBER = 11; private org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput attachContainerOutput_; /** * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11; */ public boolean hasAttachContainerOutput() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11; */ public org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput getAttachContainerOutput() { return attachContainerOutput_; } /** * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11; */ public org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutputOrBuilder getAttachContainerOutputOrBuilder() { return attachContainerOutput_; } private void initFields() { type_ = org.apache.mesos.v1.agent.Protos.Call.Type.UNKNOWN; getMetrics_ = org.apache.mesos.v1.agent.Protos.Call.GetMetrics.getDefaultInstance(); setLoggingLevel_ = org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.getDefaultInstance(); listFiles_ = org.apache.mesos.v1.agent.Protos.Call.ListFiles.getDefaultInstance(); readFile_ = org.apache.mesos.v1.agent.Protos.Call.ReadFile.getDefaultInstance(); launchNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.getDefaultInstance(); waitNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.getDefaultInstance(); killNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.getDefaultInstance(); removeNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.getDefaultInstance(); launchNestedContainerSession_ = org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.getDefaultInstance(); attachContainerInput_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.getDefaultInstance(); attachContainerOutput_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasGetMetrics()) { if (!getGetMetrics().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasSetLoggingLevel()) { if (!getSetLoggingLevel().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasListFiles()) { if (!getListFiles().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasReadFile()) { if (!getReadFile().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLaunchNestedContainer()) { if (!getLaunchNestedContainer().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasWaitNestedContainer()) { if (!getWaitNestedContainer().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasKillNestedContainer()) { if (!getKillNestedContainer().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasRemoveNestedContainer()) { if (!getRemoveNestedContainer().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasLaunchNestedContainerSession()) { if (!getLaunchNestedContainerSession().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasAttachContainerInput()) { if (!getAttachContainerInput().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasAttachContainerOutput()) { if (!getAttachContainerOutput().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, getMetrics_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, setLoggingLevel_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, listFiles_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, readFile_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, launchNestedContainer_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(7, waitNestedContainer_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(8, killNestedContainer_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(9, launchNestedContainerSession_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeMessage(10, attachContainerInput_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeMessage(11, attachContainerOutput_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(12, removeNestedContainer_); } 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, getMetrics_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, setLoggingLevel_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, listFiles_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, readFile_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, launchNestedContainer_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, waitNestedContainer_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, killNestedContainer_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, launchNestedContainerSession_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, attachContainerInput_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, attachContainerOutput_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, removeNestedContainer_); } 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.agent.Protos.Call parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.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.agent.Protos.Call parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.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.agent.Protos.Call parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.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.agent.Protos.Call parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.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.agent.Protos.Call parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.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.agent.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.agent.Call} * *
     **
     * Calls that can be sent to the v1 agent API.
     * A call 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.agent.Call) org.apache.mesos.v1.agent.Protos.CallOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Call.class, org.apache.mesos.v1.agent.Protos.Call.Builder.class); } // Construct using org.apache.mesos.v1.agent.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) { getGetMetricsFieldBuilder(); getSetLoggingLevelFieldBuilder(); getListFilesFieldBuilder(); getReadFileFieldBuilder(); getLaunchNestedContainerFieldBuilder(); getWaitNestedContainerFieldBuilder(); getKillNestedContainerFieldBuilder(); getRemoveNestedContainerFieldBuilder(); getLaunchNestedContainerSessionFieldBuilder(); getAttachContainerInputFieldBuilder(); getAttachContainerOutputFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = org.apache.mesos.v1.agent.Protos.Call.Type.UNKNOWN; bitField0_ = (bitField0_ & ~0x00000001); if (getMetricsBuilder_ == null) { getMetrics_ = org.apache.mesos.v1.agent.Protos.Call.GetMetrics.getDefaultInstance(); } else { getMetricsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (setLoggingLevelBuilder_ == null) { setLoggingLevel_ = org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.getDefaultInstance(); } else { setLoggingLevelBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (listFilesBuilder_ == null) { listFiles_ = org.apache.mesos.v1.agent.Protos.Call.ListFiles.getDefaultInstance(); } else { listFilesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (readFileBuilder_ == null) { readFile_ = org.apache.mesos.v1.agent.Protos.Call.ReadFile.getDefaultInstance(); } else { readFileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (launchNestedContainerBuilder_ == null) { launchNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.getDefaultInstance(); } else { launchNestedContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (waitNestedContainerBuilder_ == null) { waitNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.getDefaultInstance(); } else { waitNestedContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (killNestedContainerBuilder_ == null) { killNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.getDefaultInstance(); } else { killNestedContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (removeNestedContainerBuilder_ == null) { removeNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.getDefaultInstance(); } else { removeNestedContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); if (launchNestedContainerSessionBuilder_ == null) { launchNestedContainerSession_ = org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.getDefaultInstance(); } else { launchNestedContainerSessionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (attachContainerInputBuilder_ == null) { attachContainerInput_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.getDefaultInstance(); } else { attachContainerInputBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); if (attachContainerOutputBuilder_ == null) { attachContainerOutput_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.getDefaultInstance(); } else { attachContainerOutputBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Call_descriptor; } public org.apache.mesos.v1.agent.Protos.Call getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Call.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Call build() { org.apache.mesos.v1.agent.Protos.Call result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Call buildPartial() { org.apache.mesos.v1.agent.Protos.Call result = new org.apache.mesos.v1.agent.Protos.Call(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 (getMetricsBuilder_ == null) { result.getMetrics_ = getMetrics_; } else { result.getMetrics_ = getMetricsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (setLoggingLevelBuilder_ == null) { result.setLoggingLevel_ = setLoggingLevel_; } else { result.setLoggingLevel_ = setLoggingLevelBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (listFilesBuilder_ == null) { result.listFiles_ = listFiles_; } else { result.listFiles_ = listFilesBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (readFileBuilder_ == null) { result.readFile_ = readFile_; } else { result.readFile_ = readFileBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (launchNestedContainerBuilder_ == null) { result.launchNestedContainer_ = launchNestedContainer_; } else { result.launchNestedContainer_ = launchNestedContainerBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (waitNestedContainerBuilder_ == null) { result.waitNestedContainer_ = waitNestedContainer_; } else { result.waitNestedContainer_ = waitNestedContainerBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (killNestedContainerBuilder_ == null) { result.killNestedContainer_ = killNestedContainer_; } else { result.killNestedContainer_ = killNestedContainerBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } if (removeNestedContainerBuilder_ == null) { result.removeNestedContainer_ = removeNestedContainer_; } else { result.removeNestedContainer_ = removeNestedContainerBuilder_.build(); } if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } if (launchNestedContainerSessionBuilder_ == null) { result.launchNestedContainerSession_ = launchNestedContainerSession_; } else { result.launchNestedContainerSession_ = launchNestedContainerSessionBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } if (attachContainerInputBuilder_ == null) { result.attachContainerInput_ = attachContainerInput_; } else { result.attachContainerInput_ = attachContainerInputBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } if (attachContainerOutputBuilder_ == null) { result.attachContainerOutput_ = attachContainerOutput_; } else { result.attachContainerOutput_ = attachContainerOutputBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Call) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Call)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Call other) { if (other == org.apache.mesos.v1.agent.Protos.Call.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasGetMetrics()) { mergeGetMetrics(other.getGetMetrics()); } if (other.hasSetLoggingLevel()) { mergeSetLoggingLevel(other.getSetLoggingLevel()); } if (other.hasListFiles()) { mergeListFiles(other.getListFiles()); } if (other.hasReadFile()) { mergeReadFile(other.getReadFile()); } if (other.hasLaunchNestedContainer()) { mergeLaunchNestedContainer(other.getLaunchNestedContainer()); } if (other.hasWaitNestedContainer()) { mergeWaitNestedContainer(other.getWaitNestedContainer()); } if (other.hasKillNestedContainer()) { mergeKillNestedContainer(other.getKillNestedContainer()); } if (other.hasRemoveNestedContainer()) { mergeRemoveNestedContainer(other.getRemoveNestedContainer()); } if (other.hasLaunchNestedContainerSession()) { mergeLaunchNestedContainerSession(other.getLaunchNestedContainerSession()); } if (other.hasAttachContainerInput()) { mergeAttachContainerInput(other.getAttachContainerInput()); } if (other.hasAttachContainerOutput()) { mergeAttachContainerOutput(other.getAttachContainerOutput()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasGetMetrics()) { if (!getGetMetrics().isInitialized()) { return false; } } if (hasSetLoggingLevel()) { if (!getSetLoggingLevel().isInitialized()) { return false; } } if (hasListFiles()) { if (!getListFiles().isInitialized()) { return false; } } if (hasReadFile()) { if (!getReadFile().isInitialized()) { return false; } } if (hasLaunchNestedContainer()) { if (!getLaunchNestedContainer().isInitialized()) { return false; } } if (hasWaitNestedContainer()) { if (!getWaitNestedContainer().isInitialized()) { return false; } } if (hasKillNestedContainer()) { if (!getKillNestedContainer().isInitialized()) { return false; } } if (hasRemoveNestedContainer()) { if (!getRemoveNestedContainer().isInitialized()) { return false; } } if (hasLaunchNestedContainerSession()) { if (!getLaunchNestedContainerSession().isInitialized()) { return false; } } if (hasAttachContainerInput()) { if (!getAttachContainerInput().isInitialized()) { return false; } } if (hasAttachContainerOutput()) { if (!getAttachContainerOutput().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.agent.Protos.Call parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Call) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.agent.Protos.Call.Type type_ = org.apache.mesos.v1.agent.Protos.Call.Type.UNKNOWN; /** * optional .mesos.v1.agent.Call.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.Call.Type type = 1; */ public org.apache.mesos.v1.agent.Protos.Call.Type getType() { return type_; } /** * optional .mesos.v1.agent.Call.Type type = 1; */ public Builder setType(org.apache.mesos.v1.agent.Protos.Call.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * optional .mesos.v1.agent.Call.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.mesos.v1.agent.Protos.Call.Type.UNKNOWN; onChanged(); return this; } private org.apache.mesos.v1.agent.Protos.Call.GetMetrics getMetrics_ = org.apache.mesos.v1.agent.Protos.Call.GetMetrics.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.GetMetrics, org.apache.mesos.v1.agent.Protos.Call.GetMetrics.Builder, org.apache.mesos.v1.agent.Protos.Call.GetMetricsOrBuilder> getMetricsBuilder_; /** * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2; */ public boolean hasGetMetrics() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2; */ public org.apache.mesos.v1.agent.Protos.Call.GetMetrics getGetMetrics() { if (getMetricsBuilder_ == null) { return getMetrics_; } else { return getMetricsBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2; */ public Builder setGetMetrics(org.apache.mesos.v1.agent.Protos.Call.GetMetrics value) { if (getMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getMetrics_ = value; onChanged(); } else { getMetricsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2; */ public Builder setGetMetrics( org.apache.mesos.v1.agent.Protos.Call.GetMetrics.Builder builderForValue) { if (getMetricsBuilder_ == null) { getMetrics_ = builderForValue.build(); onChanged(); } else { getMetricsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2; */ public Builder mergeGetMetrics(org.apache.mesos.v1.agent.Protos.Call.GetMetrics value) { if (getMetricsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && getMetrics_ != org.apache.mesos.v1.agent.Protos.Call.GetMetrics.getDefaultInstance()) { getMetrics_ = org.apache.mesos.v1.agent.Protos.Call.GetMetrics.newBuilder(getMetrics_).mergeFrom(value).buildPartial(); } else { getMetrics_ = value; } onChanged(); } else { getMetricsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2; */ public Builder clearGetMetrics() { if (getMetricsBuilder_ == null) { getMetrics_ = org.apache.mesos.v1.agent.Protos.Call.GetMetrics.getDefaultInstance(); onChanged(); } else { getMetricsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2; */ public org.apache.mesos.v1.agent.Protos.Call.GetMetrics.Builder getGetMetricsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGetMetricsFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2; */ public org.apache.mesos.v1.agent.Protos.Call.GetMetricsOrBuilder getGetMetricsOrBuilder() { if (getMetricsBuilder_ != null) { return getMetricsBuilder_.getMessageOrBuilder(); } else { return getMetrics_; } } /** * optional .mesos.v1.agent.Call.GetMetrics get_metrics = 2; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.GetMetrics, org.apache.mesos.v1.agent.Protos.Call.GetMetrics.Builder, org.apache.mesos.v1.agent.Protos.Call.GetMetricsOrBuilder> getGetMetricsFieldBuilder() { if (getMetricsBuilder_ == null) { getMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.GetMetrics, org.apache.mesos.v1.agent.Protos.Call.GetMetrics.Builder, org.apache.mesos.v1.agent.Protos.Call.GetMetricsOrBuilder>( getGetMetrics(), getParentForChildren(), isClean()); getMetrics_ = null; } return getMetricsBuilder_; } private org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel setLoggingLevel_ = org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel, org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.Builder, org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevelOrBuilder> setLoggingLevelBuilder_; /** * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3; */ public boolean hasSetLoggingLevel() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3; */ public org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel getSetLoggingLevel() { if (setLoggingLevelBuilder_ == null) { return setLoggingLevel_; } else { return setLoggingLevelBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3; */ public Builder setSetLoggingLevel(org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel value) { if (setLoggingLevelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } setLoggingLevel_ = value; onChanged(); } else { setLoggingLevelBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3; */ public Builder setSetLoggingLevel( org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.Builder builderForValue) { if (setLoggingLevelBuilder_ == null) { setLoggingLevel_ = builderForValue.build(); onChanged(); } else { setLoggingLevelBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3; */ public Builder mergeSetLoggingLevel(org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel value) { if (setLoggingLevelBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && setLoggingLevel_ != org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.getDefaultInstance()) { setLoggingLevel_ = org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.newBuilder(setLoggingLevel_).mergeFrom(value).buildPartial(); } else { setLoggingLevel_ = value; } onChanged(); } else { setLoggingLevelBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3; */ public Builder clearSetLoggingLevel() { if (setLoggingLevelBuilder_ == null) { setLoggingLevel_ = org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.getDefaultInstance(); onChanged(); } else { setLoggingLevelBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3; */ public org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.Builder getSetLoggingLevelBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSetLoggingLevelFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3; */ public org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevelOrBuilder getSetLoggingLevelOrBuilder() { if (setLoggingLevelBuilder_ != null) { return setLoggingLevelBuilder_.getMessageOrBuilder(); } else { return setLoggingLevel_; } } /** * optional .mesos.v1.agent.Call.SetLoggingLevel set_logging_level = 3; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel, org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.Builder, org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevelOrBuilder> getSetLoggingLevelFieldBuilder() { if (setLoggingLevelBuilder_ == null) { setLoggingLevelBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel, org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevel.Builder, org.apache.mesos.v1.agent.Protos.Call.SetLoggingLevelOrBuilder>( getSetLoggingLevel(), getParentForChildren(), isClean()); setLoggingLevel_ = null; } return setLoggingLevelBuilder_; } private org.apache.mesos.v1.agent.Protos.Call.ListFiles listFiles_ = org.apache.mesos.v1.agent.Protos.Call.ListFiles.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.ListFiles, org.apache.mesos.v1.agent.Protos.Call.ListFiles.Builder, org.apache.mesos.v1.agent.Protos.Call.ListFilesOrBuilder> listFilesBuilder_; /** * optional .mesos.v1.agent.Call.ListFiles list_files = 4; */ public boolean hasListFiles() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.agent.Call.ListFiles list_files = 4; */ public org.apache.mesos.v1.agent.Protos.Call.ListFiles getListFiles() { if (listFilesBuilder_ == null) { return listFiles_; } else { return listFilesBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Call.ListFiles list_files = 4; */ public Builder setListFiles(org.apache.mesos.v1.agent.Protos.Call.ListFiles value) { if (listFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } listFiles_ = value; onChanged(); } else { listFilesBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.agent.Call.ListFiles list_files = 4; */ public Builder setListFiles( org.apache.mesos.v1.agent.Protos.Call.ListFiles.Builder builderForValue) { if (listFilesBuilder_ == null) { listFiles_ = builderForValue.build(); onChanged(); } else { listFilesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.agent.Call.ListFiles list_files = 4; */ public Builder mergeListFiles(org.apache.mesos.v1.agent.Protos.Call.ListFiles value) { if (listFilesBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && listFiles_ != org.apache.mesos.v1.agent.Protos.Call.ListFiles.getDefaultInstance()) { listFiles_ = org.apache.mesos.v1.agent.Protos.Call.ListFiles.newBuilder(listFiles_).mergeFrom(value).buildPartial(); } else { listFiles_ = value; } onChanged(); } else { listFilesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.agent.Call.ListFiles list_files = 4; */ public Builder clearListFiles() { if (listFilesBuilder_ == null) { listFiles_ = org.apache.mesos.v1.agent.Protos.Call.ListFiles.getDefaultInstance(); onChanged(); } else { listFilesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.agent.Call.ListFiles list_files = 4; */ public org.apache.mesos.v1.agent.Protos.Call.ListFiles.Builder getListFilesBuilder() { bitField0_ |= 0x00000008; onChanged(); return getListFilesFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Call.ListFiles list_files = 4; */ public org.apache.mesos.v1.agent.Protos.Call.ListFilesOrBuilder getListFilesOrBuilder() { if (listFilesBuilder_ != null) { return listFilesBuilder_.getMessageOrBuilder(); } else { return listFiles_; } } /** * optional .mesos.v1.agent.Call.ListFiles list_files = 4; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.ListFiles, org.apache.mesos.v1.agent.Protos.Call.ListFiles.Builder, org.apache.mesos.v1.agent.Protos.Call.ListFilesOrBuilder> getListFilesFieldBuilder() { if (listFilesBuilder_ == null) { listFilesBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.ListFiles, org.apache.mesos.v1.agent.Protos.Call.ListFiles.Builder, org.apache.mesos.v1.agent.Protos.Call.ListFilesOrBuilder>( getListFiles(), getParentForChildren(), isClean()); listFiles_ = null; } return listFilesBuilder_; } private org.apache.mesos.v1.agent.Protos.Call.ReadFile readFile_ = org.apache.mesos.v1.agent.Protos.Call.ReadFile.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.ReadFile, org.apache.mesos.v1.agent.Protos.Call.ReadFile.Builder, org.apache.mesos.v1.agent.Protos.Call.ReadFileOrBuilder> readFileBuilder_; /** * optional .mesos.v1.agent.Call.ReadFile read_file = 5; */ public boolean hasReadFile() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.agent.Call.ReadFile read_file = 5; */ public org.apache.mesos.v1.agent.Protos.Call.ReadFile getReadFile() { if (readFileBuilder_ == null) { return readFile_; } else { return readFileBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Call.ReadFile read_file = 5; */ public Builder setReadFile(org.apache.mesos.v1.agent.Protos.Call.ReadFile value) { if (readFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readFile_ = value; onChanged(); } else { readFileBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.agent.Call.ReadFile read_file = 5; */ public Builder setReadFile( org.apache.mesos.v1.agent.Protos.Call.ReadFile.Builder builderForValue) { if (readFileBuilder_ == null) { readFile_ = builderForValue.build(); onChanged(); } else { readFileBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.agent.Call.ReadFile read_file = 5; */ public Builder mergeReadFile(org.apache.mesos.v1.agent.Protos.Call.ReadFile value) { if (readFileBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && readFile_ != org.apache.mesos.v1.agent.Protos.Call.ReadFile.getDefaultInstance()) { readFile_ = org.apache.mesos.v1.agent.Protos.Call.ReadFile.newBuilder(readFile_).mergeFrom(value).buildPartial(); } else { readFile_ = value; } onChanged(); } else { readFileBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.agent.Call.ReadFile read_file = 5; */ public Builder clearReadFile() { if (readFileBuilder_ == null) { readFile_ = org.apache.mesos.v1.agent.Protos.Call.ReadFile.getDefaultInstance(); onChanged(); } else { readFileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .mesos.v1.agent.Call.ReadFile read_file = 5; */ public org.apache.mesos.v1.agent.Protos.Call.ReadFile.Builder getReadFileBuilder() { bitField0_ |= 0x00000010; onChanged(); return getReadFileFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Call.ReadFile read_file = 5; */ public org.apache.mesos.v1.agent.Protos.Call.ReadFileOrBuilder getReadFileOrBuilder() { if (readFileBuilder_ != null) { return readFileBuilder_.getMessageOrBuilder(); } else { return readFile_; } } /** * optional .mesos.v1.agent.Call.ReadFile read_file = 5; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.ReadFile, org.apache.mesos.v1.agent.Protos.Call.ReadFile.Builder, org.apache.mesos.v1.agent.Protos.Call.ReadFileOrBuilder> getReadFileFieldBuilder() { if (readFileBuilder_ == null) { readFileBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.ReadFile, org.apache.mesos.v1.agent.Protos.Call.ReadFile.Builder, org.apache.mesos.v1.agent.Protos.Call.ReadFileOrBuilder>( getReadFile(), getParentForChildren(), isClean()); readFile_ = null; } return readFileBuilder_; } private org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer launchNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerOrBuilder> launchNestedContainerBuilder_; /** * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6; */ public boolean hasLaunchNestedContainer() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6; */ public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer getLaunchNestedContainer() { if (launchNestedContainerBuilder_ == null) { return launchNestedContainer_; } else { return launchNestedContainerBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6; */ public Builder setLaunchNestedContainer(org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer value) { if (launchNestedContainerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } launchNestedContainer_ = value; onChanged(); } else { launchNestedContainerBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6; */ public Builder setLaunchNestedContainer( org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.Builder builderForValue) { if (launchNestedContainerBuilder_ == null) { launchNestedContainer_ = builderForValue.build(); onChanged(); } else { launchNestedContainerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6; */ public Builder mergeLaunchNestedContainer(org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer value) { if (launchNestedContainerBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && launchNestedContainer_ != org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.getDefaultInstance()) { launchNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.newBuilder(launchNestedContainer_).mergeFrom(value).buildPartial(); } else { launchNestedContainer_ = value; } onChanged(); } else { launchNestedContainerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6; */ public Builder clearLaunchNestedContainer() { if (launchNestedContainerBuilder_ == null) { launchNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.getDefaultInstance(); onChanged(); } else { launchNestedContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6; */ public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.Builder getLaunchNestedContainerBuilder() { bitField0_ |= 0x00000020; onChanged(); return getLaunchNestedContainerFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6; */ public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerOrBuilder getLaunchNestedContainerOrBuilder() { if (launchNestedContainerBuilder_ != null) { return launchNestedContainerBuilder_.getMessageOrBuilder(); } else { return launchNestedContainer_; } } /** * optional .mesos.v1.agent.Call.LaunchNestedContainer launch_nested_container = 6; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerOrBuilder> getLaunchNestedContainerFieldBuilder() { if (launchNestedContainerBuilder_ == null) { launchNestedContainerBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerOrBuilder>( getLaunchNestedContainer(), getParentForChildren(), isClean()); launchNestedContainer_ = null; } return launchNestedContainerBuilder_; } private org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer waitNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer, org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainerOrBuilder> waitNestedContainerBuilder_; /** * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7; */ public boolean hasWaitNestedContainer() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7; */ public org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer getWaitNestedContainer() { if (waitNestedContainerBuilder_ == null) { return waitNestedContainer_; } else { return waitNestedContainerBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7; */ public Builder setWaitNestedContainer(org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer value) { if (waitNestedContainerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } waitNestedContainer_ = value; onChanged(); } else { waitNestedContainerBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7; */ public Builder setWaitNestedContainer( org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.Builder builderForValue) { if (waitNestedContainerBuilder_ == null) { waitNestedContainer_ = builderForValue.build(); onChanged(); } else { waitNestedContainerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7; */ public Builder mergeWaitNestedContainer(org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer value) { if (waitNestedContainerBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && waitNestedContainer_ != org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.getDefaultInstance()) { waitNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.newBuilder(waitNestedContainer_).mergeFrom(value).buildPartial(); } else { waitNestedContainer_ = value; } onChanged(); } else { waitNestedContainerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7; */ public Builder clearWaitNestedContainer() { if (waitNestedContainerBuilder_ == null) { waitNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.getDefaultInstance(); onChanged(); } else { waitNestedContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7; */ public org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.Builder getWaitNestedContainerBuilder() { bitField0_ |= 0x00000040; onChanged(); return getWaitNestedContainerFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7; */ public org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainerOrBuilder getWaitNestedContainerOrBuilder() { if (waitNestedContainerBuilder_ != null) { return waitNestedContainerBuilder_.getMessageOrBuilder(); } else { return waitNestedContainer_; } } /** * optional .mesos.v1.agent.Call.WaitNestedContainer wait_nested_container = 7; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer, org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainerOrBuilder> getWaitNestedContainerFieldBuilder() { if (waitNestedContainerBuilder_ == null) { waitNestedContainerBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer, org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Call.WaitNestedContainerOrBuilder>( getWaitNestedContainer(), getParentForChildren(), isClean()); waitNestedContainer_ = null; } return waitNestedContainerBuilder_; } private org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer killNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer, org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Call.KillNestedContainerOrBuilder> killNestedContainerBuilder_; /** * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8; */ public boolean hasKillNestedContainer() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8; */ public org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer getKillNestedContainer() { if (killNestedContainerBuilder_ == null) { return killNestedContainer_; } else { return killNestedContainerBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8; */ public Builder setKillNestedContainer(org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer value) { if (killNestedContainerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } killNestedContainer_ = value; onChanged(); } else { killNestedContainerBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8; */ public Builder setKillNestedContainer( org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.Builder builderForValue) { if (killNestedContainerBuilder_ == null) { killNestedContainer_ = builderForValue.build(); onChanged(); } else { killNestedContainerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8; */ public Builder mergeKillNestedContainer(org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer value) { if (killNestedContainerBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && killNestedContainer_ != org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.getDefaultInstance()) { killNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.newBuilder(killNestedContainer_).mergeFrom(value).buildPartial(); } else { killNestedContainer_ = value; } onChanged(); } else { killNestedContainerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8; */ public Builder clearKillNestedContainer() { if (killNestedContainerBuilder_ == null) { killNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.getDefaultInstance(); onChanged(); } else { killNestedContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8; */ public org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.Builder getKillNestedContainerBuilder() { bitField0_ |= 0x00000080; onChanged(); return getKillNestedContainerFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8; */ public org.apache.mesos.v1.agent.Protos.Call.KillNestedContainerOrBuilder getKillNestedContainerOrBuilder() { if (killNestedContainerBuilder_ != null) { return killNestedContainerBuilder_.getMessageOrBuilder(); } else { return killNestedContainer_; } } /** * optional .mesos.v1.agent.Call.KillNestedContainer kill_nested_container = 8; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer, org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Call.KillNestedContainerOrBuilder> getKillNestedContainerFieldBuilder() { if (killNestedContainerBuilder_ == null) { killNestedContainerBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer, org.apache.mesos.v1.agent.Protos.Call.KillNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Call.KillNestedContainerOrBuilder>( getKillNestedContainer(), getParentForChildren(), isClean()); killNestedContainer_ = null; } return killNestedContainerBuilder_; } private org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer removeNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer, org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainerOrBuilder> removeNestedContainerBuilder_; /** * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12; */ public boolean hasRemoveNestedContainer() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12; */ public org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer getRemoveNestedContainer() { if (removeNestedContainerBuilder_ == null) { return removeNestedContainer_; } else { return removeNestedContainerBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12; */ public Builder setRemoveNestedContainer(org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer value) { if (removeNestedContainerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } removeNestedContainer_ = value; onChanged(); } else { removeNestedContainerBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12; */ public Builder setRemoveNestedContainer( org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.Builder builderForValue) { if (removeNestedContainerBuilder_ == null) { removeNestedContainer_ = builderForValue.build(); onChanged(); } else { removeNestedContainerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12; */ public Builder mergeRemoveNestedContainer(org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer value) { if (removeNestedContainerBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && removeNestedContainer_ != org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.getDefaultInstance()) { removeNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.newBuilder(removeNestedContainer_).mergeFrom(value).buildPartial(); } else { removeNestedContainer_ = value; } onChanged(); } else { removeNestedContainerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12; */ public Builder clearRemoveNestedContainer() { if (removeNestedContainerBuilder_ == null) { removeNestedContainer_ = org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.getDefaultInstance(); onChanged(); } else { removeNestedContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12; */ public org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.Builder getRemoveNestedContainerBuilder() { bitField0_ |= 0x00000100; onChanged(); return getRemoveNestedContainerFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12; */ public org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainerOrBuilder getRemoveNestedContainerOrBuilder() { if (removeNestedContainerBuilder_ != null) { return removeNestedContainerBuilder_.getMessageOrBuilder(); } else { return removeNestedContainer_; } } /** * optional .mesos.v1.agent.Call.RemoveNestedContainer remove_nested_container = 12; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer, org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainerOrBuilder> getRemoveNestedContainerFieldBuilder() { if (removeNestedContainerBuilder_ == null) { removeNestedContainerBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer, org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Call.RemoveNestedContainerOrBuilder>( getRemoveNestedContainer(), getParentForChildren(), isClean()); removeNestedContainer_ = null; } return removeNestedContainerBuilder_; } private org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession launchNestedContainerSession_ = org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.Builder, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSessionOrBuilder> launchNestedContainerSessionBuilder_; /** * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9; */ public boolean hasLaunchNestedContainerSession() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9; */ public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession getLaunchNestedContainerSession() { if (launchNestedContainerSessionBuilder_ == null) { return launchNestedContainerSession_; } else { return launchNestedContainerSessionBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9; */ public Builder setLaunchNestedContainerSession(org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession value) { if (launchNestedContainerSessionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } launchNestedContainerSession_ = value; onChanged(); } else { launchNestedContainerSessionBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9; */ public Builder setLaunchNestedContainerSession( org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.Builder builderForValue) { if (launchNestedContainerSessionBuilder_ == null) { launchNestedContainerSession_ = builderForValue.build(); onChanged(); } else { launchNestedContainerSessionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9; */ public Builder mergeLaunchNestedContainerSession(org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession value) { if (launchNestedContainerSessionBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && launchNestedContainerSession_ != org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.getDefaultInstance()) { launchNestedContainerSession_ = org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.newBuilder(launchNestedContainerSession_).mergeFrom(value).buildPartial(); } else { launchNestedContainerSession_ = value; } onChanged(); } else { launchNestedContainerSessionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9; */ public Builder clearLaunchNestedContainerSession() { if (launchNestedContainerSessionBuilder_ == null) { launchNestedContainerSession_ = org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.getDefaultInstance(); onChanged(); } else { launchNestedContainerSessionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9; */ public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.Builder getLaunchNestedContainerSessionBuilder() { bitField0_ |= 0x00000200; onChanged(); return getLaunchNestedContainerSessionFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9; */ public org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSessionOrBuilder getLaunchNestedContainerSessionOrBuilder() { if (launchNestedContainerSessionBuilder_ != null) { return launchNestedContainerSessionBuilder_.getMessageOrBuilder(); } else { return launchNestedContainerSession_; } } /** * optional .mesos.v1.agent.Call.LaunchNestedContainerSession launch_nested_container_session = 9; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.Builder, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSessionOrBuilder> getLaunchNestedContainerSessionFieldBuilder() { if (launchNestedContainerSessionBuilder_ == null) { launchNestedContainerSessionBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSession.Builder, org.apache.mesos.v1.agent.Protos.Call.LaunchNestedContainerSessionOrBuilder>( getLaunchNestedContainerSession(), getParentForChildren(), isClean()); launchNestedContainerSession_ = null; } return launchNestedContainerSessionBuilder_; } private org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput attachContainerInput_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput, org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Builder, org.apache.mesos.v1.agent.Protos.Call.AttachContainerInputOrBuilder> attachContainerInputBuilder_; /** * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10; */ public boolean hasAttachContainerInput() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10; */ public org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput getAttachContainerInput() { if (attachContainerInputBuilder_ == null) { return attachContainerInput_; } else { return attachContainerInputBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10; */ public Builder setAttachContainerInput(org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput value) { if (attachContainerInputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attachContainerInput_ = value; onChanged(); } else { attachContainerInputBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10; */ public Builder setAttachContainerInput( org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Builder builderForValue) { if (attachContainerInputBuilder_ == null) { attachContainerInput_ = builderForValue.build(); onChanged(); } else { attachContainerInputBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10; */ public Builder mergeAttachContainerInput(org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput value) { if (attachContainerInputBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && attachContainerInput_ != org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.getDefaultInstance()) { attachContainerInput_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.newBuilder(attachContainerInput_).mergeFrom(value).buildPartial(); } else { attachContainerInput_ = value; } onChanged(); } else { attachContainerInputBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10; */ public Builder clearAttachContainerInput() { if (attachContainerInputBuilder_ == null) { attachContainerInput_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.getDefaultInstance(); onChanged(); } else { attachContainerInputBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10; */ public org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Builder getAttachContainerInputBuilder() { bitField0_ |= 0x00000400; onChanged(); return getAttachContainerInputFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10; */ public org.apache.mesos.v1.agent.Protos.Call.AttachContainerInputOrBuilder getAttachContainerInputOrBuilder() { if (attachContainerInputBuilder_ != null) { return attachContainerInputBuilder_.getMessageOrBuilder(); } else { return attachContainerInput_; } } /** * optional .mesos.v1.agent.Call.AttachContainerInput attach_container_input = 10; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput, org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Builder, org.apache.mesos.v1.agent.Protos.Call.AttachContainerInputOrBuilder> getAttachContainerInputFieldBuilder() { if (attachContainerInputBuilder_ == null) { attachContainerInputBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput, org.apache.mesos.v1.agent.Protos.Call.AttachContainerInput.Builder, org.apache.mesos.v1.agent.Protos.Call.AttachContainerInputOrBuilder>( getAttachContainerInput(), getParentForChildren(), isClean()); attachContainerInput_ = null; } return attachContainerInputBuilder_; } private org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput attachContainerOutput_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput, org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.Builder, org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutputOrBuilder> attachContainerOutputBuilder_; /** * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11; */ public boolean hasAttachContainerOutput() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11; */ public org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput getAttachContainerOutput() { if (attachContainerOutputBuilder_ == null) { return attachContainerOutput_; } else { return attachContainerOutputBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11; */ public Builder setAttachContainerOutput(org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput value) { if (attachContainerOutputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attachContainerOutput_ = value; onChanged(); } else { attachContainerOutputBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11; */ public Builder setAttachContainerOutput( org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.Builder builderForValue) { if (attachContainerOutputBuilder_ == null) { attachContainerOutput_ = builderForValue.build(); onChanged(); } else { attachContainerOutputBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11; */ public Builder mergeAttachContainerOutput(org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput value) { if (attachContainerOutputBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && attachContainerOutput_ != org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.getDefaultInstance()) { attachContainerOutput_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.newBuilder(attachContainerOutput_).mergeFrom(value).buildPartial(); } else { attachContainerOutput_ = value; } onChanged(); } else { attachContainerOutputBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11; */ public Builder clearAttachContainerOutput() { if (attachContainerOutputBuilder_ == null) { attachContainerOutput_ = org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.getDefaultInstance(); onChanged(); } else { attachContainerOutputBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11; */ public org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.Builder getAttachContainerOutputBuilder() { bitField0_ |= 0x00000800; onChanged(); return getAttachContainerOutputFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11; */ public org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutputOrBuilder getAttachContainerOutputOrBuilder() { if (attachContainerOutputBuilder_ != null) { return attachContainerOutputBuilder_.getMessageOrBuilder(); } else { return attachContainerOutput_; } } /** * optional .mesos.v1.agent.Call.AttachContainerOutput attach_container_output = 11; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput, org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.Builder, org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutputOrBuilder> getAttachContainerOutputFieldBuilder() { if (attachContainerOutputBuilder_ == null) { attachContainerOutputBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput, org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutput.Builder, org.apache.mesos.v1.agent.Protos.Call.AttachContainerOutputOrBuilder>( getAttachContainerOutput(), getParentForChildren(), isClean()); attachContainerOutput_ = null; } return attachContainerOutputBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Call) } static { defaultInstance = new Call(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Call) } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.agent.Response.Type type = 1; */ boolean hasType(); /** * optional .mesos.v1.agent.Response.Type type = 1; */ org.apache.mesos.v1.agent.Protos.Response.Type getType(); /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ boolean hasGetHealth(); /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ org.apache.mesos.v1.agent.Protos.Response.GetHealth getGetHealth(); /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ org.apache.mesos.v1.agent.Protos.Response.GetHealthOrBuilder getGetHealthOrBuilder(); /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ boolean hasGetFlags(); /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ org.apache.mesos.v1.agent.Protos.Response.GetFlags getGetFlags(); /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ org.apache.mesos.v1.agent.Protos.Response.GetFlagsOrBuilder getGetFlagsOrBuilder(); /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ boolean hasGetVersion(); /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ org.apache.mesos.v1.agent.Protos.Response.GetVersion getGetVersion(); /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ org.apache.mesos.v1.agent.Protos.Response.GetVersionOrBuilder getGetVersionOrBuilder(); /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ boolean hasGetMetrics(); /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ org.apache.mesos.v1.agent.Protos.Response.GetMetrics getGetMetrics(); /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ org.apache.mesos.v1.agent.Protos.Response.GetMetricsOrBuilder getGetMetricsOrBuilder(); /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ boolean hasGetLoggingLevel(); /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel getGetLoggingLevel(); /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevelOrBuilder getGetLoggingLevelOrBuilder(); /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ boolean hasListFiles(); /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ org.apache.mesos.v1.agent.Protos.Response.ListFiles getListFiles(); /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ org.apache.mesos.v1.agent.Protos.Response.ListFilesOrBuilder getListFilesOrBuilder(); /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ boolean hasReadFile(); /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ org.apache.mesos.v1.agent.Protos.Response.ReadFile getReadFile(); /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ org.apache.mesos.v1.agent.Protos.Response.ReadFileOrBuilder getReadFileOrBuilder(); /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ boolean hasGetState(); /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ org.apache.mesos.v1.agent.Protos.Response.GetState getGetState(); /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ org.apache.mesos.v1.agent.Protos.Response.GetStateOrBuilder getGetStateOrBuilder(); /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ boolean hasGetContainers(); /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ org.apache.mesos.v1.agent.Protos.Response.GetContainers getGetContainers(); /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ org.apache.mesos.v1.agent.Protos.Response.GetContainersOrBuilder getGetContainersOrBuilder(); /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ boolean hasGetFrameworks(); /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ org.apache.mesos.v1.agent.Protos.Response.GetFrameworks getGetFrameworks(); /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ org.apache.mesos.v1.agent.Protos.Response.GetFrameworksOrBuilder getGetFrameworksOrBuilder(); /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ boolean hasGetExecutors(); /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ org.apache.mesos.v1.agent.Protos.Response.GetExecutors getGetExecutors(); /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ org.apache.mesos.v1.agent.Protos.Response.GetExecutorsOrBuilder getGetExecutorsOrBuilder(); /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ boolean hasGetTasks(); /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ org.apache.mesos.v1.agent.Protos.Response.GetTasks getGetTasks(); /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ org.apache.mesos.v1.agent.Protos.Response.GetTasksOrBuilder getGetTasksOrBuilder(); /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ boolean hasGetAgent(); /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ org.apache.mesos.v1.agent.Protos.Response.GetAgent getGetAgent(); /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ org.apache.mesos.v1.agent.Protos.Response.GetAgentOrBuilder getGetAgentOrBuilder(); /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ boolean hasWaitNestedContainer(); /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer getWaitNestedContainer(); /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainerOrBuilder getWaitNestedContainerOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Response} * *
   **
   * Synchronous responses for all calls made to the v1 agent API.
   * 
*/ public static final class Response extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response) ResponseOrBuilder { // Use Response.newBuilder() to construct. private Response(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Response(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Response defaultInstance; public static Response getDefaultInstance() { return defaultInstance; } public Response getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Response( 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.agent.Protos.Response.Type value = org.apache.mesos.v1.agent.Protos.Response.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = value; } break; } case 18: { org.apache.mesos.v1.agent.Protos.Response.GetHealth.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = getHealth_.toBuilder(); } getHealth_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetHealth.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getHealth_); getHealth_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.agent.Protos.Response.GetFlags.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = getFlags_.toBuilder(); } getFlags_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetFlags.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getFlags_); getFlags_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { org.apache.mesos.v1.agent.Protos.Response.GetVersion.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = getVersion_.toBuilder(); } getVersion_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetVersion.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getVersion_); getVersion_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { org.apache.mesos.v1.agent.Protos.Response.GetMetrics.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = getMetrics_.toBuilder(); } getMetrics_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetMetrics.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getMetrics_); getMetrics_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = getLoggingLevel_.toBuilder(); } getLoggingLevel_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getLoggingLevel_); getLoggingLevel_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000020; break; } case 58: { org.apache.mesos.v1.agent.Protos.Response.ListFiles.Builder subBuilder = null; if (((bitField0_ & 0x00000040) == 0x00000040)) { subBuilder = listFiles_.toBuilder(); } listFiles_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.ListFiles.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(listFiles_); listFiles_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000040; break; } case 66: { org.apache.mesos.v1.agent.Protos.Response.ReadFile.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = readFile_.toBuilder(); } readFile_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.ReadFile.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(readFile_); readFile_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 74: { org.apache.mesos.v1.agent.Protos.Response.GetState.Builder subBuilder = null; if (((bitField0_ & 0x00000100) == 0x00000100)) { subBuilder = getState_.toBuilder(); } getState_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetState.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getState_); getState_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000100; break; } case 82: { org.apache.mesos.v1.agent.Protos.Response.GetContainers.Builder subBuilder = null; if (((bitField0_ & 0x00000200) == 0x00000200)) { subBuilder = getContainers_.toBuilder(); } getContainers_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetContainers.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getContainers_); getContainers_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 90: { org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder subBuilder = null; if (((bitField0_ & 0x00000400) == 0x00000400)) { subBuilder = getFrameworks_.toBuilder(); } getFrameworks_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getFrameworks_); getFrameworks_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000400; break; } case 98: { org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder subBuilder = null; if (((bitField0_ & 0x00000800) == 0x00000800)) { subBuilder = getExecutors_.toBuilder(); } getExecutors_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetExecutors.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getExecutors_); getExecutors_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000800; break; } case 106: { org.apache.mesos.v1.agent.Protos.Response.GetTasks.Builder subBuilder = null; if (((bitField0_ & 0x00001000) == 0x00001000)) { subBuilder = getTasks_.toBuilder(); } getTasks_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetTasks.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getTasks_); getTasks_ = subBuilder.buildPartial(); } bitField0_ |= 0x00001000; break; } case 114: { org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.Builder subBuilder = null; if (((bitField0_ & 0x00004000) == 0x00004000)) { subBuilder = waitNestedContainer_.toBuilder(); } waitNestedContainer_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(waitNestedContainer_); waitNestedContainer_ = subBuilder.buildPartial(); } bitField0_ |= 0x00004000; break; } case 122: { org.apache.mesos.v1.agent.Protos.Response.GetAgent.Builder subBuilder = null; if (((bitField0_ & 0x00002000) == 0x00002000)) { subBuilder = getAgent_.toBuilder(); } getAgent_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetAgent.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getAgent_); getAgent_ = subBuilder.buildPartial(); } bitField0_ |= 0x00002000; 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.agent.Protos.internal_static_mesos_v1_agent_Response_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.class, org.apache.mesos.v1.agent.Protos.Response.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Response parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Response(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code mesos.v1.agent.Response.Type} * *
     * Each of the responses of type `FOO` corresponds to `Foo` message below.
     * 
*/ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0, 0), /** * GET_HEALTH = 1; * *
       * See 'GetHealth' below.
       * 
*/ GET_HEALTH(1, 1), /** * GET_FLAGS = 2; * *
       * See 'GetFlags' below.
       * 
*/ GET_FLAGS(2, 2), /** * GET_VERSION = 3; * *
       * See 'GetVersion' below.
       * 
*/ GET_VERSION(3, 3), /** * GET_METRICS = 4; * *
       * See 'GetMetrics' below.
       * 
*/ GET_METRICS(4, 4), /** * GET_LOGGING_LEVEL = 5; * *
       * See 'GetLoggingLevel' below.
       * 
*/ GET_LOGGING_LEVEL(5, 5), /** * LIST_FILES = 6; */ LIST_FILES(6, 6), /** * READ_FILE = 7; * *
       * See 'ReadFile' below.
       * 
*/ READ_FILE(7, 7), /** * GET_STATE = 8; */ GET_STATE(8, 8), /** * GET_CONTAINERS = 9; */ GET_CONTAINERS(9, 9), /** * GET_FRAMEWORKS = 10; * *
       * See 'GetFrameworks' below.
       * 
*/ GET_FRAMEWORKS(10, 10), /** * GET_EXECUTORS = 11; * *
       * See 'GetExecutors' below.
       * 
*/ GET_EXECUTORS(11, 11), /** * GET_TASKS = 12; * *
       * See 'GetTasks' below.
       * 
*/ GET_TASKS(12, 12), /** * GET_AGENT = 14; * *
       * See 'GetAgent' below.
       * 
*/ GET_AGENT(13, 14), /** * WAIT_NESTED_CONTAINER = 13; * *
       * See 'WaitNestedContainer' below.
       * 
*/ WAIT_NESTED_CONTAINER(14, 13), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * GET_HEALTH = 1; * *
       * See 'GetHealth' below.
       * 
*/ public static final int GET_HEALTH_VALUE = 1; /** * GET_FLAGS = 2; * *
       * See 'GetFlags' below.
       * 
*/ public static final int GET_FLAGS_VALUE = 2; /** * GET_VERSION = 3; * *
       * See 'GetVersion' below.
       * 
*/ public static final int GET_VERSION_VALUE = 3; /** * GET_METRICS = 4; * *
       * See 'GetMetrics' below.
       * 
*/ public static final int GET_METRICS_VALUE = 4; /** * GET_LOGGING_LEVEL = 5; * *
       * See 'GetLoggingLevel' below.
       * 
*/ public static final int GET_LOGGING_LEVEL_VALUE = 5; /** * LIST_FILES = 6; */ public static final int LIST_FILES_VALUE = 6; /** * READ_FILE = 7; * *
       * See 'ReadFile' below.
       * 
*/ public static final int READ_FILE_VALUE = 7; /** * GET_STATE = 8; */ public static final int GET_STATE_VALUE = 8; /** * GET_CONTAINERS = 9; */ public static final int GET_CONTAINERS_VALUE = 9; /** * GET_FRAMEWORKS = 10; * *
       * See 'GetFrameworks' below.
       * 
*/ public static final int GET_FRAMEWORKS_VALUE = 10; /** * GET_EXECUTORS = 11; * *
       * See 'GetExecutors' below.
       * 
*/ public static final int GET_EXECUTORS_VALUE = 11; /** * GET_TASKS = 12; * *
       * See 'GetTasks' below.
       * 
*/ public static final int GET_TASKS_VALUE = 12; /** * GET_AGENT = 14; * *
       * See 'GetAgent' below.
       * 
*/ public static final int GET_AGENT_VALUE = 14; /** * WAIT_NESTED_CONTAINER = 13; * *
       * See 'WaitNestedContainer' below.
       * 
*/ public static final int WAIT_NESTED_CONTAINER_VALUE = 13; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 0: return UNKNOWN; case 1: return GET_HEALTH; case 2: return GET_FLAGS; case 3: return GET_VERSION; case 4: return GET_METRICS; case 5: return GET_LOGGING_LEVEL; case 6: return LIST_FILES; case 7: return READ_FILE; case 8: return GET_STATE; case 9: return GET_CONTAINERS; case 10: return GET_FRAMEWORKS; case 11: return GET_EXECUTORS; case 12: return GET_TASKS; case 14: return GET_AGENT; case 13: return WAIT_NESTED_CONTAINER; 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.agent.Protos.Response.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.agent.Response.Type) } public interface GetHealthOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetHealth) com.google.protobuf.MessageOrBuilder { /** * required bool healthy = 1; */ boolean hasHealthy(); /** * required bool healthy = 1; */ boolean getHealthy(); } /** * Protobuf type {@code mesos.v1.agent.Response.GetHealth} * *
     * `healthy` would be true if the agent is healthy. Delayed responses are also
     * indicative of the poor health of the agent.
     * 
*/ public static final class GetHealth extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetHealth) GetHealthOrBuilder { // Use GetHealth.newBuilder() to construct. private GetHealth(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetHealth(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetHealth defaultInstance; public static GetHealth getDefaultInstance() { return defaultInstance; } public GetHealth getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetHealth( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; healthy_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetHealth_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetHealth_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetHealth.class, org.apache.mesos.v1.agent.Protos.Response.GetHealth.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetHealth parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetHealth(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int HEALTHY_FIELD_NUMBER = 1; private boolean healthy_; /** * required bool healthy = 1; */ public boolean hasHealthy() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bool healthy = 1; */ public boolean getHealthy() { return healthy_; } private void initFields() { healthy_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasHealthy()) { 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.writeBool(1, healthy_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, healthy_); } 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.agent.Protos.Response.GetHealth parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetHealth 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.agent.Protos.Response.GetHealth parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetHealth parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetHealth parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetHealth 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.agent.Protos.Response.GetHealth parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetHealth 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.agent.Protos.Response.GetHealth parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetHealth 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.agent.Protos.Response.GetHealth 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.agent.Response.GetHealth} * *
       * `healthy` would be true if the agent is healthy. Delayed responses are also
       * indicative of the poor health of the agent.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetHealth) org.apache.mesos.v1.agent.Protos.Response.GetHealthOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetHealth_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetHealth_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetHealth.class, org.apache.mesos.v1.agent.Protos.Response.GetHealth.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetHealth.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(); healthy_ = false; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetHealth_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetHealth getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetHealth.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetHealth build() { org.apache.mesos.v1.agent.Protos.Response.GetHealth result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetHealth buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetHealth result = new org.apache.mesos.v1.agent.Protos.Response.GetHealth(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.healthy_ = healthy_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetHealth) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetHealth)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetHealth other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetHealth.getDefaultInstance()) return this; if (other.hasHealthy()) { setHealthy(other.getHealthy()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasHealthy()) { 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.agent.Protos.Response.GetHealth parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetHealth) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean healthy_ ; /** * required bool healthy = 1; */ public boolean hasHealthy() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required bool healthy = 1; */ public boolean getHealthy() { return healthy_; } /** * required bool healthy = 1; */ public Builder setHealthy(boolean value) { bitField0_ |= 0x00000001; healthy_ = value; onChanged(); return this; } /** * required bool healthy = 1; */ public Builder clearHealthy() { bitField0_ = (bitField0_ & ~0x00000001); healthy_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetHealth) } static { defaultInstance = new GetHealth(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetHealth) } public interface GetFlagsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetFlags) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.Flag flags = 1; */ java.util.List getFlagsList(); /** * repeated .mesos.v1.Flag flags = 1; */ org.apache.mesos.v1.Protos.Flag getFlags(int index); /** * repeated .mesos.v1.Flag flags = 1; */ int getFlagsCount(); /** * repeated .mesos.v1.Flag flags = 1; */ java.util.List getFlagsOrBuilderList(); /** * repeated .mesos.v1.Flag flags = 1; */ org.apache.mesos.v1.Protos.FlagOrBuilder getFlagsOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.agent.Response.GetFlags} * *
     * Contains the flag configuration of the agent.
     * 
*/ public static final class GetFlags extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetFlags) GetFlagsOrBuilder { // Use GetFlags.newBuilder() to construct. private GetFlags(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetFlags(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetFlags defaultInstance; public static GetFlags getDefaultInstance() { return defaultInstance; } public GetFlags getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetFlags( 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)) { flags_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } flags_.add(input.readMessage(org.apache.mesos.v1.Protos.Flag.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)) { flags_ = java.util.Collections.unmodifiableList(flags_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetFlags_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetFlags_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetFlags.class, org.apache.mesos.v1.agent.Protos.Response.GetFlags.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetFlags parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetFlags(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int FLAGS_FIELD_NUMBER = 1; private java.util.List flags_; /** * repeated .mesos.v1.Flag flags = 1; */ public java.util.List getFlagsList() { return flags_; } /** * repeated .mesos.v1.Flag flags = 1; */ public java.util.List getFlagsOrBuilderList() { return flags_; } /** * repeated .mesos.v1.Flag flags = 1; */ public int getFlagsCount() { return flags_.size(); } /** * repeated .mesos.v1.Flag flags = 1; */ public org.apache.mesos.v1.Protos.Flag getFlags(int index) { return flags_.get(index); } /** * repeated .mesos.v1.Flag flags = 1; */ public org.apache.mesos.v1.Protos.FlagOrBuilder getFlagsOrBuilder( int index) { return flags_.get(index); } private void initFields() { flags_ = 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 < getFlagsCount(); i++) { if (!getFlags(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 < flags_.size(); i++) { output.writeMessage(1, flags_.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 < flags_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, flags_.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.agent.Protos.Response.GetFlags parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetFlags 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.agent.Protos.Response.GetFlags parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetFlags parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetFlags parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetFlags 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.agent.Protos.Response.GetFlags parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetFlags 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.agent.Protos.Response.GetFlags parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetFlags 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.agent.Protos.Response.GetFlags 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.agent.Response.GetFlags} * *
       * Contains the flag configuration of the agent.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetFlags) org.apache.mesos.v1.agent.Protos.Response.GetFlagsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetFlags_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetFlags_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetFlags.class, org.apache.mesos.v1.agent.Protos.Response.GetFlags.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetFlags.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFlagsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (flagsBuilder_ == null) { flags_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { flagsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetFlags_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetFlags getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetFlags.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetFlags build() { org.apache.mesos.v1.agent.Protos.Response.GetFlags result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetFlags buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetFlags result = new org.apache.mesos.v1.agent.Protos.Response.GetFlags(this); int from_bitField0_ = bitField0_; if (flagsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { flags_ = java.util.Collections.unmodifiableList(flags_); bitField0_ = (bitField0_ & ~0x00000001); } result.flags_ = flags_; } else { result.flags_ = flagsBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetFlags) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetFlags)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetFlags other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetFlags.getDefaultInstance()) return this; if (flagsBuilder_ == null) { if (!other.flags_.isEmpty()) { if (flags_.isEmpty()) { flags_ = other.flags_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFlagsIsMutable(); flags_.addAll(other.flags_); } onChanged(); } } else { if (!other.flags_.isEmpty()) { if (flagsBuilder_.isEmpty()) { flagsBuilder_.dispose(); flagsBuilder_ = null; flags_ = other.flags_; bitField0_ = (bitField0_ & ~0x00000001); flagsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFlagsFieldBuilder() : null; } else { flagsBuilder_.addAllMessages(other.flags_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getFlagsCount(); i++) { if (!getFlags(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.agent.Protos.Response.GetFlags parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetFlags) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List flags_ = java.util.Collections.emptyList(); private void ensureFlagsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { flags_ = new java.util.ArrayList(flags_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Flag, org.apache.mesos.v1.Protos.Flag.Builder, org.apache.mesos.v1.Protos.FlagOrBuilder> flagsBuilder_; /** * repeated .mesos.v1.Flag flags = 1; */ public java.util.List getFlagsList() { if (flagsBuilder_ == null) { return java.util.Collections.unmodifiableList(flags_); } else { return flagsBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Flag flags = 1; */ public int getFlagsCount() { if (flagsBuilder_ == null) { return flags_.size(); } else { return flagsBuilder_.getCount(); } } /** * repeated .mesos.v1.Flag flags = 1; */ public org.apache.mesos.v1.Protos.Flag getFlags(int index) { if (flagsBuilder_ == null) { return flags_.get(index); } else { return flagsBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Flag flags = 1; */ public Builder setFlags( int index, org.apache.mesos.v1.Protos.Flag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFlagsIsMutable(); flags_.set(index, value); onChanged(); } else { flagsBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Flag flags = 1; */ public Builder setFlags( int index, org.apache.mesos.v1.Protos.Flag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.set(index, builderForValue.build()); onChanged(); } else { flagsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Flag flags = 1; */ public Builder addFlags(org.apache.mesos.v1.Protos.Flag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFlagsIsMutable(); flags_.add(value); onChanged(); } else { flagsBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Flag flags = 1; */ public Builder addFlags( int index, org.apache.mesos.v1.Protos.Flag value) { if (flagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFlagsIsMutable(); flags_.add(index, value); onChanged(); } else { flagsBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Flag flags = 1; */ public Builder addFlags( org.apache.mesos.v1.Protos.Flag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(builderForValue.build()); onChanged(); } else { flagsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Flag flags = 1; */ public Builder addFlags( int index, org.apache.mesos.v1.Protos.Flag.Builder builderForValue) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.add(index, builderForValue.build()); onChanged(); } else { flagsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Flag flags = 1; */ public Builder addAllFlags( java.lang.Iterable values) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, flags_); onChanged(); } else { flagsBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Flag flags = 1; */ public Builder clearFlags() { if (flagsBuilder_ == null) { flags_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { flagsBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Flag flags = 1; */ public Builder removeFlags(int index) { if (flagsBuilder_ == null) { ensureFlagsIsMutable(); flags_.remove(index); onChanged(); } else { flagsBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Flag flags = 1; */ public org.apache.mesos.v1.Protos.Flag.Builder getFlagsBuilder( int index) { return getFlagsFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Flag flags = 1; */ public org.apache.mesos.v1.Protos.FlagOrBuilder getFlagsOrBuilder( int index) { if (flagsBuilder_ == null) { return flags_.get(index); } else { return flagsBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Flag flags = 1; */ public java.util.List getFlagsOrBuilderList() { if (flagsBuilder_ != null) { return flagsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(flags_); } } /** * repeated .mesos.v1.Flag flags = 1; */ public org.apache.mesos.v1.Protos.Flag.Builder addFlagsBuilder() { return getFlagsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Flag.getDefaultInstance()); } /** * repeated .mesos.v1.Flag flags = 1; */ public org.apache.mesos.v1.Protos.Flag.Builder addFlagsBuilder( int index) { return getFlagsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Flag.getDefaultInstance()); } /** * repeated .mesos.v1.Flag flags = 1; */ public java.util.List getFlagsBuilderList() { return getFlagsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Flag, org.apache.mesos.v1.Protos.Flag.Builder, org.apache.mesos.v1.Protos.FlagOrBuilder> getFlagsFieldBuilder() { if (flagsBuilder_ == null) { flagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Flag, org.apache.mesos.v1.Protos.Flag.Builder, org.apache.mesos.v1.Protos.FlagOrBuilder>( flags_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); flags_ = null; } return flagsBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetFlags) } static { defaultInstance = new GetFlags(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetFlags) } public interface GetVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetVersion) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.VersionInfo version_info = 1; */ boolean hasVersionInfo(); /** * required .mesos.v1.VersionInfo version_info = 1; */ org.apache.mesos.v1.Protos.VersionInfo getVersionInfo(); /** * required .mesos.v1.VersionInfo version_info = 1; */ org.apache.mesos.v1.Protos.VersionInfoOrBuilder getVersionInfoOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Response.GetVersion} * *
     * Contains the version information of the agent.
     * 
*/ public static final class GetVersion extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetVersion) GetVersionOrBuilder { // Use GetVersion.newBuilder() to construct. private GetVersion(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetVersion(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetVersion defaultInstance; public static GetVersion getDefaultInstance() { return defaultInstance; } public GetVersion getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetVersion( 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.VersionInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = versionInfo_.toBuilder(); } versionInfo_ = input.readMessage(org.apache.mesos.v1.Protos.VersionInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(versionInfo_); versionInfo_ = 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.agent.Protos.internal_static_mesos_v1_agent_Response_GetVersion_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetVersion.class, org.apache.mesos.v1.agent.Protos.Response.GetVersion.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetVersion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetVersion(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int VERSION_INFO_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.VersionInfo versionInfo_; /** * required .mesos.v1.VersionInfo version_info = 1; */ public boolean hasVersionInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.VersionInfo version_info = 1; */ public org.apache.mesos.v1.Protos.VersionInfo getVersionInfo() { return versionInfo_; } /** * required .mesos.v1.VersionInfo version_info = 1; */ public org.apache.mesos.v1.Protos.VersionInfoOrBuilder getVersionInfoOrBuilder() { return versionInfo_; } private void initFields() { versionInfo_ = org.apache.mesos.v1.Protos.VersionInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasVersionInfo()) { memoizedIsInitialized = 0; return false; } if (!getVersionInfo().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, versionInfo_); } 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, versionInfo_); } 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.agent.Protos.Response.GetVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetVersion 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.agent.Protos.Response.GetVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetVersion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetVersion parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetVersion 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.agent.Protos.Response.GetVersion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetVersion 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.agent.Protos.Response.GetVersion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetVersion 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.agent.Protos.Response.GetVersion 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.agent.Response.GetVersion} * *
       * Contains the version information of the agent.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetVersion) org.apache.mesos.v1.agent.Protos.Response.GetVersionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetVersion_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetVersion.class, org.apache.mesos.v1.agent.Protos.Response.GetVersion.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getVersionInfoFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (versionInfoBuilder_ == null) { versionInfo_ = org.apache.mesos.v1.Protos.VersionInfo.getDefaultInstance(); } else { versionInfoBuilder_.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.agent.Protos.internal_static_mesos_v1_agent_Response_GetVersion_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetVersion getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetVersion.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetVersion build() { org.apache.mesos.v1.agent.Protos.Response.GetVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetVersion buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetVersion result = new org.apache.mesos.v1.agent.Protos.Response.GetVersion(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (versionInfoBuilder_ == null) { result.versionInfo_ = versionInfo_; } else { result.versionInfo_ = versionInfoBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetVersion) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetVersion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetVersion other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetVersion.getDefaultInstance()) return this; if (other.hasVersionInfo()) { mergeVersionInfo(other.getVersionInfo()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasVersionInfo()) { return false; } if (!getVersionInfo().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.agent.Protos.Response.GetVersion parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetVersion) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.VersionInfo versionInfo_ = org.apache.mesos.v1.Protos.VersionInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.VersionInfo, org.apache.mesos.v1.Protos.VersionInfo.Builder, org.apache.mesos.v1.Protos.VersionInfoOrBuilder> versionInfoBuilder_; /** * required .mesos.v1.VersionInfo version_info = 1; */ public boolean hasVersionInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.VersionInfo version_info = 1; */ public org.apache.mesos.v1.Protos.VersionInfo getVersionInfo() { if (versionInfoBuilder_ == null) { return versionInfo_; } else { return versionInfoBuilder_.getMessage(); } } /** * required .mesos.v1.VersionInfo version_info = 1; */ public Builder setVersionInfo(org.apache.mesos.v1.Protos.VersionInfo value) { if (versionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } versionInfo_ = value; onChanged(); } else { versionInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.VersionInfo version_info = 1; */ public Builder setVersionInfo( org.apache.mesos.v1.Protos.VersionInfo.Builder builderForValue) { if (versionInfoBuilder_ == null) { versionInfo_ = builderForValue.build(); onChanged(); } else { versionInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.VersionInfo version_info = 1; */ public Builder mergeVersionInfo(org.apache.mesos.v1.Protos.VersionInfo value) { if (versionInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && versionInfo_ != org.apache.mesos.v1.Protos.VersionInfo.getDefaultInstance()) { versionInfo_ = org.apache.mesos.v1.Protos.VersionInfo.newBuilder(versionInfo_).mergeFrom(value).buildPartial(); } else { versionInfo_ = value; } onChanged(); } else { versionInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.VersionInfo version_info = 1; */ public Builder clearVersionInfo() { if (versionInfoBuilder_ == null) { versionInfo_ = org.apache.mesos.v1.Protos.VersionInfo.getDefaultInstance(); onChanged(); } else { versionInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.VersionInfo version_info = 1; */ public org.apache.mesos.v1.Protos.VersionInfo.Builder getVersionInfoBuilder() { bitField0_ |= 0x00000001; onChanged(); return getVersionInfoFieldBuilder().getBuilder(); } /** * required .mesos.v1.VersionInfo version_info = 1; */ public org.apache.mesos.v1.Protos.VersionInfoOrBuilder getVersionInfoOrBuilder() { if (versionInfoBuilder_ != null) { return versionInfoBuilder_.getMessageOrBuilder(); } else { return versionInfo_; } } /** * required .mesos.v1.VersionInfo version_info = 1; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.VersionInfo, org.apache.mesos.v1.Protos.VersionInfo.Builder, org.apache.mesos.v1.Protos.VersionInfoOrBuilder> getVersionInfoFieldBuilder() { if (versionInfoBuilder_ == null) { versionInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.VersionInfo, org.apache.mesos.v1.Protos.VersionInfo.Builder, org.apache.mesos.v1.Protos.VersionInfoOrBuilder>( getVersionInfo(), getParentForChildren(), isClean()); versionInfo_ = null; } return versionInfoBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetVersion) } static { defaultInstance = new GetVersion(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetVersion) } public interface GetMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetMetrics) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.Metric metrics = 1; */ java.util.List getMetricsList(); /** * repeated .mesos.v1.Metric metrics = 1; */ org.apache.mesos.v1.Protos.Metric getMetrics(int index); /** * repeated .mesos.v1.Metric metrics = 1; */ int getMetricsCount(); /** * repeated .mesos.v1.Metric metrics = 1; */ java.util.List getMetricsOrBuilderList(); /** * repeated .mesos.v1.Metric metrics = 1; */ org.apache.mesos.v1.Protos.MetricOrBuilder getMetricsOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.agent.Response.GetMetrics} * *
     * Contains a snapshot of the current metrics.
     * 
*/ public static final class GetMetrics extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetMetrics) GetMetricsOrBuilder { // Use GetMetrics.newBuilder() to construct. private GetMetrics(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetMetrics(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetMetrics defaultInstance; public static GetMetrics getDefaultInstance() { return defaultInstance; } public GetMetrics getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetMetrics( 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)) { metrics_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } metrics_.add(input.readMessage(org.apache.mesos.v1.Protos.Metric.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)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetMetrics_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetMetrics.class, org.apache.mesos.v1.agent.Protos.Response.GetMetrics.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetMetrics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetMetrics(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int METRICS_FIELD_NUMBER = 1; private java.util.List metrics_; /** * repeated .mesos.v1.Metric metrics = 1; */ public java.util.List getMetricsList() { return metrics_; } /** * repeated .mesos.v1.Metric metrics = 1; */ public java.util.List getMetricsOrBuilderList() { return metrics_; } /** * repeated .mesos.v1.Metric metrics = 1; */ public int getMetricsCount() { return metrics_.size(); } /** * repeated .mesos.v1.Metric metrics = 1; */ public org.apache.mesos.v1.Protos.Metric getMetrics(int index) { return metrics_.get(index); } /** * repeated .mesos.v1.Metric metrics = 1; */ public org.apache.mesos.v1.Protos.MetricOrBuilder getMetricsOrBuilder( int index) { return metrics_.get(index); } private void initFields() { metrics_ = 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 < getMetricsCount(); i++) { if (!getMetrics(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 < metrics_.size(); i++) { output.writeMessage(1, metrics_.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 < metrics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, metrics_.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.agent.Protos.Response.GetMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetMetrics 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.agent.Protos.Response.GetMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetMetrics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetMetrics parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetMetrics 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.agent.Protos.Response.GetMetrics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetMetrics 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.agent.Protos.Response.GetMetrics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetMetrics 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.agent.Protos.Response.GetMetrics 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.agent.Response.GetMetrics} * *
       * Contains a snapshot of the current metrics.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetMetrics) org.apache.mesos.v1.agent.Protos.Response.GetMetricsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetMetrics_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetMetrics.class, org.apache.mesos.v1.agent.Protos.Response.GetMetrics.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetMetrics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getMetricsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { metricsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetMetrics_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetMetrics getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetMetrics.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetMetrics build() { org.apache.mesos.v1.agent.Protos.Response.GetMetrics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetMetrics buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetMetrics result = new org.apache.mesos.v1.agent.Protos.Response.GetMetrics(this); int from_bitField0_ = bitField0_; if (metricsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); bitField0_ = (bitField0_ & ~0x00000001); } result.metrics_ = metrics_; } else { result.metrics_ = metricsBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetMetrics) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetMetrics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetMetrics other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetMetrics.getDefaultInstance()) return this; if (metricsBuilder_ == null) { if (!other.metrics_.isEmpty()) { if (metrics_.isEmpty()) { metrics_ = other.metrics_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMetricsIsMutable(); metrics_.addAll(other.metrics_); } onChanged(); } } else { if (!other.metrics_.isEmpty()) { if (metricsBuilder_.isEmpty()) { metricsBuilder_.dispose(); metricsBuilder_ = null; metrics_ = other.metrics_; bitField0_ = (bitField0_ & ~0x00000001); metricsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getMetricsFieldBuilder() : null; } else { metricsBuilder_.addAllMessages(other.metrics_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getMetricsCount(); i++) { if (!getMetrics(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.agent.Protos.Response.GetMetrics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetMetrics) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List metrics_ = java.util.Collections.emptyList(); private void ensureMetricsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { metrics_ = new java.util.ArrayList(metrics_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Metric, org.apache.mesos.v1.Protos.Metric.Builder, org.apache.mesos.v1.Protos.MetricOrBuilder> metricsBuilder_; /** * repeated .mesos.v1.Metric metrics = 1; */ public java.util.List getMetricsList() { if (metricsBuilder_ == null) { return java.util.Collections.unmodifiableList(metrics_); } else { return metricsBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Metric metrics = 1; */ public int getMetricsCount() { if (metricsBuilder_ == null) { return metrics_.size(); } else { return metricsBuilder_.getCount(); } } /** * repeated .mesos.v1.Metric metrics = 1; */ public org.apache.mesos.v1.Protos.Metric getMetrics(int index) { if (metricsBuilder_ == null) { return metrics_.get(index); } else { return metricsBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Metric metrics = 1; */ public Builder setMetrics( int index, org.apache.mesos.v1.Protos.Metric value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.set(index, value); onChanged(); } else { metricsBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Metric metrics = 1; */ public Builder setMetrics( int index, org.apache.mesos.v1.Protos.Metric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.set(index, builderForValue.build()); onChanged(); } else { metricsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Metric metrics = 1; */ public Builder addMetrics(org.apache.mesos.v1.Protos.Metric value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.add(value); onChanged(); } else { metricsBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Metric metrics = 1; */ public Builder addMetrics( int index, org.apache.mesos.v1.Protos.Metric value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricsIsMutable(); metrics_.add(index, value); onChanged(); } else { metricsBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Metric metrics = 1; */ public Builder addMetrics( org.apache.mesos.v1.Protos.Metric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(builderForValue.build()); onChanged(); } else { metricsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Metric metrics = 1; */ public Builder addMetrics( int index, org.apache.mesos.v1.Protos.Metric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(index, builderForValue.build()); onChanged(); } else { metricsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Metric metrics = 1; */ public Builder addAllMetrics( java.lang.Iterable values) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, metrics_); onChanged(); } else { metricsBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Metric metrics = 1; */ public Builder clearMetrics() { if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { metricsBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Metric metrics = 1; */ public Builder removeMetrics(int index) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.remove(index); onChanged(); } else { metricsBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Metric metrics = 1; */ public org.apache.mesos.v1.Protos.Metric.Builder getMetricsBuilder( int index) { return getMetricsFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Metric metrics = 1; */ public org.apache.mesos.v1.Protos.MetricOrBuilder getMetricsOrBuilder( int index) { if (metricsBuilder_ == null) { return metrics_.get(index); } else { return metricsBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Metric metrics = 1; */ public java.util.List getMetricsOrBuilderList() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(metrics_); } } /** * repeated .mesos.v1.Metric metrics = 1; */ public org.apache.mesos.v1.Protos.Metric.Builder addMetricsBuilder() { return getMetricsFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Metric.getDefaultInstance()); } /** * repeated .mesos.v1.Metric metrics = 1; */ public org.apache.mesos.v1.Protos.Metric.Builder addMetricsBuilder( int index) { return getMetricsFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Metric.getDefaultInstance()); } /** * repeated .mesos.v1.Metric metrics = 1; */ public java.util.List getMetricsBuilderList() { return getMetricsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Metric, org.apache.mesos.v1.Protos.Metric.Builder, org.apache.mesos.v1.Protos.MetricOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Metric, org.apache.mesos.v1.Protos.Metric.Builder, org.apache.mesos.v1.Protos.MetricOrBuilder>( metrics_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetMetrics) } static { defaultInstance = new GetMetrics(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetMetrics) } public interface GetLoggingLevelOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetLoggingLevel) com.google.protobuf.MessageOrBuilder { /** * required uint32 level = 1; */ boolean hasLevel(); /** * required uint32 level = 1; */ int getLevel(); } /** * Protobuf type {@code mesos.v1.agent.Response.GetLoggingLevel} * *
     * Contains the logging level of the agent.
     * 
*/ public static final class GetLoggingLevel extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetLoggingLevel) GetLoggingLevelOrBuilder { // Use GetLoggingLevel.newBuilder() to construct. private GetLoggingLevel(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetLoggingLevel(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetLoggingLevel defaultInstance; public static GetLoggingLevel getDefaultInstance() { return defaultInstance; } public GetLoggingLevel getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetLoggingLevel( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; level_ = input.readUInt32(); 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.agent.Protos.internal_static_mesos_v1_agent_Response_GetLoggingLevel_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetLoggingLevel_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.class, org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetLoggingLevel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetLoggingLevel(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int LEVEL_FIELD_NUMBER = 1; private int level_; /** * required uint32 level = 1; */ public boolean hasLevel() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 level = 1; */ public int getLevel() { return level_; } private void initFields() { level_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasLevel()) { 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.writeUInt32(1, level_); } 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 .computeUInt32Size(1, level_); } 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.agent.Protos.Response.GetLoggingLevel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel 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.agent.Protos.Response.GetLoggingLevel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel 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.agent.Protos.Response.GetLoggingLevel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel 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.agent.Protos.Response.GetLoggingLevel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel 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.agent.Protos.Response.GetLoggingLevel 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.agent.Response.GetLoggingLevel} * *
       * Contains the logging level of the agent.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetLoggingLevel) org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetLoggingLevel_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetLoggingLevel_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.class, org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.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(); level_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetLoggingLevel_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel build() { org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel result = new org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.level_ = level_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.getDefaultInstance()) return this; if (other.hasLevel()) { setLevel(other.getLevel()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasLevel()) { 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.agent.Protos.Response.GetLoggingLevel parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int level_ ; /** * required uint32 level = 1; */ public boolean hasLevel() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 level = 1; */ public int getLevel() { return level_; } /** * required uint32 level = 1; */ public Builder setLevel(int value) { bitField0_ |= 0x00000001; level_ = value; onChanged(); return this; } /** * required uint32 level = 1; */ public Builder clearLevel() { bitField0_ = (bitField0_ & ~0x00000001); level_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetLoggingLevel) } static { defaultInstance = new GetLoggingLevel(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetLoggingLevel) } public interface ListFilesOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.ListFiles) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.FileInfo file_infos = 1; */ java.util.List getFileInfosList(); /** * repeated .mesos.v1.FileInfo file_infos = 1; */ org.apache.mesos.v1.Protos.FileInfo getFileInfos(int index); /** * repeated .mesos.v1.FileInfo file_infos = 1; */ int getFileInfosCount(); /** * repeated .mesos.v1.FileInfo file_infos = 1; */ java.util.List getFileInfosOrBuilderList(); /** * repeated .mesos.v1.FileInfo file_infos = 1; */ org.apache.mesos.v1.Protos.FileInfoOrBuilder getFileInfosOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.agent.Response.ListFiles} * *
     * Contains the file listing(similar to `ls -l`) for a directory.
     * 
*/ public static final class ListFiles extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.ListFiles) ListFilesOrBuilder { // Use ListFiles.newBuilder() to construct. private ListFiles(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ListFiles(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ListFiles defaultInstance; public static ListFiles getDefaultInstance() { return defaultInstance; } public ListFiles getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ListFiles( 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)) { fileInfos_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } fileInfos_.add(input.readMessage(org.apache.mesos.v1.Protos.FileInfo.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)) { fileInfos_ = java.util.Collections.unmodifiableList(fileInfos_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_ListFiles_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_ListFiles_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.ListFiles.class, org.apache.mesos.v1.agent.Protos.Response.ListFiles.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ListFiles parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListFiles(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int FILE_INFOS_FIELD_NUMBER = 1; private java.util.List fileInfos_; /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public java.util.List getFileInfosList() { return fileInfos_; } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public java.util.List getFileInfosOrBuilderList() { return fileInfos_; } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public int getFileInfosCount() { return fileInfos_.size(); } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public org.apache.mesos.v1.Protos.FileInfo getFileInfos(int index) { return fileInfos_.get(index); } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public org.apache.mesos.v1.Protos.FileInfoOrBuilder getFileInfosOrBuilder( int index) { return fileInfos_.get(index); } private void initFields() { fileInfos_ = 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 < getFileInfosCount(); i++) { if (!getFileInfos(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 < fileInfos_.size(); i++) { output.writeMessage(1, fileInfos_.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 < fileInfos_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, fileInfos_.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.agent.Protos.Response.ListFiles parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.ListFiles 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.agent.Protos.Response.ListFiles parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.ListFiles parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.ListFiles parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.ListFiles 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.agent.Protos.Response.ListFiles parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.ListFiles 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.agent.Protos.Response.ListFiles parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.ListFiles 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.agent.Protos.Response.ListFiles 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.agent.Response.ListFiles} * *
       * Contains the file listing(similar to `ls -l`) for a directory.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.ListFiles) org.apache.mesos.v1.agent.Protos.Response.ListFilesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_ListFiles_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_ListFiles_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.ListFiles.class, org.apache.mesos.v1.agent.Protos.Response.ListFiles.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.ListFiles.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFileInfosFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (fileInfosBuilder_ == null) { fileInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { fileInfosBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_ListFiles_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.ListFiles getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.ListFiles.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.ListFiles build() { org.apache.mesos.v1.agent.Protos.Response.ListFiles result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.ListFiles buildPartial() { org.apache.mesos.v1.agent.Protos.Response.ListFiles result = new org.apache.mesos.v1.agent.Protos.Response.ListFiles(this); int from_bitField0_ = bitField0_; if (fileInfosBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { fileInfos_ = java.util.Collections.unmodifiableList(fileInfos_); bitField0_ = (bitField0_ & ~0x00000001); } result.fileInfos_ = fileInfos_; } else { result.fileInfos_ = fileInfosBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.ListFiles) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.ListFiles)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.ListFiles other) { if (other == org.apache.mesos.v1.agent.Protos.Response.ListFiles.getDefaultInstance()) return this; if (fileInfosBuilder_ == null) { if (!other.fileInfos_.isEmpty()) { if (fileInfos_.isEmpty()) { fileInfos_ = other.fileInfos_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFileInfosIsMutable(); fileInfos_.addAll(other.fileInfos_); } onChanged(); } } else { if (!other.fileInfos_.isEmpty()) { if (fileInfosBuilder_.isEmpty()) { fileInfosBuilder_.dispose(); fileInfosBuilder_ = null; fileInfos_ = other.fileInfos_; bitField0_ = (bitField0_ & ~0x00000001); fileInfosBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFileInfosFieldBuilder() : null; } else { fileInfosBuilder_.addAllMessages(other.fileInfos_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getFileInfosCount(); i++) { if (!getFileInfos(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.agent.Protos.Response.ListFiles parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.ListFiles) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List fileInfos_ = java.util.Collections.emptyList(); private void ensureFileInfosIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { fileInfos_ = new java.util.ArrayList(fileInfos_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.FileInfo, org.apache.mesos.v1.Protos.FileInfo.Builder, org.apache.mesos.v1.Protos.FileInfoOrBuilder> fileInfosBuilder_; /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public java.util.List getFileInfosList() { if (fileInfosBuilder_ == null) { return java.util.Collections.unmodifiableList(fileInfos_); } else { return fileInfosBuilder_.getMessageList(); } } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public int getFileInfosCount() { if (fileInfosBuilder_ == null) { return fileInfos_.size(); } else { return fileInfosBuilder_.getCount(); } } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public org.apache.mesos.v1.Protos.FileInfo getFileInfos(int index) { if (fileInfosBuilder_ == null) { return fileInfos_.get(index); } else { return fileInfosBuilder_.getMessage(index); } } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public Builder setFileInfos( int index, org.apache.mesos.v1.Protos.FileInfo value) { if (fileInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFileInfosIsMutable(); fileInfos_.set(index, value); onChanged(); } else { fileInfosBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public Builder setFileInfos( int index, org.apache.mesos.v1.Protos.FileInfo.Builder builderForValue) { if (fileInfosBuilder_ == null) { ensureFileInfosIsMutable(); fileInfos_.set(index, builderForValue.build()); onChanged(); } else { fileInfosBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public Builder addFileInfos(org.apache.mesos.v1.Protos.FileInfo value) { if (fileInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFileInfosIsMutable(); fileInfos_.add(value); onChanged(); } else { fileInfosBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public Builder addFileInfos( int index, org.apache.mesos.v1.Protos.FileInfo value) { if (fileInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFileInfosIsMutable(); fileInfos_.add(index, value); onChanged(); } else { fileInfosBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public Builder addFileInfos( org.apache.mesos.v1.Protos.FileInfo.Builder builderForValue) { if (fileInfosBuilder_ == null) { ensureFileInfosIsMutable(); fileInfos_.add(builderForValue.build()); onChanged(); } else { fileInfosBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public Builder addFileInfos( int index, org.apache.mesos.v1.Protos.FileInfo.Builder builderForValue) { if (fileInfosBuilder_ == null) { ensureFileInfosIsMutable(); fileInfos_.add(index, builderForValue.build()); onChanged(); } else { fileInfosBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public Builder addAllFileInfos( java.lang.Iterable values) { if (fileInfosBuilder_ == null) { ensureFileInfosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fileInfos_); onChanged(); } else { fileInfosBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public Builder clearFileInfos() { if (fileInfosBuilder_ == null) { fileInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fileInfosBuilder_.clear(); } return this; } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public Builder removeFileInfos(int index) { if (fileInfosBuilder_ == null) { ensureFileInfosIsMutable(); fileInfos_.remove(index); onChanged(); } else { fileInfosBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public org.apache.mesos.v1.Protos.FileInfo.Builder getFileInfosBuilder( int index) { return getFileInfosFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public org.apache.mesos.v1.Protos.FileInfoOrBuilder getFileInfosOrBuilder( int index) { if (fileInfosBuilder_ == null) { return fileInfos_.get(index); } else { return fileInfosBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public java.util.List getFileInfosOrBuilderList() { if (fileInfosBuilder_ != null) { return fileInfosBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fileInfos_); } } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public org.apache.mesos.v1.Protos.FileInfo.Builder addFileInfosBuilder() { return getFileInfosFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.FileInfo.getDefaultInstance()); } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public org.apache.mesos.v1.Protos.FileInfo.Builder addFileInfosBuilder( int index) { return getFileInfosFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.FileInfo.getDefaultInstance()); } /** * repeated .mesos.v1.FileInfo file_infos = 1; */ public java.util.List getFileInfosBuilderList() { return getFileInfosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.FileInfo, org.apache.mesos.v1.Protos.FileInfo.Builder, org.apache.mesos.v1.Protos.FileInfoOrBuilder> getFileInfosFieldBuilder() { if (fileInfosBuilder_ == null) { fileInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.FileInfo, org.apache.mesos.v1.Protos.FileInfo.Builder, org.apache.mesos.v1.Protos.FileInfoOrBuilder>( fileInfos_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); fileInfos_ = null; } return fileInfosBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.ListFiles) } static { defaultInstance = new ListFiles(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.ListFiles) } public interface ReadFileOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.ReadFile) com.google.protobuf.MessageOrBuilder { /** * required uint64 size = 1; * *
       * The size of file (in bytes).
       * 
*/ boolean hasSize(); /** * required uint64 size = 1; * *
       * The size of file (in bytes).
       * 
*/ long getSize(); /** * required bytes data = 2; */ boolean hasData(); /** * required bytes data = 2; */ com.google.protobuf.ByteString getData(); } /** * Protobuf type {@code mesos.v1.agent.Response.ReadFile} * *
     * Contains the file data.
     * 
*/ public static final class ReadFile extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.ReadFile) ReadFileOrBuilder { // Use ReadFile.newBuilder() to construct. private ReadFile(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReadFile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReadFile defaultInstance; public static ReadFile getDefaultInstance() { return defaultInstance; } public ReadFile getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReadFile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; size_ = input.readUInt64(); break; } case 18: { bitField0_ |= 0x00000002; 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.agent.Protos.internal_static_mesos_v1_agent_Response_ReadFile_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_ReadFile_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.ReadFile.class, org.apache.mesos.v1.agent.Protos.Response.ReadFile.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReadFile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadFile(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int SIZE_FIELD_NUMBER = 1; private long size_; /** * required uint64 size = 1; * *
       * The size of file (in bytes).
       * 
*/ public boolean hasSize() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint64 size = 1; * *
       * The size of file (in bytes).
       * 
*/ public long getSize() { return size_; } public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** * required bytes data = 2; */ public boolean hasData() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } private void initFields() { size_ = 0L; 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 (!hasSize()) { memoizedIsInitialized = 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.writeUInt64(1, size_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { 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 .computeUInt64Size(1, size_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { 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.agent.Protos.Response.ReadFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.ReadFile 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.agent.Protos.Response.ReadFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.ReadFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.ReadFile parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.ReadFile 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.agent.Protos.Response.ReadFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.ReadFile 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.agent.Protos.Response.ReadFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.ReadFile 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.agent.Protos.Response.ReadFile 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.agent.Response.ReadFile} * *
       * Contains the file data.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.ReadFile) org.apache.mesos.v1.agent.Protos.Response.ReadFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_ReadFile_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_ReadFile_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.ReadFile.class, org.apache.mesos.v1.agent.Protos.Response.ReadFile.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.ReadFile.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(); size_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); data_ = 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.agent.Protos.internal_static_mesos_v1_agent_Response_ReadFile_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.ReadFile getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.ReadFile.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.ReadFile build() { org.apache.mesos.v1.agent.Protos.Response.ReadFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.ReadFile buildPartial() { org.apache.mesos.v1.agent.Protos.Response.ReadFile result = new org.apache.mesos.v1.agent.Protos.Response.ReadFile(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.size_ = size_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } 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.agent.Protos.Response.ReadFile) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.ReadFile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.ReadFile other) { if (other == org.apache.mesos.v1.agent.Protos.Response.ReadFile.getDefaultInstance()) return this; if (other.hasSize()) { setSize(other.getSize()); } if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasSize()) { return false; } 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.agent.Protos.Response.ReadFile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.ReadFile) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long size_ ; /** * required uint64 size = 1; * *
         * The size of file (in bytes).
         * 
*/ public boolean hasSize() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint64 size = 1; * *
         * The size of file (in bytes).
         * 
*/ public long getSize() { return size_; } /** * required uint64 size = 1; * *
         * The size of file (in bytes).
         * 
*/ public Builder setSize(long value) { bitField0_ |= 0x00000001; size_ = value; onChanged(); return this; } /** * required uint64 size = 1; * *
         * The size of file (in bytes).
         * 
*/ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000001); size_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes data = 2; */ public boolean hasData() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * 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_ |= 0x00000002; data_ = value; onChanged(); return this; } /** * required bytes data = 2; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000002); data_ = getDefaultInstance().getData(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.ReadFile) } static { defaultInstance = new ReadFile(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.ReadFile) } public interface GetStateOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetState) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ boolean hasGetTasks(); /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ org.apache.mesos.v1.agent.Protos.Response.GetTasks getGetTasks(); /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ org.apache.mesos.v1.agent.Protos.Response.GetTasksOrBuilder getGetTasksOrBuilder(); /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ boolean hasGetExecutors(); /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ org.apache.mesos.v1.agent.Protos.Response.GetExecutors getGetExecutors(); /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ org.apache.mesos.v1.agent.Protos.Response.GetExecutorsOrBuilder getGetExecutorsOrBuilder(); /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ boolean hasGetFrameworks(); /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ org.apache.mesos.v1.agent.Protos.Response.GetFrameworks getGetFrameworks(); /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ org.apache.mesos.v1.agent.Protos.Response.GetFrameworksOrBuilder getGetFrameworksOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Response.GetState} * *
     * Contains full state of the agent i.e. information about the tasks,
     * frameworks and executors running in the cluster.
     * 
*/ public static final class GetState extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetState) GetStateOrBuilder { // Use GetState.newBuilder() to construct. private GetState(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetState(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetState defaultInstance; public static GetState getDefaultInstance() { return defaultInstance; } public GetState getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetState( 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.agent.Protos.Response.GetTasks.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = getTasks_.toBuilder(); } getTasks_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetTasks.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getTasks_); getTasks_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = getExecutors_.toBuilder(); } getExecutors_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetExecutors.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getExecutors_); getExecutors_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = getFrameworks_.toBuilder(); } getFrameworks_ = input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(getFrameworks_); getFrameworks_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; 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.agent.Protos.internal_static_mesos_v1_agent_Response_GetState_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetState_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetState.class, org.apache.mesos.v1.agent.Protos.Response.GetState.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetState(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int GET_TASKS_FIELD_NUMBER = 1; private org.apache.mesos.v1.agent.Protos.Response.GetTasks getTasks_; /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ public boolean hasGetTasks() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetTasks getGetTasks() { return getTasks_; } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetTasksOrBuilder getGetTasksOrBuilder() { return getTasks_; } public static final int GET_EXECUTORS_FIELD_NUMBER = 2; private org.apache.mesos.v1.agent.Protos.Response.GetExecutors getExecutors_; /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ public boolean hasGetExecutors() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors getGetExecutors() { return getExecutors_; } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutorsOrBuilder getGetExecutorsOrBuilder() { return getExecutors_; } public static final int GET_FRAMEWORKS_FIELD_NUMBER = 3; private org.apache.mesos.v1.agent.Protos.Response.GetFrameworks getFrameworks_; /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ public boolean hasGetFrameworks() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks getGetFrameworks() { return getFrameworks_; } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworksOrBuilder getGetFrameworksOrBuilder() { return getFrameworks_; } private void initFields() { getTasks_ = org.apache.mesos.v1.agent.Protos.Response.GetTasks.getDefaultInstance(); getExecutors_ = org.apache.mesos.v1.agent.Protos.Response.GetExecutors.getDefaultInstance(); getFrameworks_ = org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasGetTasks()) { if (!getGetTasks().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGetExecutors()) { if (!getGetExecutors().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGetFrameworks()) { if (!getGetFrameworks().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, getTasks_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getExecutors_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getFrameworks_); } 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, getTasks_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getExecutors_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFrameworks_); } 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.agent.Protos.Response.GetState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetState 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.agent.Protos.Response.GetState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetState parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetState 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.agent.Protos.Response.GetState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetState 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.agent.Protos.Response.GetState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetState 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.agent.Protos.Response.GetState 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.agent.Response.GetState} * *
       * Contains full state of the agent i.e. information about the tasks,
       * frameworks and executors running in the cluster.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetState) org.apache.mesos.v1.agent.Protos.Response.GetStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetState_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetState_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetState.class, org.apache.mesos.v1.agent.Protos.Response.GetState.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getGetTasksFieldBuilder(); getGetExecutorsFieldBuilder(); getGetFrameworksFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (getTasksBuilder_ == null) { getTasks_ = org.apache.mesos.v1.agent.Protos.Response.GetTasks.getDefaultInstance(); } else { getTasksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (getExecutorsBuilder_ == null) { getExecutors_ = org.apache.mesos.v1.agent.Protos.Response.GetExecutors.getDefaultInstance(); } else { getExecutorsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (getFrameworksBuilder_ == null) { getFrameworks_ = org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.getDefaultInstance(); } else { getFrameworksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetState_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetState getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetState.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetState build() { org.apache.mesos.v1.agent.Protos.Response.GetState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetState buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetState result = new org.apache.mesos.v1.agent.Protos.Response.GetState(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (getTasksBuilder_ == null) { result.getTasks_ = getTasks_; } else { result.getTasks_ = getTasksBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (getExecutorsBuilder_ == null) { result.getExecutors_ = getExecutors_; } else { result.getExecutors_ = getExecutorsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (getFrameworksBuilder_ == null) { result.getFrameworks_ = getFrameworks_; } else { result.getFrameworks_ = getFrameworksBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetState) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetState other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetState.getDefaultInstance()) return this; if (other.hasGetTasks()) { mergeGetTasks(other.getGetTasks()); } if (other.hasGetExecutors()) { mergeGetExecutors(other.getGetExecutors()); } if (other.hasGetFrameworks()) { mergeGetFrameworks(other.getGetFrameworks()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasGetTasks()) { if (!getGetTasks().isInitialized()) { return false; } } if (hasGetExecutors()) { if (!getGetExecutors().isInitialized()) { return false; } } if (hasGetFrameworks()) { if (!getGetFrameworks().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.agent.Protos.Response.GetState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetState) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.agent.Protos.Response.GetTasks getTasks_ = org.apache.mesos.v1.agent.Protos.Response.GetTasks.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetTasks, org.apache.mesos.v1.agent.Protos.Response.GetTasks.Builder, org.apache.mesos.v1.agent.Protos.Response.GetTasksOrBuilder> getTasksBuilder_; /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ public boolean hasGetTasks() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetTasks getGetTasks() { if (getTasksBuilder_ == null) { return getTasks_; } else { return getTasksBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ public Builder setGetTasks(org.apache.mesos.v1.agent.Protos.Response.GetTasks value) { if (getTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getTasks_ = value; onChanged(); } else { getTasksBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ public Builder setGetTasks( org.apache.mesos.v1.agent.Protos.Response.GetTasks.Builder builderForValue) { if (getTasksBuilder_ == null) { getTasks_ = builderForValue.build(); onChanged(); } else { getTasksBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ public Builder mergeGetTasks(org.apache.mesos.v1.agent.Protos.Response.GetTasks value) { if (getTasksBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && getTasks_ != org.apache.mesos.v1.agent.Protos.Response.GetTasks.getDefaultInstance()) { getTasks_ = org.apache.mesos.v1.agent.Protos.Response.GetTasks.newBuilder(getTasks_).mergeFrom(value).buildPartial(); } else { getTasks_ = value; } onChanged(); } else { getTasksBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ public Builder clearGetTasks() { if (getTasksBuilder_ == null) { getTasks_ = org.apache.mesos.v1.agent.Protos.Response.GetTasks.getDefaultInstance(); onChanged(); } else { getTasksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetTasks.Builder getGetTasksBuilder() { bitField0_ |= 0x00000001; onChanged(); return getGetTasksFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetTasksOrBuilder getGetTasksOrBuilder() { if (getTasksBuilder_ != null) { return getTasksBuilder_.getMessageOrBuilder(); } else { return getTasks_; } } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 1; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetTasks, org.apache.mesos.v1.agent.Protos.Response.GetTasks.Builder, org.apache.mesos.v1.agent.Protos.Response.GetTasksOrBuilder> getGetTasksFieldBuilder() { if (getTasksBuilder_ == null) { getTasksBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetTasks, org.apache.mesos.v1.agent.Protos.Response.GetTasks.Builder, org.apache.mesos.v1.agent.Protos.Response.GetTasksOrBuilder>( getGetTasks(), getParentForChildren(), isClean()); getTasks_ = null; } return getTasksBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.GetExecutors getExecutors_ = org.apache.mesos.v1.agent.Protos.Response.GetExecutors.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetExecutors, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder, org.apache.mesos.v1.agent.Protos.Response.GetExecutorsOrBuilder> getExecutorsBuilder_; /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ public boolean hasGetExecutors() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors getGetExecutors() { if (getExecutorsBuilder_ == null) { return getExecutors_; } else { return getExecutorsBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ public Builder setGetExecutors(org.apache.mesos.v1.agent.Protos.Response.GetExecutors value) { if (getExecutorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getExecutors_ = value; onChanged(); } else { getExecutorsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ public Builder setGetExecutors( org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder builderForValue) { if (getExecutorsBuilder_ == null) { getExecutors_ = builderForValue.build(); onChanged(); } else { getExecutorsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ public Builder mergeGetExecutors(org.apache.mesos.v1.agent.Protos.Response.GetExecutors value) { if (getExecutorsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && getExecutors_ != org.apache.mesos.v1.agent.Protos.Response.GetExecutors.getDefaultInstance()) { getExecutors_ = org.apache.mesos.v1.agent.Protos.Response.GetExecutors.newBuilder(getExecutors_).mergeFrom(value).buildPartial(); } else { getExecutors_ = value; } onChanged(); } else { getExecutorsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ public Builder clearGetExecutors() { if (getExecutorsBuilder_ == null) { getExecutors_ = org.apache.mesos.v1.agent.Protos.Response.GetExecutors.getDefaultInstance(); onChanged(); } else { getExecutorsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder getGetExecutorsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGetExecutorsFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutorsOrBuilder getGetExecutorsOrBuilder() { if (getExecutorsBuilder_ != null) { return getExecutorsBuilder_.getMessageOrBuilder(); } else { return getExecutors_; } } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 2; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetExecutors, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder, org.apache.mesos.v1.agent.Protos.Response.GetExecutorsOrBuilder> getGetExecutorsFieldBuilder() { if (getExecutorsBuilder_ == null) { getExecutorsBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetExecutors, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder, org.apache.mesos.v1.agent.Protos.Response.GetExecutorsOrBuilder>( getGetExecutors(), getParentForChildren(), isClean()); getExecutors_ = null; } return getExecutorsBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.GetFrameworks getFrameworks_ = org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFrameworks, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFrameworksOrBuilder> getFrameworksBuilder_; /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ public boolean hasGetFrameworks() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks getGetFrameworks() { if (getFrameworksBuilder_ == null) { return getFrameworks_; } else { return getFrameworksBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ public Builder setGetFrameworks(org.apache.mesos.v1.agent.Protos.Response.GetFrameworks value) { if (getFrameworksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getFrameworks_ = value; onChanged(); } else { getFrameworksBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ public Builder setGetFrameworks( org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder builderForValue) { if (getFrameworksBuilder_ == null) { getFrameworks_ = builderForValue.build(); onChanged(); } else { getFrameworksBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ public Builder mergeGetFrameworks(org.apache.mesos.v1.agent.Protos.Response.GetFrameworks value) { if (getFrameworksBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && getFrameworks_ != org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.getDefaultInstance()) { getFrameworks_ = org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.newBuilder(getFrameworks_).mergeFrom(value).buildPartial(); } else { getFrameworks_ = value; } onChanged(); } else { getFrameworksBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ public Builder clearGetFrameworks() { if (getFrameworksBuilder_ == null) { getFrameworks_ = org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.getDefaultInstance(); onChanged(); } else { getFrameworksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder getGetFrameworksBuilder() { bitField0_ |= 0x00000004; onChanged(); return getGetFrameworksFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworksOrBuilder getGetFrameworksOrBuilder() { if (getFrameworksBuilder_ != null) { return getFrameworksBuilder_.getMessageOrBuilder(); } else { return getFrameworks_; } } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 3; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFrameworks, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFrameworksOrBuilder> getGetFrameworksFieldBuilder() { if (getFrameworksBuilder_ == null) { getFrameworksBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFrameworks, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFrameworksOrBuilder>( getGetFrameworks(), getParentForChildren(), isClean()); getFrameworks_ = null; } return getFrameworksBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetState) } static { defaultInstance = new GetState(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetState) } public interface GetContainersOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetContainers) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ java.util.List getContainersList(); /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container getContainers(int index); /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ int getContainersCount(); /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ java.util.List getContainersOrBuilderList(); /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ org.apache.mesos.v1.agent.Protos.Response.GetContainers.ContainerOrBuilder getContainersOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.agent.Response.GetContainers} * *
     * Information about containers running on this agent. It contains
     * ContainerStatus and ResourceStatistics along with some metadata
     * of the containers.
     * 
*/ public static final class GetContainers extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetContainers) GetContainersOrBuilder { // Use GetContainers.newBuilder() to construct. private GetContainers(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetContainers(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetContainers defaultInstance; public static GetContainers getDefaultInstance() { return defaultInstance; } public GetContainers getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetContainers( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { containers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } containers_.add(input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { containers_ = java.util.Collections.unmodifiableList(containers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetContainers_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetContainers_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetContainers.class, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetContainers parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetContainers(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface ContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetContainers.Container) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.FrameworkID framework_id = 1; */ boolean hasFrameworkId(); /** * required .mesos.v1.FrameworkID framework_id = 1; */ org.apache.mesos.v1.Protos.FrameworkID getFrameworkId(); /** * required .mesos.v1.FrameworkID framework_id = 1; */ org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder(); /** * required .mesos.v1.ExecutorID executor_id = 2; */ boolean hasExecutorId(); /** * required .mesos.v1.ExecutorID executor_id = 2; */ org.apache.mesos.v1.Protos.ExecutorID getExecutorId(); /** * required .mesos.v1.ExecutorID executor_id = 2; */ org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder(); /** * required string executor_name = 3; */ boolean hasExecutorName(); /** * required string executor_name = 3; */ java.lang.String getExecutorName(); /** * required string executor_name = 3; */ com.google.protobuf.ByteString getExecutorNameBytes(); /** * required .mesos.v1.ContainerID container_id = 4; */ boolean hasContainerId(); /** * required .mesos.v1.ContainerID container_id = 4; */ org.apache.mesos.v1.Protos.ContainerID getContainerId(); /** * required .mesos.v1.ContainerID container_id = 4; */ org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder(); /** * optional .mesos.v1.ContainerStatus container_status = 5; */ boolean hasContainerStatus(); /** * optional .mesos.v1.ContainerStatus container_status = 5; */ org.apache.mesos.v1.Protos.ContainerStatus getContainerStatus(); /** * optional .mesos.v1.ContainerStatus container_status = 5; */ org.apache.mesos.v1.Protos.ContainerStatusOrBuilder getContainerStatusOrBuilder(); /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ boolean hasResourceStatistics(); /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ org.apache.mesos.v1.Protos.ResourceStatistics getResourceStatistics(); /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ org.apache.mesos.v1.Protos.ResourceStatisticsOrBuilder getResourceStatisticsOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Response.GetContainers.Container} */ public static final class Container extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetContainers.Container) ContainerOrBuilder { // Use Container.newBuilder() to construct. private Container(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Container(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Container defaultInstance; public static Container getDefaultInstance() { return defaultInstance; } public Container getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Container( 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.FrameworkID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = frameworkId_.toBuilder(); } frameworkId_ = input.readMessage(org.apache.mesos.v1.Protos.FrameworkID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(frameworkId_); frameworkId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.mesos.v1.Protos.ExecutorID.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = executorId_.toBuilder(); } executorId_ = input.readMessage(org.apache.mesos.v1.Protos.ExecutorID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(executorId_); executorId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; executorName_ = bs; 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; } case 42: { org.apache.mesos.v1.Protos.ContainerStatus.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = containerStatus_.toBuilder(); } containerStatus_ = input.readMessage(org.apache.mesos.v1.Protos.ContainerStatus.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(containerStatus_); containerStatus_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 50: { org.apache.mesos.v1.Protos.ResourceStatistics.Builder subBuilder = null; if (((bitField0_ & 0x00000020) == 0x00000020)) { subBuilder = resourceStatistics_.toBuilder(); } resourceStatistics_ = input.readMessage(org.apache.mesos.v1.Protos.ResourceStatistics.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resourceStatistics_); resourceStatistics_ = 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.agent.Protos.internal_static_mesos_v1_agent_Response_GetContainers_Container_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetContainers_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.class, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Container parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Container(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int FRAMEWORK_ID_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.FrameworkID frameworkId_; /** * required .mesos.v1.FrameworkID framework_id = 1; */ public boolean hasFrameworkId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.FrameworkID framework_id = 1; */ public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() { return frameworkId_; } /** * required .mesos.v1.FrameworkID framework_id = 1; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { return frameworkId_; } public static final int EXECUTOR_ID_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.ExecutorID executorId_; /** * required .mesos.v1.ExecutorID executor_id = 2; */ public boolean hasExecutorId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.ExecutorID executor_id = 2; */ public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() { return executorId_; } /** * required .mesos.v1.ExecutorID executor_id = 2; */ public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { return executorId_; } public static final int EXECUTOR_NAME_FIELD_NUMBER = 3; private java.lang.Object executorName_; /** * required string executor_name = 3; */ public boolean hasExecutorName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string executor_name = 3; */ public java.lang.String getExecutorName() { java.lang.Object ref = executorName_; 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()) { executorName_ = s; } return s; } } /** * required string executor_name = 3; */ public com.google.protobuf.ByteString getExecutorNameBytes() { java.lang.Object ref = executorName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); executorName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONTAINER_ID_FIELD_NUMBER = 4; private org.apache.mesos.v1.Protos.ContainerID containerId_; /** * required .mesos.v1.ContainerID container_id = 4; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { return containerId_; } /** * required .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { return containerId_; } public static final int CONTAINER_STATUS_FIELD_NUMBER = 5; private org.apache.mesos.v1.Protos.ContainerStatus containerStatus_; /** * optional .mesos.v1.ContainerStatus container_status = 5; */ public boolean hasContainerStatus() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.ContainerStatus container_status = 5; */ public org.apache.mesos.v1.Protos.ContainerStatus getContainerStatus() { return containerStatus_; } /** * optional .mesos.v1.ContainerStatus container_status = 5; */ public org.apache.mesos.v1.Protos.ContainerStatusOrBuilder getContainerStatusOrBuilder() { return containerStatus_; } public static final int RESOURCE_STATISTICS_FIELD_NUMBER = 6; private org.apache.mesos.v1.Protos.ResourceStatistics resourceStatistics_; /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ public boolean hasResourceStatistics() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ public org.apache.mesos.v1.Protos.ResourceStatistics getResourceStatistics() { return resourceStatistics_; } /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ public org.apache.mesos.v1.Protos.ResourceStatisticsOrBuilder getResourceStatisticsOrBuilder() { return resourceStatistics_; } private void initFields() { frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance(); executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance(); executorName_ = ""; containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); containerStatus_ = org.apache.mesos.v1.Protos.ContainerStatus.getDefaultInstance(); resourceStatistics_ = org.apache.mesos.v1.Protos.ResourceStatistics.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasFrameworkId()) { memoizedIsInitialized = 0; return false; } if (!hasExecutorId()) { memoizedIsInitialized = 0; return false; } if (!hasExecutorName()) { memoizedIsInitialized = 0; return false; } if (!hasContainerId()) { memoizedIsInitialized = 0; return false; } if (!getFrameworkId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getExecutorId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getContainerId().isInitialized()) { memoizedIsInitialized = 0; return false; } if (hasContainerStatus()) { if (!getContainerStatus().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasResourceStatistics()) { if (!getResourceStatistics().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, frameworkId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, executorId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getExecutorNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, containerId_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, containerStatus_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, resourceStatistics_); } 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, frameworkId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, executorId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getExecutorNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, containerId_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, containerStatus_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, resourceStatistics_); } 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.agent.Protos.Response.GetContainers.Container parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container 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.agent.Protos.Response.GetContainers.Container parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container 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.agent.Protos.Response.GetContainers.Container parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container 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.agent.Protos.Response.GetContainers.Container parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container 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.agent.Protos.Response.GetContainers.Container 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.agent.Response.GetContainers.Container} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetContainers.Container) org.apache.mesos.v1.agent.Protos.Response.GetContainers.ContainerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetContainers_Container_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetContainers_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.class, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFrameworkIdFieldBuilder(); getExecutorIdFieldBuilder(); getContainerIdFieldBuilder(); getContainerStatusFieldBuilder(); getResourceStatisticsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (frameworkIdBuilder_ == null) { frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance(); } else { frameworkIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (executorIdBuilder_ == null) { executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance(); } else { executorIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); executorName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (containerStatusBuilder_ == null) { containerStatus_ = org.apache.mesos.v1.Protos.ContainerStatus.getDefaultInstance(); } else { containerStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (resourceStatisticsBuilder_ == null) { resourceStatistics_ = org.apache.mesos.v1.Protos.ResourceStatistics.getDefaultInstance(); } else { resourceStatisticsBuilder_.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.agent.Protos.internal_static_mesos_v1_agent_Response_GetContainers_Container_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container build() { org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container result = new org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (frameworkIdBuilder_ == null) { result.frameworkId_ = frameworkId_; } else { result.frameworkId_ = frameworkIdBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (executorIdBuilder_ == null) { result.executorId_ = executorId_; } else { result.executorId_ = executorIdBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.executorName_ = executorName_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (containerIdBuilder_ == null) { result.containerId_ = containerId_; } else { result.containerId_ = containerIdBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (containerStatusBuilder_ == null) { result.containerStatus_ = containerStatus_; } else { result.containerStatus_ = containerStatusBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (resourceStatisticsBuilder_ == null) { result.resourceStatistics_ = resourceStatistics_; } else { result.resourceStatistics_ = resourceStatisticsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.getDefaultInstance()) return this; if (other.hasFrameworkId()) { mergeFrameworkId(other.getFrameworkId()); } if (other.hasExecutorId()) { mergeExecutorId(other.getExecutorId()); } if (other.hasExecutorName()) { bitField0_ |= 0x00000004; executorName_ = other.executorName_; onChanged(); } if (other.hasContainerId()) { mergeContainerId(other.getContainerId()); } if (other.hasContainerStatus()) { mergeContainerStatus(other.getContainerStatus()); } if (other.hasResourceStatistics()) { mergeResourceStatistics(other.getResourceStatistics()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasFrameworkId()) { return false; } if (!hasExecutorId()) { return false; } if (!hasExecutorName()) { return false; } if (!hasContainerId()) { return false; } if (!getFrameworkId().isInitialized()) { return false; } if (!getExecutorId().isInitialized()) { return false; } if (!getContainerId().isInitialized()) { return false; } if (hasContainerStatus()) { if (!getContainerStatus().isInitialized()) { return false; } } if (hasResourceStatistics()) { if (!getResourceStatistics().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.agent.Protos.Response.GetContainers.Container parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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 = 1; */ public boolean hasFrameworkId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.FrameworkID framework_id = 1; */ public org.apache.mesos.v1.Protos.FrameworkID getFrameworkId() { if (frameworkIdBuilder_ == null) { return frameworkId_; } else { return frameworkIdBuilder_.getMessage(); } } /** * required .mesos.v1.FrameworkID framework_id = 1; */ 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_ |= 0x00000001; return this; } /** * required .mesos.v1.FrameworkID framework_id = 1; */ public Builder setFrameworkId( org.apache.mesos.v1.Protos.FrameworkID.Builder builderForValue) { if (frameworkIdBuilder_ == null) { frameworkId_ = builderForValue.build(); onChanged(); } else { frameworkIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.FrameworkID framework_id = 1; */ public Builder mergeFrameworkId(org.apache.mesos.v1.Protos.FrameworkID value) { if (frameworkIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && 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_ |= 0x00000001; return this; } /** * required .mesos.v1.FrameworkID framework_id = 1; */ public Builder clearFrameworkId() { if (frameworkIdBuilder_ == null) { frameworkId_ = org.apache.mesos.v1.Protos.FrameworkID.getDefaultInstance(); onChanged(); } else { frameworkIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.FrameworkID framework_id = 1; */ public org.apache.mesos.v1.Protos.FrameworkID.Builder getFrameworkIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getFrameworkIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.FrameworkID framework_id = 1; */ public org.apache.mesos.v1.Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder() { if (frameworkIdBuilder_ != null) { return frameworkIdBuilder_.getMessageOrBuilder(); } else { return frameworkId_; } } /** * required .mesos.v1.FrameworkID framework_id = 1; */ 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.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 = 2; */ public boolean hasExecutorId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required .mesos.v1.ExecutorID executor_id = 2; */ public org.apache.mesos.v1.Protos.ExecutorID getExecutorId() { if (executorIdBuilder_ == null) { return executorId_; } else { return executorIdBuilder_.getMessage(); } } /** * required .mesos.v1.ExecutorID executor_id = 2; */ 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_ |= 0x00000002; return this; } /** * required .mesos.v1.ExecutorID executor_id = 2; */ public Builder setExecutorId( org.apache.mesos.v1.Protos.ExecutorID.Builder builderForValue) { if (executorIdBuilder_ == null) { executorId_ = builderForValue.build(); onChanged(); } else { executorIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * required .mesos.v1.ExecutorID executor_id = 2; */ public Builder mergeExecutorId(org.apache.mesos.v1.Protos.ExecutorID value) { if (executorIdBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && 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_ |= 0x00000002; return this; } /** * required .mesos.v1.ExecutorID executor_id = 2; */ public Builder clearExecutorId() { if (executorIdBuilder_ == null) { executorId_ = org.apache.mesos.v1.Protos.ExecutorID.getDefaultInstance(); onChanged(); } else { executorIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * required .mesos.v1.ExecutorID executor_id = 2; */ public org.apache.mesos.v1.Protos.ExecutorID.Builder getExecutorIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExecutorIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.ExecutorID executor_id = 2; */ public org.apache.mesos.v1.Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder() { if (executorIdBuilder_ != null) { return executorIdBuilder_.getMessageOrBuilder(); } else { return executorId_; } } /** * required .mesos.v1.ExecutorID executor_id = 2; */ 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 java.lang.Object executorName_ = ""; /** * required string executor_name = 3; */ public boolean hasExecutorName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * required string executor_name = 3; */ public java.lang.String getExecutorName() { java.lang.Object ref = executorName_; 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()) { executorName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * required string executor_name = 3; */ public com.google.protobuf.ByteString getExecutorNameBytes() { java.lang.Object ref = executorName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); executorName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string executor_name = 3; */ public Builder setExecutorName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; executorName_ = value; onChanged(); return this; } /** * required string executor_name = 3; */ public Builder clearExecutorName() { bitField0_ = (bitField0_ & ~0x00000004); executorName_ = getDefaultInstance().getExecutorName(); onChanged(); return this; } /** * required string executor_name = 3; */ public Builder setExecutorNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; executorName_ = value; onChanged(); return this; } 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_; /** * required .mesos.v1.ContainerID container_id = 4; */ public boolean hasContainerId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * required .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerID getContainerId() { if (containerIdBuilder_ == null) { return containerId_; } else { return containerIdBuilder_.getMessage(); } } /** * required .mesos.v1.ContainerID container_id = 4; */ public Builder setContainerId(org.apache.mesos.v1.Protos.ContainerID value) { if (containerIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } containerId_ = value; onChanged(); } else { containerIdBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * required .mesos.v1.ContainerID container_id = 4; */ public Builder setContainerId( org.apache.mesos.v1.Protos.ContainerID.Builder builderForValue) { if (containerIdBuilder_ == null) { containerId_ = builderForValue.build(); onChanged(); } else { containerIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * required .mesos.v1.ContainerID container_id = 4; */ 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; } /** * required .mesos.v1.ContainerID container_id = 4; */ public Builder clearContainerId() { if (containerIdBuilder_ == null) { containerId_ = org.apache.mesos.v1.Protos.ContainerID.getDefaultInstance(); onChanged(); } else { containerIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * required .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerID.Builder getContainerIdBuilder() { bitField0_ |= 0x00000008; onChanged(); return getContainerIdFieldBuilder().getBuilder(); } /** * required .mesos.v1.ContainerID container_id = 4; */ public org.apache.mesos.v1.Protos.ContainerIDOrBuilder getContainerIdOrBuilder() { if (containerIdBuilder_ != null) { return containerIdBuilder_.getMessageOrBuilder(); } else { return containerId_; } } /** * required .mesos.v1.ContainerID container_id = 4; */ 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_; } private org.apache.mesos.v1.Protos.ContainerStatus containerStatus_ = org.apache.mesos.v1.Protos.ContainerStatus.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ContainerStatus, org.apache.mesos.v1.Protos.ContainerStatus.Builder, org.apache.mesos.v1.Protos.ContainerStatusOrBuilder> containerStatusBuilder_; /** * optional .mesos.v1.ContainerStatus container_status = 5; */ public boolean hasContainerStatus() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.ContainerStatus container_status = 5; */ public org.apache.mesos.v1.Protos.ContainerStatus getContainerStatus() { if (containerStatusBuilder_ == null) { return containerStatus_; } else { return containerStatusBuilder_.getMessage(); } } /** * optional .mesos.v1.ContainerStatus container_status = 5; */ public Builder setContainerStatus(org.apache.mesos.v1.Protos.ContainerStatus value) { if (containerStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } containerStatus_ = value; onChanged(); } else { containerStatusBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.ContainerStatus container_status = 5; */ public Builder setContainerStatus( org.apache.mesos.v1.Protos.ContainerStatus.Builder builderForValue) { if (containerStatusBuilder_ == null) { containerStatus_ = builderForValue.build(); onChanged(); } else { containerStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.ContainerStatus container_status = 5; */ public Builder mergeContainerStatus(org.apache.mesos.v1.Protos.ContainerStatus value) { if (containerStatusBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && containerStatus_ != org.apache.mesos.v1.Protos.ContainerStatus.getDefaultInstance()) { containerStatus_ = org.apache.mesos.v1.Protos.ContainerStatus.newBuilder(containerStatus_).mergeFrom(value).buildPartial(); } else { containerStatus_ = value; } onChanged(); } else { containerStatusBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.ContainerStatus container_status = 5; */ public Builder clearContainerStatus() { if (containerStatusBuilder_ == null) { containerStatus_ = org.apache.mesos.v1.Protos.ContainerStatus.getDefaultInstance(); onChanged(); } else { containerStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .mesos.v1.ContainerStatus container_status = 5; */ public org.apache.mesos.v1.Protos.ContainerStatus.Builder getContainerStatusBuilder() { bitField0_ |= 0x00000010; onChanged(); return getContainerStatusFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ContainerStatus container_status = 5; */ public org.apache.mesos.v1.Protos.ContainerStatusOrBuilder getContainerStatusOrBuilder() { if (containerStatusBuilder_ != null) { return containerStatusBuilder_.getMessageOrBuilder(); } else { return containerStatus_; } } /** * optional .mesos.v1.ContainerStatus container_status = 5; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ContainerStatus, org.apache.mesos.v1.Protos.ContainerStatus.Builder, org.apache.mesos.v1.Protos.ContainerStatusOrBuilder> getContainerStatusFieldBuilder() { if (containerStatusBuilder_ == null) { containerStatusBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ContainerStatus, org.apache.mesos.v1.Protos.ContainerStatus.Builder, org.apache.mesos.v1.Protos.ContainerStatusOrBuilder>( getContainerStatus(), getParentForChildren(), isClean()); containerStatus_ = null; } return containerStatusBuilder_; } private org.apache.mesos.v1.Protos.ResourceStatistics resourceStatistics_ = org.apache.mesos.v1.Protos.ResourceStatistics.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ResourceStatistics, org.apache.mesos.v1.Protos.ResourceStatistics.Builder, org.apache.mesos.v1.Protos.ResourceStatisticsOrBuilder> resourceStatisticsBuilder_; /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ public boolean hasResourceStatistics() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ public org.apache.mesos.v1.Protos.ResourceStatistics getResourceStatistics() { if (resourceStatisticsBuilder_ == null) { return resourceStatistics_; } else { return resourceStatisticsBuilder_.getMessage(); } } /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ public Builder setResourceStatistics(org.apache.mesos.v1.Protos.ResourceStatistics value) { if (resourceStatisticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resourceStatistics_ = value; onChanged(); } else { resourceStatisticsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ public Builder setResourceStatistics( org.apache.mesos.v1.Protos.ResourceStatistics.Builder builderForValue) { if (resourceStatisticsBuilder_ == null) { resourceStatistics_ = builderForValue.build(); onChanged(); } else { resourceStatisticsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ public Builder mergeResourceStatistics(org.apache.mesos.v1.Protos.ResourceStatistics value) { if (resourceStatisticsBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && resourceStatistics_ != org.apache.mesos.v1.Protos.ResourceStatistics.getDefaultInstance()) { resourceStatistics_ = org.apache.mesos.v1.Protos.ResourceStatistics.newBuilder(resourceStatistics_).mergeFrom(value).buildPartial(); } else { resourceStatistics_ = value; } onChanged(); } else { resourceStatisticsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ public Builder clearResourceStatistics() { if (resourceStatisticsBuilder_ == null) { resourceStatistics_ = org.apache.mesos.v1.Protos.ResourceStatistics.getDefaultInstance(); onChanged(); } else { resourceStatisticsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ public org.apache.mesos.v1.Protos.ResourceStatistics.Builder getResourceStatisticsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getResourceStatisticsFieldBuilder().getBuilder(); } /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ public org.apache.mesos.v1.Protos.ResourceStatisticsOrBuilder getResourceStatisticsOrBuilder() { if (resourceStatisticsBuilder_ != null) { return resourceStatisticsBuilder_.getMessageOrBuilder(); } else { return resourceStatistics_; } } /** * optional .mesos.v1.ResourceStatistics resource_statistics = 6; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ResourceStatistics, org.apache.mesos.v1.Protos.ResourceStatistics.Builder, org.apache.mesos.v1.Protos.ResourceStatisticsOrBuilder> getResourceStatisticsFieldBuilder() { if (resourceStatisticsBuilder_ == null) { resourceStatisticsBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.ResourceStatistics, org.apache.mesos.v1.Protos.ResourceStatistics.Builder, org.apache.mesos.v1.Protos.ResourceStatisticsOrBuilder>( getResourceStatistics(), getParentForChildren(), isClean()); resourceStatistics_ = null; } return resourceStatisticsBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetContainers.Container) } static { defaultInstance = new Container(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetContainers.Container) } public static final int CONTAINERS_FIELD_NUMBER = 1; private java.util.List containers_; /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public java.util.List getContainersList() { return containers_; } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public java.util.List getContainersOrBuilderList() { return containers_; } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public int getContainersCount() { return containers_.size(); } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container getContainers(int index) { return containers_.get(index); } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetContainers.ContainerOrBuilder getContainersOrBuilder( int index) { return containers_.get(index); } private void initFields() { containers_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getContainersCount(); i++) { if (!getContainers(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < containers_.size(); i++) { output.writeMessage(1, containers_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < containers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, containers_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.mesos.v1.agent.Protos.Response.GetContainers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetContainers 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.agent.Protos.Response.GetContainers parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetContainers parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetContainers parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetContainers 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.agent.Protos.Response.GetContainers parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetContainers 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.agent.Protos.Response.GetContainers parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetContainers 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.agent.Protos.Response.GetContainers 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.agent.Response.GetContainers} * *
       * Information about containers running on this agent. It contains
       * ContainerStatus and ResourceStatistics along with some metadata
       * of the containers.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetContainers) org.apache.mesos.v1.agent.Protos.Response.GetContainersOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetContainers_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetContainers_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetContainers.class, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetContainers.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getContainersFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (containersBuilder_ == null) { containers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { containersBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetContainers_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetContainers getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetContainers.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetContainers build() { org.apache.mesos.v1.agent.Protos.Response.GetContainers result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetContainers buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetContainers result = new org.apache.mesos.v1.agent.Protos.Response.GetContainers(this); int from_bitField0_ = bitField0_; if (containersBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { containers_ = java.util.Collections.unmodifiableList(containers_); bitField0_ = (bitField0_ & ~0x00000001); } result.containers_ = containers_; } else { result.containers_ = containersBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetContainers) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetContainers)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetContainers other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetContainers.getDefaultInstance()) return this; if (containersBuilder_ == null) { if (!other.containers_.isEmpty()) { if (containers_.isEmpty()) { containers_ = other.containers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureContainersIsMutable(); containers_.addAll(other.containers_); } onChanged(); } } else { if (!other.containers_.isEmpty()) { if (containersBuilder_.isEmpty()) { containersBuilder_.dispose(); containersBuilder_ = null; containers_ = other.containers_; bitField0_ = (bitField0_ & ~0x00000001); containersBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getContainersFieldBuilder() : null; } else { containersBuilder_.addAllMessages(other.containers_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getContainersCount(); i++) { if (!getContainers(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.agent.Protos.Response.GetContainers parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetContainers) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List containers_ = java.util.Collections.emptyList(); private void ensureContainersIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { containers_ = new java.util.ArrayList(containers_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.Builder, org.apache.mesos.v1.agent.Protos.Response.GetContainers.ContainerOrBuilder> containersBuilder_; /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public java.util.List getContainersList() { if (containersBuilder_ == null) { return java.util.Collections.unmodifiableList(containers_); } else { return containersBuilder_.getMessageList(); } } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public int getContainersCount() { if (containersBuilder_ == null) { return containers_.size(); } else { return containersBuilder_.getCount(); } } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container getContainers(int index) { if (containersBuilder_ == null) { return containers_.get(index); } else { return containersBuilder_.getMessage(index); } } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public Builder setContainers( int index, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container value) { if (containersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersIsMutable(); containers_.set(index, value); onChanged(); } else { containersBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public Builder setContainers( int index, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.Builder builderForValue) { if (containersBuilder_ == null) { ensureContainersIsMutable(); containers_.set(index, builderForValue.build()); onChanged(); } else { containersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public Builder addContainers(org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container value) { if (containersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersIsMutable(); containers_.add(value); onChanged(); } else { containersBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public Builder addContainers( int index, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container value) { if (containersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureContainersIsMutable(); containers_.add(index, value); onChanged(); } else { containersBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public Builder addContainers( org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.Builder builderForValue) { if (containersBuilder_ == null) { ensureContainersIsMutable(); containers_.add(builderForValue.build()); onChanged(); } else { containersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public Builder addContainers( int index, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.Builder builderForValue) { if (containersBuilder_ == null) { ensureContainersIsMutable(); containers_.add(index, builderForValue.build()); onChanged(); } else { containersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public Builder addAllContainers( java.lang.Iterable values) { if (containersBuilder_ == null) { ensureContainersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, containers_); onChanged(); } else { containersBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public Builder clearContainers() { if (containersBuilder_ == null) { containers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { containersBuilder_.clear(); } return this; } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public Builder removeContainers(int index) { if (containersBuilder_ == null) { ensureContainersIsMutable(); containers_.remove(index); onChanged(); } else { containersBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.Builder getContainersBuilder( int index) { return getContainersFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetContainers.ContainerOrBuilder getContainersOrBuilder( int index) { if (containersBuilder_ == null) { return containers_.get(index); } else { return containersBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public java.util.List getContainersOrBuilderList() { if (containersBuilder_ != null) { return containersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(containers_); } } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.Builder addContainersBuilder() { return getContainersFieldBuilder().addBuilder( org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.getDefaultInstance()); } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.Builder addContainersBuilder( int index) { return getContainersFieldBuilder().addBuilder( index, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.getDefaultInstance()); } /** * repeated .mesos.v1.agent.Response.GetContainers.Container containers = 1; */ public java.util.List getContainersBuilderList() { return getContainersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.Builder, org.apache.mesos.v1.agent.Protos.Response.GetContainers.ContainerOrBuilder> getContainersFieldBuilder() { if (containersBuilder_ == null) { containersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Container.Builder, org.apache.mesos.v1.agent.Protos.Response.GetContainers.ContainerOrBuilder>( containers_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); containers_ = null; } return containersBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetContainers) } static { defaultInstance = new GetContainers(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetContainers) } public interface GetFrameworksOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetFrameworks) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ java.util.List getFrameworksList(); /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework getFrameworks(int index); /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ int getFrameworksCount(); /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ java.util.List getFrameworksOrBuilderList(); /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.FrameworkOrBuilder getFrameworksOrBuilder( int index); /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ java.util.List getCompletedFrameworksList(); /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework getCompletedFrameworks(int index); /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ int getCompletedFrameworksCount(); /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ java.util.List getCompletedFrameworksOrBuilderList(); /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.FrameworkOrBuilder getCompletedFrameworksOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.agent.Response.GetFrameworks} * *
     * Information about all the frameworks known to the agent at the current
     * time.
     * 
*/ public static final class GetFrameworks extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetFrameworks) GetFrameworksOrBuilder { // Use GetFrameworks.newBuilder() to construct. private GetFrameworks(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetFrameworks(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetFrameworks defaultInstance; public static GetFrameworks getDefaultInstance() { return defaultInstance; } public GetFrameworks getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetFrameworks( 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)) { frameworks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } frameworks_.add(input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { completedFrameworks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } completedFrameworks_.add(input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.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)) { frameworks_ = java.util.Collections.unmodifiableList(frameworks_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { completedFrameworks_ = java.util.Collections.unmodifiableList(completedFrameworks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetFrameworks_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetFrameworks_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.class, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetFrameworks parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetFrameworks(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface FrameworkOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetFrameworks.Framework) com.google.protobuf.MessageOrBuilder { /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ boolean hasFrameworkInfo(); /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ org.apache.mesos.v1.Protos.FrameworkInfo getFrameworkInfo(); /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder getFrameworkInfoOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Response.GetFrameworks.Framework} */ public static final class Framework extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetFrameworks.Framework) FrameworkOrBuilder { // Use Framework.newBuilder() to construct. private Framework(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Framework(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Framework defaultInstance; public static Framework getDefaultInstance() { return defaultInstance; } public Framework getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Framework( 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.FrameworkInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = frameworkInfo_.toBuilder(); } frameworkInfo_ = input.readMessage(org.apache.mesos.v1.Protos.FrameworkInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(frameworkInfo_); frameworkInfo_ = 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.agent.Protos.internal_static_mesos_v1_agent_Response_GetFrameworks_Framework_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetFrameworks_Framework_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.class, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Framework parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Framework(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int FRAMEWORK_INFO_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.FrameworkInfo frameworkInfo_; /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ public boolean hasFrameworkInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ public org.apache.mesos.v1.Protos.FrameworkInfo getFrameworkInfo() { return frameworkInfo_; } /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ public org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder getFrameworkInfoOrBuilder() { return frameworkInfo_; } private void initFields() { frameworkInfo_ = org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasFrameworkInfo()) { memoizedIsInitialized = 0; return false; } if (!getFrameworkInfo().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, frameworkInfo_); } 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, frameworkInfo_); } 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.agent.Protos.Response.GetFrameworks.Framework parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework 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.agent.Protos.Response.GetFrameworks.Framework parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework 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.agent.Protos.Response.GetFrameworks.Framework parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework 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.agent.Protos.Response.GetFrameworks.Framework parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework 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.agent.Protos.Response.GetFrameworks.Framework 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.agent.Response.GetFrameworks.Framework} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetFrameworks.Framework) org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.FrameworkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetFrameworks_Framework_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetFrameworks_Framework_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.class, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFrameworkInfoFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (frameworkInfoBuilder_ == null) { frameworkInfo_ = org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance(); } else { frameworkInfoBuilder_.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.agent.Protos.internal_static_mesos_v1_agent_Response_GetFrameworks_Framework_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework build() { org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework result = new org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (frameworkInfoBuilder_ == null) { result.frameworkInfo_ = frameworkInfo_; } else { result.frameworkInfo_ = frameworkInfoBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.getDefaultInstance()) return this; if (other.hasFrameworkInfo()) { mergeFrameworkInfo(other.getFrameworkInfo()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasFrameworkInfo()) { return false; } if (!getFrameworkInfo().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.agent.Protos.Response.GetFrameworks.Framework parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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 = 1; */ public boolean hasFrameworkInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ public org.apache.mesos.v1.Protos.FrameworkInfo getFrameworkInfo() { if (frameworkInfoBuilder_ == null) { return frameworkInfo_; } else { return frameworkInfoBuilder_.getMessage(); } } /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ 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_ |= 0x00000001; return this; } /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ public Builder setFrameworkInfo( org.apache.mesos.v1.Protos.FrameworkInfo.Builder builderForValue) { if (frameworkInfoBuilder_ == null) { frameworkInfo_ = builderForValue.build(); onChanged(); } else { frameworkInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ public Builder mergeFrameworkInfo(org.apache.mesos.v1.Protos.FrameworkInfo value) { if (frameworkInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && 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_ |= 0x00000001; return this; } /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ public Builder clearFrameworkInfo() { if (frameworkInfoBuilder_ == null) { frameworkInfo_ = org.apache.mesos.v1.Protos.FrameworkInfo.getDefaultInstance(); onChanged(); } else { frameworkInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ public org.apache.mesos.v1.Protos.FrameworkInfo.Builder getFrameworkInfoBuilder() { bitField0_ |= 0x00000001; onChanged(); return getFrameworkInfoFieldBuilder().getBuilder(); } /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ public org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder getFrameworkInfoOrBuilder() { if (frameworkInfoBuilder_ != null) { return frameworkInfoBuilder_.getMessageOrBuilder(); } else { return frameworkInfo_; } } /** * required .mesos.v1.FrameworkInfo framework_info = 1; */ 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_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetFrameworks.Framework) } static { defaultInstance = new Framework(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetFrameworks.Framework) } public static final int FRAMEWORKS_FIELD_NUMBER = 1; private java.util.List frameworks_; /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public java.util.List getFrameworksList() { return frameworks_; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public java.util.List getFrameworksOrBuilderList() { return frameworks_; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public int getFrameworksCount() { return frameworks_.size(); } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework getFrameworks(int index) { return frameworks_.get(index); } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.FrameworkOrBuilder getFrameworksOrBuilder( int index) { return frameworks_.get(index); } public static final int COMPLETED_FRAMEWORKS_FIELD_NUMBER = 2; private java.util.List completedFrameworks_; /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public java.util.List getCompletedFrameworksList() { return completedFrameworks_; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public java.util.List getCompletedFrameworksOrBuilderList() { return completedFrameworks_; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public int getCompletedFrameworksCount() { return completedFrameworks_.size(); } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework getCompletedFrameworks(int index) { return completedFrameworks_.get(index); } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.FrameworkOrBuilder getCompletedFrameworksOrBuilder( int index) { return completedFrameworks_.get(index); } private void initFields() { frameworks_ = java.util.Collections.emptyList(); completedFrameworks_ = 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 < getFrameworksCount(); i++) { if (!getFrameworks(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getCompletedFrameworksCount(); i++) { if (!getCompletedFrameworks(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 < frameworks_.size(); i++) { output.writeMessage(1, frameworks_.get(i)); } for (int i = 0; i < completedFrameworks_.size(); i++) { output.writeMessage(2, completedFrameworks_.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 < frameworks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, frameworks_.get(i)); } for (int i = 0; i < completedFrameworks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, completedFrameworks_.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.agent.Protos.Response.GetFrameworks parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetFrameworks 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.agent.Protos.Response.GetFrameworks parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetFrameworks parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetFrameworks parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetFrameworks 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.agent.Protos.Response.GetFrameworks parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetFrameworks 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.agent.Protos.Response.GetFrameworks parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetFrameworks 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.agent.Protos.Response.GetFrameworks 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.agent.Response.GetFrameworks} * *
       * Information about all the frameworks known to the agent at the current
       * time.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetFrameworks) org.apache.mesos.v1.agent.Protos.Response.GetFrameworksOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetFrameworks_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetFrameworks_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.class, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFrameworksFieldBuilder(); getCompletedFrameworksFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (frameworksBuilder_ == null) { frameworks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { frameworksBuilder_.clear(); } if (completedFrameworksBuilder_ == null) { completedFrameworks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { completedFrameworksBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetFrameworks_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks build() { org.apache.mesos.v1.agent.Protos.Response.GetFrameworks result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetFrameworks result = new org.apache.mesos.v1.agent.Protos.Response.GetFrameworks(this); int from_bitField0_ = bitField0_; if (frameworksBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { frameworks_ = java.util.Collections.unmodifiableList(frameworks_); bitField0_ = (bitField0_ & ~0x00000001); } result.frameworks_ = frameworks_; } else { result.frameworks_ = frameworksBuilder_.build(); } if (completedFrameworksBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { completedFrameworks_ = java.util.Collections.unmodifiableList(completedFrameworks_); bitField0_ = (bitField0_ & ~0x00000002); } result.completedFrameworks_ = completedFrameworks_; } else { result.completedFrameworks_ = completedFrameworksBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetFrameworks) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetFrameworks)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetFrameworks other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.getDefaultInstance()) return this; if (frameworksBuilder_ == null) { if (!other.frameworks_.isEmpty()) { if (frameworks_.isEmpty()) { frameworks_ = other.frameworks_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFrameworksIsMutable(); frameworks_.addAll(other.frameworks_); } onChanged(); } } else { if (!other.frameworks_.isEmpty()) { if (frameworksBuilder_.isEmpty()) { frameworksBuilder_.dispose(); frameworksBuilder_ = null; frameworks_ = other.frameworks_; bitField0_ = (bitField0_ & ~0x00000001); frameworksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFrameworksFieldBuilder() : null; } else { frameworksBuilder_.addAllMessages(other.frameworks_); } } } if (completedFrameworksBuilder_ == null) { if (!other.completedFrameworks_.isEmpty()) { if (completedFrameworks_.isEmpty()) { completedFrameworks_ = other.completedFrameworks_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCompletedFrameworksIsMutable(); completedFrameworks_.addAll(other.completedFrameworks_); } onChanged(); } } else { if (!other.completedFrameworks_.isEmpty()) { if (completedFrameworksBuilder_.isEmpty()) { completedFrameworksBuilder_.dispose(); completedFrameworksBuilder_ = null; completedFrameworks_ = other.completedFrameworks_; bitField0_ = (bitField0_ & ~0x00000002); completedFrameworksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCompletedFrameworksFieldBuilder() : null; } else { completedFrameworksBuilder_.addAllMessages(other.completedFrameworks_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getFrameworksCount(); i++) { if (!getFrameworks(i).isInitialized()) { return false; } } for (int i = 0; i < getCompletedFrameworksCount(); i++) { if (!getCompletedFrameworks(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.agent.Protos.Response.GetFrameworks parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetFrameworks) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List frameworks_ = java.util.Collections.emptyList(); private void ensureFrameworksIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { frameworks_ = new java.util.ArrayList(frameworks_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.FrameworkOrBuilder> frameworksBuilder_; /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public java.util.List getFrameworksList() { if (frameworksBuilder_ == null) { return java.util.Collections.unmodifiableList(frameworks_); } else { return frameworksBuilder_.getMessageList(); } } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public int getFrameworksCount() { if (frameworksBuilder_ == null) { return frameworks_.size(); } else { return frameworksBuilder_.getCount(); } } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework getFrameworks(int index) { if (frameworksBuilder_ == null) { return frameworks_.get(index); } else { return frameworksBuilder_.getMessage(index); } } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public Builder setFrameworks( int index, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework value) { if (frameworksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrameworksIsMutable(); frameworks_.set(index, value); onChanged(); } else { frameworksBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public Builder setFrameworks( int index, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder builderForValue) { if (frameworksBuilder_ == null) { ensureFrameworksIsMutable(); frameworks_.set(index, builderForValue.build()); onChanged(); } else { frameworksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public Builder addFrameworks(org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework value) { if (frameworksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrameworksIsMutable(); frameworks_.add(value); onChanged(); } else { frameworksBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public Builder addFrameworks( int index, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework value) { if (frameworksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrameworksIsMutable(); frameworks_.add(index, value); onChanged(); } else { frameworksBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public Builder addFrameworks( org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder builderForValue) { if (frameworksBuilder_ == null) { ensureFrameworksIsMutable(); frameworks_.add(builderForValue.build()); onChanged(); } else { frameworksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public Builder addFrameworks( int index, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder builderForValue) { if (frameworksBuilder_ == null) { ensureFrameworksIsMutable(); frameworks_.add(index, builderForValue.build()); onChanged(); } else { frameworksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public Builder addAllFrameworks( java.lang.Iterable values) { if (frameworksBuilder_ == null) { ensureFrameworksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, frameworks_); onChanged(); } else { frameworksBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public Builder clearFrameworks() { if (frameworksBuilder_ == null) { frameworks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { frameworksBuilder_.clear(); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public Builder removeFrameworks(int index) { if (frameworksBuilder_ == null) { ensureFrameworksIsMutable(); frameworks_.remove(index); onChanged(); } else { frameworksBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder getFrameworksBuilder( int index) { return getFrameworksFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.FrameworkOrBuilder getFrameworksOrBuilder( int index) { if (frameworksBuilder_ == null) { return frameworks_.get(index); } else { return frameworksBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public java.util.List getFrameworksOrBuilderList() { if (frameworksBuilder_ != null) { return frameworksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(frameworks_); } } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder addFrameworksBuilder() { return getFrameworksFieldBuilder().addBuilder( org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.getDefaultInstance()); } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder addFrameworksBuilder( int index) { return getFrameworksFieldBuilder().addBuilder( index, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.getDefaultInstance()); } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework frameworks = 1; */ public java.util.List getFrameworksBuilderList() { return getFrameworksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.FrameworkOrBuilder> getFrameworksFieldBuilder() { if (frameworksBuilder_ == null) { frameworksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.FrameworkOrBuilder>( frameworks_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); frameworks_ = null; } return frameworksBuilder_; } private java.util.List completedFrameworks_ = java.util.Collections.emptyList(); private void ensureCompletedFrameworksIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { completedFrameworks_ = new java.util.ArrayList(completedFrameworks_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.FrameworkOrBuilder> completedFrameworksBuilder_; /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public java.util.List getCompletedFrameworksList() { if (completedFrameworksBuilder_ == null) { return java.util.Collections.unmodifiableList(completedFrameworks_); } else { return completedFrameworksBuilder_.getMessageList(); } } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public int getCompletedFrameworksCount() { if (completedFrameworksBuilder_ == null) { return completedFrameworks_.size(); } else { return completedFrameworksBuilder_.getCount(); } } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework getCompletedFrameworks(int index) { if (completedFrameworksBuilder_ == null) { return completedFrameworks_.get(index); } else { return completedFrameworksBuilder_.getMessage(index); } } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public Builder setCompletedFrameworks( int index, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework value) { if (completedFrameworksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompletedFrameworksIsMutable(); completedFrameworks_.set(index, value); onChanged(); } else { completedFrameworksBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public Builder setCompletedFrameworks( int index, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder builderForValue) { if (completedFrameworksBuilder_ == null) { ensureCompletedFrameworksIsMutable(); completedFrameworks_.set(index, builderForValue.build()); onChanged(); } else { completedFrameworksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public Builder addCompletedFrameworks(org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework value) { if (completedFrameworksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompletedFrameworksIsMutable(); completedFrameworks_.add(value); onChanged(); } else { completedFrameworksBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public Builder addCompletedFrameworks( int index, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework value) { if (completedFrameworksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompletedFrameworksIsMutable(); completedFrameworks_.add(index, value); onChanged(); } else { completedFrameworksBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public Builder addCompletedFrameworks( org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder builderForValue) { if (completedFrameworksBuilder_ == null) { ensureCompletedFrameworksIsMutable(); completedFrameworks_.add(builderForValue.build()); onChanged(); } else { completedFrameworksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public Builder addCompletedFrameworks( int index, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder builderForValue) { if (completedFrameworksBuilder_ == null) { ensureCompletedFrameworksIsMutable(); completedFrameworks_.add(index, builderForValue.build()); onChanged(); } else { completedFrameworksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public Builder addAllCompletedFrameworks( java.lang.Iterable values) { if (completedFrameworksBuilder_ == null) { ensureCompletedFrameworksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, completedFrameworks_); onChanged(); } else { completedFrameworksBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public Builder clearCompletedFrameworks() { if (completedFrameworksBuilder_ == null) { completedFrameworks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { completedFrameworksBuilder_.clear(); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public Builder removeCompletedFrameworks(int index) { if (completedFrameworksBuilder_ == null) { ensureCompletedFrameworksIsMutable(); completedFrameworks_.remove(index); onChanged(); } else { completedFrameworksBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder getCompletedFrameworksBuilder( int index) { return getCompletedFrameworksFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.FrameworkOrBuilder getCompletedFrameworksOrBuilder( int index) { if (completedFrameworksBuilder_ == null) { return completedFrameworks_.get(index); } else { return completedFrameworksBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public java.util.List getCompletedFrameworksOrBuilderList() { if (completedFrameworksBuilder_ != null) { return completedFrameworksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(completedFrameworks_); } } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder addCompletedFrameworksBuilder() { return getCompletedFrameworksFieldBuilder().addBuilder( org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.getDefaultInstance()); } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder addCompletedFrameworksBuilder( int index) { return getCompletedFrameworksFieldBuilder().addBuilder( index, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.getDefaultInstance()); } /** * repeated .mesos.v1.agent.Response.GetFrameworks.Framework completed_frameworks = 2; */ public java.util.List getCompletedFrameworksBuilderList() { return getCompletedFrameworksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.FrameworkOrBuilder> getCompletedFrameworksFieldBuilder() { if (completedFrameworksBuilder_ == null) { completedFrameworksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Framework.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.FrameworkOrBuilder>( completedFrameworks_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); completedFrameworks_ = null; } return completedFrameworksBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetFrameworks) } static { defaultInstance = new GetFrameworks(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetFrameworks) } public interface GetExecutorsOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetExecutors) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ java.util.List getExecutorsList(); /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor getExecutors(int index); /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ int getExecutorsCount(); /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ java.util.List getExecutorsOrBuilderList(); /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ org.apache.mesos.v1.agent.Protos.Response.GetExecutors.ExecutorOrBuilder getExecutorsOrBuilder( int index); /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ java.util.List getCompletedExecutorsList(); /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor getCompletedExecutors(int index); /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ int getCompletedExecutorsCount(); /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ java.util.List getCompletedExecutorsOrBuilderList(); /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ org.apache.mesos.v1.agent.Protos.Response.GetExecutors.ExecutorOrBuilder getCompletedExecutorsOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.agent.Response.GetExecutors} * *
     * Lists information about all the executors known to the agent at the
     * current time.
     * 
*/ public static final class GetExecutors extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetExecutors) GetExecutorsOrBuilder { // Use GetExecutors.newBuilder() to construct. private GetExecutors(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetExecutors(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetExecutors defaultInstance; public static GetExecutors getDefaultInstance() { return defaultInstance; } public GetExecutors getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetExecutors( 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)) { executors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } executors_.add(input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { completedExecutors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } completedExecutors_.add(input.readMessage(org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.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)) { executors_ = java.util.Collections.unmodifiableList(executors_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { completedExecutors_ = java.util.Collections.unmodifiableList(completedExecutors_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetExecutors_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetExecutors_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetExecutors.class, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetExecutors parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetExecutors(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public interface ExecutorOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetExecutors.Executor) 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(); } /** * Protobuf type {@code mesos.v1.agent.Response.GetExecutors.Executor} */ public static final class Executor extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetExecutors.Executor) ExecutorOrBuilder { // Use Executor.newBuilder() to construct. private Executor(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Executor(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Executor defaultInstance; public static Executor getDefaultInstance() { return defaultInstance; } public Executor getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Executor( 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; } } } } 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.agent.Protos.internal_static_mesos_v1_agent_Response_GetExecutors_Executor_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetExecutors_Executor_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.class, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Executor parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Executor(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_; } private void initFields() { executorInfo_ = org.apache.mesos.v1.Protos.ExecutorInfo.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 (!getExecutorInfo().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_); } 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_); } 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.agent.Protos.Response.GetExecutors.Executor parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor 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.agent.Protos.Response.GetExecutors.Executor parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor 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.agent.Protos.Response.GetExecutors.Executor parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor 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.agent.Protos.Response.GetExecutors.Executor parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor 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.agent.Protos.Response.GetExecutors.Executor 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.agent.Response.GetExecutors.Executor} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetExecutors.Executor) org.apache.mesos.v1.agent.Protos.Response.GetExecutors.ExecutorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetExecutors_Executor_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetExecutors_Executor_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.class, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.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(); } } 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); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetExecutors_Executor_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor build() { org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor result = new org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor(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(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.getDefaultInstance()) return this; if (other.hasExecutorInfo()) { mergeExecutorInfo(other.getExecutorInfo()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasExecutorInfo()) { return false; } if (!getExecutorInfo().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.agent.Protos.Response.GetExecutors.Executor parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor) 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_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetExecutors.Executor) } static { defaultInstance = new Executor(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetExecutors.Executor) } public static final int EXECUTORS_FIELD_NUMBER = 1; private java.util.List executors_; /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public java.util.List getExecutorsList() { return executors_; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public java.util.List getExecutorsOrBuilderList() { return executors_; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public int getExecutorsCount() { return executors_.size(); } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor getExecutors(int index) { return executors_.get(index); } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.ExecutorOrBuilder getExecutorsOrBuilder( int index) { return executors_.get(index); } public static final int COMPLETED_EXECUTORS_FIELD_NUMBER = 2; private java.util.List completedExecutors_; /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public java.util.List getCompletedExecutorsList() { return completedExecutors_; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public java.util.List getCompletedExecutorsOrBuilderList() { return completedExecutors_; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public int getCompletedExecutorsCount() { return completedExecutors_.size(); } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor getCompletedExecutors(int index) { return completedExecutors_.get(index); } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.ExecutorOrBuilder getCompletedExecutorsOrBuilder( int index) { return completedExecutors_.get(index); } private void initFields() { executors_ = java.util.Collections.emptyList(); completedExecutors_ = 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 < getExecutorsCount(); i++) { if (!getExecutors(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getCompletedExecutorsCount(); i++) { if (!getCompletedExecutors(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 < executors_.size(); i++) { output.writeMessage(1, executors_.get(i)); } for (int i = 0; i < completedExecutors_.size(); i++) { output.writeMessage(2, completedExecutors_.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 < executors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, executors_.get(i)); } for (int i = 0; i < completedExecutors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, completedExecutors_.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.agent.Protos.Response.GetExecutors parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetExecutors 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.agent.Protos.Response.GetExecutors parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetExecutors parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetExecutors parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetExecutors 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.agent.Protos.Response.GetExecutors parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetExecutors 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.agent.Protos.Response.GetExecutors parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetExecutors 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.agent.Protos.Response.GetExecutors 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.agent.Response.GetExecutors} * *
       * Lists information about all the executors known to the agent at the
       * current time.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetExecutors) org.apache.mesos.v1.agent.Protos.Response.GetExecutorsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetExecutors_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetExecutors_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetExecutors.class, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetExecutors.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getExecutorsFieldBuilder(); getCompletedExecutorsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (executorsBuilder_ == null) { executors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { executorsBuilder_.clear(); } if (completedExecutorsBuilder_ == null) { completedExecutors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { completedExecutorsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetExecutors_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetExecutors getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetExecutors.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetExecutors build() { org.apache.mesos.v1.agent.Protos.Response.GetExecutors result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetExecutors buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetExecutors result = new org.apache.mesos.v1.agent.Protos.Response.GetExecutors(this); int from_bitField0_ = bitField0_; if (executorsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { executors_ = java.util.Collections.unmodifiableList(executors_); bitField0_ = (bitField0_ & ~0x00000001); } result.executors_ = executors_; } else { result.executors_ = executorsBuilder_.build(); } if (completedExecutorsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { completedExecutors_ = java.util.Collections.unmodifiableList(completedExecutors_); bitField0_ = (bitField0_ & ~0x00000002); } result.completedExecutors_ = completedExecutors_; } else { result.completedExecutors_ = completedExecutorsBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetExecutors) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetExecutors)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetExecutors other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetExecutors.getDefaultInstance()) return this; if (executorsBuilder_ == null) { if (!other.executors_.isEmpty()) { if (executors_.isEmpty()) { executors_ = other.executors_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureExecutorsIsMutable(); executors_.addAll(other.executors_); } onChanged(); } } else { if (!other.executors_.isEmpty()) { if (executorsBuilder_.isEmpty()) { executorsBuilder_.dispose(); executorsBuilder_ = null; executors_ = other.executors_; bitField0_ = (bitField0_ & ~0x00000001); executorsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getExecutorsFieldBuilder() : null; } else { executorsBuilder_.addAllMessages(other.executors_); } } } if (completedExecutorsBuilder_ == null) { if (!other.completedExecutors_.isEmpty()) { if (completedExecutors_.isEmpty()) { completedExecutors_ = other.completedExecutors_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCompletedExecutorsIsMutable(); completedExecutors_.addAll(other.completedExecutors_); } onChanged(); } } else { if (!other.completedExecutors_.isEmpty()) { if (completedExecutorsBuilder_.isEmpty()) { completedExecutorsBuilder_.dispose(); completedExecutorsBuilder_ = null; completedExecutors_ = other.completedExecutors_; bitField0_ = (bitField0_ & ~0x00000002); completedExecutorsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCompletedExecutorsFieldBuilder() : null; } else { completedExecutorsBuilder_.addAllMessages(other.completedExecutors_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getExecutorsCount(); i++) { if (!getExecutors(i).isInitialized()) { return false; } } for (int i = 0; i < getCompletedExecutorsCount(); i++) { if (!getCompletedExecutors(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.agent.Protos.Response.GetExecutors parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetExecutors) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List executors_ = java.util.Collections.emptyList(); private void ensureExecutorsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { executors_ = new java.util.ArrayList(executors_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.ExecutorOrBuilder> executorsBuilder_; /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public java.util.List getExecutorsList() { if (executorsBuilder_ == null) { return java.util.Collections.unmodifiableList(executors_); } else { return executorsBuilder_.getMessageList(); } } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public int getExecutorsCount() { if (executorsBuilder_ == null) { return executors_.size(); } else { return executorsBuilder_.getCount(); } } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor getExecutors(int index) { if (executorsBuilder_ == null) { return executors_.get(index); } else { return executorsBuilder_.getMessage(index); } } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public Builder setExecutors( int index, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor value) { if (executorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExecutorsIsMutable(); executors_.set(index, value); onChanged(); } else { executorsBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public Builder setExecutors( int index, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder builderForValue) { if (executorsBuilder_ == null) { ensureExecutorsIsMutable(); executors_.set(index, builderForValue.build()); onChanged(); } else { executorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public Builder addExecutors(org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor value) { if (executorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExecutorsIsMutable(); executors_.add(value); onChanged(); } else { executorsBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public Builder addExecutors( int index, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor value) { if (executorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExecutorsIsMutable(); executors_.add(index, value); onChanged(); } else { executorsBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public Builder addExecutors( org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder builderForValue) { if (executorsBuilder_ == null) { ensureExecutorsIsMutable(); executors_.add(builderForValue.build()); onChanged(); } else { executorsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public Builder addExecutors( int index, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder builderForValue) { if (executorsBuilder_ == null) { ensureExecutorsIsMutable(); executors_.add(index, builderForValue.build()); onChanged(); } else { executorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public Builder addAllExecutors( java.lang.Iterable values) { if (executorsBuilder_ == null) { ensureExecutorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, executors_); onChanged(); } else { executorsBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public Builder clearExecutors() { if (executorsBuilder_ == null) { executors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { executorsBuilder_.clear(); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public Builder removeExecutors(int index) { if (executorsBuilder_ == null) { ensureExecutorsIsMutable(); executors_.remove(index); onChanged(); } else { executorsBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder getExecutorsBuilder( int index) { return getExecutorsFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.ExecutorOrBuilder getExecutorsOrBuilder( int index) { if (executorsBuilder_ == null) { return executors_.get(index); } else { return executorsBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public java.util.List getExecutorsOrBuilderList() { if (executorsBuilder_ != null) { return executorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(executors_); } } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder addExecutorsBuilder() { return getExecutorsFieldBuilder().addBuilder( org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.getDefaultInstance()); } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder addExecutorsBuilder( int index) { return getExecutorsFieldBuilder().addBuilder( index, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.getDefaultInstance()); } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor executors = 1; */ public java.util.List getExecutorsBuilderList() { return getExecutorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.ExecutorOrBuilder> getExecutorsFieldBuilder() { if (executorsBuilder_ == null) { executorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.ExecutorOrBuilder>( executors_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); executors_ = null; } return executorsBuilder_; } private java.util.List completedExecutors_ = java.util.Collections.emptyList(); private void ensureCompletedExecutorsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { completedExecutors_ = new java.util.ArrayList(completedExecutors_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.ExecutorOrBuilder> completedExecutorsBuilder_; /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public java.util.List getCompletedExecutorsList() { if (completedExecutorsBuilder_ == null) { return java.util.Collections.unmodifiableList(completedExecutors_); } else { return completedExecutorsBuilder_.getMessageList(); } } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public int getCompletedExecutorsCount() { if (completedExecutorsBuilder_ == null) { return completedExecutors_.size(); } else { return completedExecutorsBuilder_.getCount(); } } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor getCompletedExecutors(int index) { if (completedExecutorsBuilder_ == null) { return completedExecutors_.get(index); } else { return completedExecutorsBuilder_.getMessage(index); } } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public Builder setCompletedExecutors( int index, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor value) { if (completedExecutorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompletedExecutorsIsMutable(); completedExecutors_.set(index, value); onChanged(); } else { completedExecutorsBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public Builder setCompletedExecutors( int index, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder builderForValue) { if (completedExecutorsBuilder_ == null) { ensureCompletedExecutorsIsMutable(); completedExecutors_.set(index, builderForValue.build()); onChanged(); } else { completedExecutorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public Builder addCompletedExecutors(org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor value) { if (completedExecutorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompletedExecutorsIsMutable(); completedExecutors_.add(value); onChanged(); } else { completedExecutorsBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public Builder addCompletedExecutors( int index, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor value) { if (completedExecutorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompletedExecutorsIsMutable(); completedExecutors_.add(index, value); onChanged(); } else { completedExecutorsBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public Builder addCompletedExecutors( org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder builderForValue) { if (completedExecutorsBuilder_ == null) { ensureCompletedExecutorsIsMutable(); completedExecutors_.add(builderForValue.build()); onChanged(); } else { completedExecutorsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public Builder addCompletedExecutors( int index, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder builderForValue) { if (completedExecutorsBuilder_ == null) { ensureCompletedExecutorsIsMutable(); completedExecutors_.add(index, builderForValue.build()); onChanged(); } else { completedExecutorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public Builder addAllCompletedExecutors( java.lang.Iterable values) { if (completedExecutorsBuilder_ == null) { ensureCompletedExecutorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, completedExecutors_); onChanged(); } else { completedExecutorsBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public Builder clearCompletedExecutors() { if (completedExecutorsBuilder_ == null) { completedExecutors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { completedExecutorsBuilder_.clear(); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public Builder removeCompletedExecutors(int index) { if (completedExecutorsBuilder_ == null) { ensureCompletedExecutorsIsMutable(); completedExecutors_.remove(index); onChanged(); } else { completedExecutorsBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder getCompletedExecutorsBuilder( int index) { return getCompletedExecutorsFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.ExecutorOrBuilder getCompletedExecutorsOrBuilder( int index) { if (completedExecutorsBuilder_ == null) { return completedExecutors_.get(index); } else { return completedExecutorsBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public java.util.List getCompletedExecutorsOrBuilderList() { if (completedExecutorsBuilder_ != null) { return completedExecutorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(completedExecutors_); } } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder addCompletedExecutorsBuilder() { return getCompletedExecutorsFieldBuilder().addBuilder( org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.getDefaultInstance()); } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder addCompletedExecutorsBuilder( int index) { return getCompletedExecutorsFieldBuilder().addBuilder( index, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.getDefaultInstance()); } /** * repeated .mesos.v1.agent.Response.GetExecutors.Executor completed_executors = 2; */ public java.util.List getCompletedExecutorsBuilderList() { return getCompletedExecutorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.ExecutorOrBuilder> getCompletedExecutorsFieldBuilder() { if (completedExecutorsBuilder_ == null) { completedExecutorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Executor.Builder, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.ExecutorOrBuilder>( completedExecutors_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); completedExecutors_ = null; } return completedExecutorsBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetExecutors) } static { defaultInstance = new GetExecutors(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetExecutors) } public interface GetTasksOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetTasks) com.google.protobuf.MessageOrBuilder { /** * repeated .mesos.v1.Task pending_tasks = 1; * *
       * Tasks that are pending in the agent's queue before an executor is
       * launched.
       * 
*/ java.util.List getPendingTasksList(); /** * repeated .mesos.v1.Task pending_tasks = 1; * *
       * Tasks that are pending in the agent's queue before an executor is
       * launched.
       * 
*/ org.apache.mesos.v1.Protos.Task getPendingTasks(int index); /** * repeated .mesos.v1.Task pending_tasks = 1; * *
       * Tasks that are pending in the agent's queue before an executor is
       * launched.
       * 
*/ int getPendingTasksCount(); /** * repeated .mesos.v1.Task pending_tasks = 1; * *
       * Tasks that are pending in the agent's queue before an executor is
       * launched.
       * 
*/ java.util.List getPendingTasksOrBuilderList(); /** * repeated .mesos.v1.Task pending_tasks = 1; * *
       * Tasks that are pending in the agent's queue before an executor is
       * launched.
       * 
*/ org.apache.mesos.v1.Protos.TaskOrBuilder getPendingTasksOrBuilder( int index); /** * repeated .mesos.v1.Task queued_tasks = 2; * *
       * Tasks that are enqueued for a launched executor that has not yet
       * registered.
       * 
*/ java.util.List getQueuedTasksList(); /** * repeated .mesos.v1.Task queued_tasks = 2; * *
       * Tasks that are enqueued for a launched executor that has not yet
       * registered.
       * 
*/ org.apache.mesos.v1.Protos.Task getQueuedTasks(int index); /** * repeated .mesos.v1.Task queued_tasks = 2; * *
       * Tasks that are enqueued for a launched executor that has not yet
       * registered.
       * 
*/ int getQueuedTasksCount(); /** * repeated .mesos.v1.Task queued_tasks = 2; * *
       * Tasks that are enqueued for a launched executor that has not yet
       * registered.
       * 
*/ java.util.List getQueuedTasksOrBuilderList(); /** * repeated .mesos.v1.Task queued_tasks = 2; * *
       * Tasks that are enqueued for a launched executor that has not yet
       * registered.
       * 
*/ org.apache.mesos.v1.Protos.TaskOrBuilder getQueuedTasksOrBuilder( int index); /** * repeated .mesos.v1.Task launched_tasks = 3; * *
       * Tasks that are running.
       * 
*/ java.util.List getLaunchedTasksList(); /** * repeated .mesos.v1.Task launched_tasks = 3; * *
       * Tasks that are running.
       * 
*/ org.apache.mesos.v1.Protos.Task getLaunchedTasks(int index); /** * repeated .mesos.v1.Task launched_tasks = 3; * *
       * Tasks that are running.
       * 
*/ int getLaunchedTasksCount(); /** * repeated .mesos.v1.Task launched_tasks = 3; * *
       * Tasks that are running.
       * 
*/ java.util.List getLaunchedTasksOrBuilderList(); /** * repeated .mesos.v1.Task launched_tasks = 3; * *
       * Tasks that are running.
       * 
*/ org.apache.mesos.v1.Protos.TaskOrBuilder getLaunchedTasksOrBuilder( int index); /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
       * Tasks that are terminated but pending updates.
       * 
*/ java.util.List getTerminatedTasksList(); /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
       * Tasks that are terminated but pending updates.
       * 
*/ org.apache.mesos.v1.Protos.Task getTerminatedTasks(int index); /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
       * Tasks that are terminated but pending updates.
       * 
*/ int getTerminatedTasksCount(); /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
       * Tasks that are terminated but pending updates.
       * 
*/ java.util.List getTerminatedTasksOrBuilderList(); /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
       * Tasks that are terminated but pending updates.
       * 
*/ org.apache.mesos.v1.Protos.TaskOrBuilder getTerminatedTasksOrBuilder( int index); /** * repeated .mesos.v1.Task completed_tasks = 5; * *
       * Tasks that are terminated and updates acked.
       * 
*/ java.util.List getCompletedTasksList(); /** * repeated .mesos.v1.Task completed_tasks = 5; * *
       * Tasks that are terminated and updates acked.
       * 
*/ org.apache.mesos.v1.Protos.Task getCompletedTasks(int index); /** * repeated .mesos.v1.Task completed_tasks = 5; * *
       * Tasks that are terminated and updates acked.
       * 
*/ int getCompletedTasksCount(); /** * repeated .mesos.v1.Task completed_tasks = 5; * *
       * Tasks that are terminated and updates acked.
       * 
*/ java.util.List getCompletedTasksOrBuilderList(); /** * repeated .mesos.v1.Task completed_tasks = 5; * *
       * Tasks that are terminated and updates acked.
       * 
*/ org.apache.mesos.v1.Protos.TaskOrBuilder getCompletedTasksOrBuilder( int index); } /** * Protobuf type {@code mesos.v1.agent.Response.GetTasks} * *
     * Lists information about all the tasks known to the agent at the current
     * time.
     * 
*/ public static final class GetTasks extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetTasks) GetTasksOrBuilder { // Use GetTasks.newBuilder() to construct. private GetTasks(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetTasks(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetTasks defaultInstance; public static GetTasks getDefaultInstance() { return defaultInstance; } public GetTasks getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetTasks( 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)) { pendingTasks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } pendingTasks_.add(input.readMessage(org.apache.mesos.v1.Protos.Task.PARSER, extensionRegistry)); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { queuedTasks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } queuedTasks_.add(input.readMessage(org.apache.mesos.v1.Protos.Task.PARSER, extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { launchedTasks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } launchedTasks_.add(input.readMessage(org.apache.mesos.v1.Protos.Task.PARSER, extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { terminatedTasks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } terminatedTasks_.add(input.readMessage(org.apache.mesos.v1.Protos.Task.PARSER, extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { completedTasks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } completedTasks_.add(input.readMessage(org.apache.mesos.v1.Protos.Task.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)) { pendingTasks_ = java.util.Collections.unmodifiableList(pendingTasks_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { queuedTasks_ = java.util.Collections.unmodifiableList(queuedTasks_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { launchedTasks_ = java.util.Collections.unmodifiableList(launchedTasks_); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { terminatedTasks_ = java.util.Collections.unmodifiableList(terminatedTasks_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { completedTasks_ = java.util.Collections.unmodifiableList(completedTasks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetTasks_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetTasks_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetTasks.class, org.apache.mesos.v1.agent.Protos.Response.GetTasks.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetTasks parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetTasks(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public static final int PENDING_TASKS_FIELD_NUMBER = 1; private java.util.List pendingTasks_; /** * repeated .mesos.v1.Task pending_tasks = 1; * *
       * Tasks that are pending in the agent's queue before an executor is
       * launched.
       * 
*/ public java.util.List getPendingTasksList() { return pendingTasks_; } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
       * Tasks that are pending in the agent's queue before an executor is
       * launched.
       * 
*/ public java.util.List getPendingTasksOrBuilderList() { return pendingTasks_; } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
       * Tasks that are pending in the agent's queue before an executor is
       * launched.
       * 
*/ public int getPendingTasksCount() { return pendingTasks_.size(); } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
       * Tasks that are pending in the agent's queue before an executor is
       * launched.
       * 
*/ public org.apache.mesos.v1.Protos.Task getPendingTasks(int index) { return pendingTasks_.get(index); } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
       * Tasks that are pending in the agent's queue before an executor is
       * launched.
       * 
*/ public org.apache.mesos.v1.Protos.TaskOrBuilder getPendingTasksOrBuilder( int index) { return pendingTasks_.get(index); } public static final int QUEUED_TASKS_FIELD_NUMBER = 2; private java.util.List queuedTasks_; /** * repeated .mesos.v1.Task queued_tasks = 2; * *
       * Tasks that are enqueued for a launched executor that has not yet
       * registered.
       * 
*/ public java.util.List getQueuedTasksList() { return queuedTasks_; } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
       * Tasks that are enqueued for a launched executor that has not yet
       * registered.
       * 
*/ public java.util.List getQueuedTasksOrBuilderList() { return queuedTasks_; } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
       * Tasks that are enqueued for a launched executor that has not yet
       * registered.
       * 
*/ public int getQueuedTasksCount() { return queuedTasks_.size(); } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
       * Tasks that are enqueued for a launched executor that has not yet
       * registered.
       * 
*/ public org.apache.mesos.v1.Protos.Task getQueuedTasks(int index) { return queuedTasks_.get(index); } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
       * Tasks that are enqueued for a launched executor that has not yet
       * registered.
       * 
*/ public org.apache.mesos.v1.Protos.TaskOrBuilder getQueuedTasksOrBuilder( int index) { return queuedTasks_.get(index); } public static final int LAUNCHED_TASKS_FIELD_NUMBER = 3; private java.util.List launchedTasks_; /** * repeated .mesos.v1.Task launched_tasks = 3; * *
       * Tasks that are running.
       * 
*/ public java.util.List getLaunchedTasksList() { return launchedTasks_; } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
       * Tasks that are running.
       * 
*/ public java.util.List getLaunchedTasksOrBuilderList() { return launchedTasks_; } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
       * Tasks that are running.
       * 
*/ public int getLaunchedTasksCount() { return launchedTasks_.size(); } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
       * Tasks that are running.
       * 
*/ public org.apache.mesos.v1.Protos.Task getLaunchedTasks(int index) { return launchedTasks_.get(index); } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
       * Tasks that are running.
       * 
*/ public org.apache.mesos.v1.Protos.TaskOrBuilder getLaunchedTasksOrBuilder( int index) { return launchedTasks_.get(index); } public static final int TERMINATED_TASKS_FIELD_NUMBER = 4; private java.util.List terminatedTasks_; /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
       * Tasks that are terminated but pending updates.
       * 
*/ public java.util.List getTerminatedTasksList() { return terminatedTasks_; } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
       * Tasks that are terminated but pending updates.
       * 
*/ public java.util.List getTerminatedTasksOrBuilderList() { return terminatedTasks_; } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
       * Tasks that are terminated but pending updates.
       * 
*/ public int getTerminatedTasksCount() { return terminatedTasks_.size(); } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
       * Tasks that are terminated but pending updates.
       * 
*/ public org.apache.mesos.v1.Protos.Task getTerminatedTasks(int index) { return terminatedTasks_.get(index); } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
       * Tasks that are terminated but pending updates.
       * 
*/ public org.apache.mesos.v1.Protos.TaskOrBuilder getTerminatedTasksOrBuilder( int index) { return terminatedTasks_.get(index); } public static final int COMPLETED_TASKS_FIELD_NUMBER = 5; private java.util.List completedTasks_; /** * repeated .mesos.v1.Task completed_tasks = 5; * *
       * Tasks that are terminated and updates acked.
       * 
*/ public java.util.List getCompletedTasksList() { return completedTasks_; } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
       * Tasks that are terminated and updates acked.
       * 
*/ public java.util.List getCompletedTasksOrBuilderList() { return completedTasks_; } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
       * Tasks that are terminated and updates acked.
       * 
*/ public int getCompletedTasksCount() { return completedTasks_.size(); } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
       * Tasks that are terminated and updates acked.
       * 
*/ public org.apache.mesos.v1.Protos.Task getCompletedTasks(int index) { return completedTasks_.get(index); } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
       * Tasks that are terminated and updates acked.
       * 
*/ public org.apache.mesos.v1.Protos.TaskOrBuilder getCompletedTasksOrBuilder( int index) { return completedTasks_.get(index); } private void initFields() { pendingTasks_ = java.util.Collections.emptyList(); queuedTasks_ = java.util.Collections.emptyList(); launchedTasks_ = java.util.Collections.emptyList(); terminatedTasks_ = java.util.Collections.emptyList(); completedTasks_ = 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 < getPendingTasksCount(); i++) { if (!getPendingTasks(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getQueuedTasksCount(); i++) { if (!getQueuedTasks(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getLaunchedTasksCount(); i++) { if (!getLaunchedTasks(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getTerminatedTasksCount(); i++) { if (!getTerminatedTasks(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getCompletedTasksCount(); i++) { if (!getCompletedTasks(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 < pendingTasks_.size(); i++) { output.writeMessage(1, pendingTasks_.get(i)); } for (int i = 0; i < queuedTasks_.size(); i++) { output.writeMessage(2, queuedTasks_.get(i)); } for (int i = 0; i < launchedTasks_.size(); i++) { output.writeMessage(3, launchedTasks_.get(i)); } for (int i = 0; i < terminatedTasks_.size(); i++) { output.writeMessage(4, terminatedTasks_.get(i)); } for (int i = 0; i < completedTasks_.size(); i++) { output.writeMessage(5, completedTasks_.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 < pendingTasks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, pendingTasks_.get(i)); } for (int i = 0; i < queuedTasks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, queuedTasks_.get(i)); } for (int i = 0; i < launchedTasks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, launchedTasks_.get(i)); } for (int i = 0; i < terminatedTasks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, terminatedTasks_.get(i)); } for (int i = 0; i < completedTasks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, completedTasks_.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.agent.Protos.Response.GetTasks parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetTasks 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.agent.Protos.Response.GetTasks parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetTasks parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetTasks parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetTasks 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.agent.Protos.Response.GetTasks parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetTasks 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.agent.Protos.Response.GetTasks parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetTasks 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.agent.Protos.Response.GetTasks 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.agent.Response.GetTasks} * *
       * Lists information about all the tasks known to the agent at the current
       * time.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetTasks) org.apache.mesos.v1.agent.Protos.Response.GetTasksOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetTasks_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetTasks_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetTasks.class, org.apache.mesos.v1.agent.Protos.Response.GetTasks.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetTasks.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPendingTasksFieldBuilder(); getQueuedTasksFieldBuilder(); getLaunchedTasksFieldBuilder(); getTerminatedTasksFieldBuilder(); getCompletedTasksFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (pendingTasksBuilder_ == null) { pendingTasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { pendingTasksBuilder_.clear(); } if (queuedTasksBuilder_ == null) { queuedTasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { queuedTasksBuilder_.clear(); } if (launchedTasksBuilder_ == null) { launchedTasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { launchedTasksBuilder_.clear(); } if (terminatedTasksBuilder_ == null) { terminatedTasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { terminatedTasksBuilder_.clear(); } if (completedTasksBuilder_ == null) { completedTasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { completedTasksBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetTasks_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetTasks getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetTasks.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetTasks build() { org.apache.mesos.v1.agent.Protos.Response.GetTasks result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetTasks buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetTasks result = new org.apache.mesos.v1.agent.Protos.Response.GetTasks(this); int from_bitField0_ = bitField0_; if (pendingTasksBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { pendingTasks_ = java.util.Collections.unmodifiableList(pendingTasks_); bitField0_ = (bitField0_ & ~0x00000001); } result.pendingTasks_ = pendingTasks_; } else { result.pendingTasks_ = pendingTasksBuilder_.build(); } if (queuedTasksBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { queuedTasks_ = java.util.Collections.unmodifiableList(queuedTasks_); bitField0_ = (bitField0_ & ~0x00000002); } result.queuedTasks_ = queuedTasks_; } else { result.queuedTasks_ = queuedTasksBuilder_.build(); } if (launchedTasksBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { launchedTasks_ = java.util.Collections.unmodifiableList(launchedTasks_); bitField0_ = (bitField0_ & ~0x00000004); } result.launchedTasks_ = launchedTasks_; } else { result.launchedTasks_ = launchedTasksBuilder_.build(); } if (terminatedTasksBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { terminatedTasks_ = java.util.Collections.unmodifiableList(terminatedTasks_); bitField0_ = (bitField0_ & ~0x00000008); } result.terminatedTasks_ = terminatedTasks_; } else { result.terminatedTasks_ = terminatedTasksBuilder_.build(); } if (completedTasksBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { completedTasks_ = java.util.Collections.unmodifiableList(completedTasks_); bitField0_ = (bitField0_ & ~0x00000010); } result.completedTasks_ = completedTasks_; } else { result.completedTasks_ = completedTasksBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetTasks) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetTasks)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetTasks other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetTasks.getDefaultInstance()) return this; if (pendingTasksBuilder_ == null) { if (!other.pendingTasks_.isEmpty()) { if (pendingTasks_.isEmpty()) { pendingTasks_ = other.pendingTasks_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePendingTasksIsMutable(); pendingTasks_.addAll(other.pendingTasks_); } onChanged(); } } else { if (!other.pendingTasks_.isEmpty()) { if (pendingTasksBuilder_.isEmpty()) { pendingTasksBuilder_.dispose(); pendingTasksBuilder_ = null; pendingTasks_ = other.pendingTasks_; bitField0_ = (bitField0_ & ~0x00000001); pendingTasksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPendingTasksFieldBuilder() : null; } else { pendingTasksBuilder_.addAllMessages(other.pendingTasks_); } } } if (queuedTasksBuilder_ == null) { if (!other.queuedTasks_.isEmpty()) { if (queuedTasks_.isEmpty()) { queuedTasks_ = other.queuedTasks_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureQueuedTasksIsMutable(); queuedTasks_.addAll(other.queuedTasks_); } onChanged(); } } else { if (!other.queuedTasks_.isEmpty()) { if (queuedTasksBuilder_.isEmpty()) { queuedTasksBuilder_.dispose(); queuedTasksBuilder_ = null; queuedTasks_ = other.queuedTasks_; bitField0_ = (bitField0_ & ~0x00000002); queuedTasksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getQueuedTasksFieldBuilder() : null; } else { queuedTasksBuilder_.addAllMessages(other.queuedTasks_); } } } if (launchedTasksBuilder_ == null) { if (!other.launchedTasks_.isEmpty()) { if (launchedTasks_.isEmpty()) { launchedTasks_ = other.launchedTasks_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLaunchedTasksIsMutable(); launchedTasks_.addAll(other.launchedTasks_); } onChanged(); } } else { if (!other.launchedTasks_.isEmpty()) { if (launchedTasksBuilder_.isEmpty()) { launchedTasksBuilder_.dispose(); launchedTasksBuilder_ = null; launchedTasks_ = other.launchedTasks_; bitField0_ = (bitField0_ & ~0x00000004); launchedTasksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getLaunchedTasksFieldBuilder() : null; } else { launchedTasksBuilder_.addAllMessages(other.launchedTasks_); } } } if (terminatedTasksBuilder_ == null) { if (!other.terminatedTasks_.isEmpty()) { if (terminatedTasks_.isEmpty()) { terminatedTasks_ = other.terminatedTasks_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTerminatedTasksIsMutable(); terminatedTasks_.addAll(other.terminatedTasks_); } onChanged(); } } else { if (!other.terminatedTasks_.isEmpty()) { if (terminatedTasksBuilder_.isEmpty()) { terminatedTasksBuilder_.dispose(); terminatedTasksBuilder_ = null; terminatedTasks_ = other.terminatedTasks_; bitField0_ = (bitField0_ & ~0x00000008); terminatedTasksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTerminatedTasksFieldBuilder() : null; } else { terminatedTasksBuilder_.addAllMessages(other.terminatedTasks_); } } } if (completedTasksBuilder_ == null) { if (!other.completedTasks_.isEmpty()) { if (completedTasks_.isEmpty()) { completedTasks_ = other.completedTasks_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureCompletedTasksIsMutable(); completedTasks_.addAll(other.completedTasks_); } onChanged(); } } else { if (!other.completedTasks_.isEmpty()) { if (completedTasksBuilder_.isEmpty()) { completedTasksBuilder_.dispose(); completedTasksBuilder_ = null; completedTasks_ = other.completedTasks_; bitField0_ = (bitField0_ & ~0x00000010); completedTasksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCompletedTasksFieldBuilder() : null; } else { completedTasksBuilder_.addAllMessages(other.completedTasks_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getPendingTasksCount(); i++) { if (!getPendingTasks(i).isInitialized()) { return false; } } for (int i = 0; i < getQueuedTasksCount(); i++) { if (!getQueuedTasks(i).isInitialized()) { return false; } } for (int i = 0; i < getLaunchedTasksCount(); i++) { if (!getLaunchedTasks(i).isInitialized()) { return false; } } for (int i = 0; i < getTerminatedTasksCount(); i++) { if (!getTerminatedTasks(i).isInitialized()) { return false; } } for (int i = 0; i < getCompletedTasksCount(); i++) { if (!getCompletedTasks(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.agent.Protos.Response.GetTasks parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetTasks) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List pendingTasks_ = java.util.Collections.emptyList(); private void ensurePendingTasksIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { pendingTasks_ = new java.util.ArrayList(pendingTasks_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder> pendingTasksBuilder_; /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public java.util.List getPendingTasksList() { if (pendingTasksBuilder_ == null) { return java.util.Collections.unmodifiableList(pendingTasks_); } else { return pendingTasksBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public int getPendingTasksCount() { if (pendingTasksBuilder_ == null) { return pendingTasks_.size(); } else { return pendingTasksBuilder_.getCount(); } } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public org.apache.mesos.v1.Protos.Task getPendingTasks(int index) { if (pendingTasksBuilder_ == null) { return pendingTasks_.get(index); } else { return pendingTasksBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public Builder setPendingTasks( int index, org.apache.mesos.v1.Protos.Task value) { if (pendingTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingTasksIsMutable(); pendingTasks_.set(index, value); onChanged(); } else { pendingTasksBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public Builder setPendingTasks( int index, org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (pendingTasksBuilder_ == null) { ensurePendingTasksIsMutable(); pendingTasks_.set(index, builderForValue.build()); onChanged(); } else { pendingTasksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public Builder addPendingTasks(org.apache.mesos.v1.Protos.Task value) { if (pendingTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingTasksIsMutable(); pendingTasks_.add(value); onChanged(); } else { pendingTasksBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public Builder addPendingTasks( int index, org.apache.mesos.v1.Protos.Task value) { if (pendingTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePendingTasksIsMutable(); pendingTasks_.add(index, value); onChanged(); } else { pendingTasksBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public Builder addPendingTasks( org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (pendingTasksBuilder_ == null) { ensurePendingTasksIsMutable(); pendingTasks_.add(builderForValue.build()); onChanged(); } else { pendingTasksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public Builder addPendingTasks( int index, org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (pendingTasksBuilder_ == null) { ensurePendingTasksIsMutable(); pendingTasks_.add(index, builderForValue.build()); onChanged(); } else { pendingTasksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public Builder addAllPendingTasks( java.lang.Iterable values) { if (pendingTasksBuilder_ == null) { ensurePendingTasksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pendingTasks_); onChanged(); } else { pendingTasksBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public Builder clearPendingTasks() { if (pendingTasksBuilder_ == null) { pendingTasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { pendingTasksBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public Builder removePendingTasks(int index) { if (pendingTasksBuilder_ == null) { ensurePendingTasksIsMutable(); pendingTasks_.remove(index); onChanged(); } else { pendingTasksBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder getPendingTasksBuilder( int index) { return getPendingTasksFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public org.apache.mesos.v1.Protos.TaskOrBuilder getPendingTasksOrBuilder( int index) { if (pendingTasksBuilder_ == null) { return pendingTasks_.get(index); } else { return pendingTasksBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public java.util.List getPendingTasksOrBuilderList() { if (pendingTasksBuilder_ != null) { return pendingTasksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pendingTasks_); } } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder addPendingTasksBuilder() { return getPendingTasksFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Task.getDefaultInstance()); } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder addPendingTasksBuilder( int index) { return getPendingTasksFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Task.getDefaultInstance()); } /** * repeated .mesos.v1.Task pending_tasks = 1; * *
         * Tasks that are pending in the agent's queue before an executor is
         * launched.
         * 
*/ public java.util.List getPendingTasksBuilderList() { return getPendingTasksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder> getPendingTasksFieldBuilder() { if (pendingTasksBuilder_ == null) { pendingTasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder>( pendingTasks_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); pendingTasks_ = null; } return pendingTasksBuilder_; } private java.util.List queuedTasks_ = java.util.Collections.emptyList(); private void ensureQueuedTasksIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { queuedTasks_ = new java.util.ArrayList(queuedTasks_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder> queuedTasksBuilder_; /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public java.util.List getQueuedTasksList() { if (queuedTasksBuilder_ == null) { return java.util.Collections.unmodifiableList(queuedTasks_); } else { return queuedTasksBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public int getQueuedTasksCount() { if (queuedTasksBuilder_ == null) { return queuedTasks_.size(); } else { return queuedTasksBuilder_.getCount(); } } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public org.apache.mesos.v1.Protos.Task getQueuedTasks(int index) { if (queuedTasksBuilder_ == null) { return queuedTasks_.get(index); } else { return queuedTasksBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public Builder setQueuedTasks( int index, org.apache.mesos.v1.Protos.Task value) { if (queuedTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueuedTasksIsMutable(); queuedTasks_.set(index, value); onChanged(); } else { queuedTasksBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public Builder setQueuedTasks( int index, org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (queuedTasksBuilder_ == null) { ensureQueuedTasksIsMutable(); queuedTasks_.set(index, builderForValue.build()); onChanged(); } else { queuedTasksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public Builder addQueuedTasks(org.apache.mesos.v1.Protos.Task value) { if (queuedTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueuedTasksIsMutable(); queuedTasks_.add(value); onChanged(); } else { queuedTasksBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public Builder addQueuedTasks( int index, org.apache.mesos.v1.Protos.Task value) { if (queuedTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureQueuedTasksIsMutable(); queuedTasks_.add(index, value); onChanged(); } else { queuedTasksBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public Builder addQueuedTasks( org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (queuedTasksBuilder_ == null) { ensureQueuedTasksIsMutable(); queuedTasks_.add(builderForValue.build()); onChanged(); } else { queuedTasksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public Builder addQueuedTasks( int index, org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (queuedTasksBuilder_ == null) { ensureQueuedTasksIsMutable(); queuedTasks_.add(index, builderForValue.build()); onChanged(); } else { queuedTasksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public Builder addAllQueuedTasks( java.lang.Iterable values) { if (queuedTasksBuilder_ == null) { ensureQueuedTasksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, queuedTasks_); onChanged(); } else { queuedTasksBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public Builder clearQueuedTasks() { if (queuedTasksBuilder_ == null) { queuedTasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { queuedTasksBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public Builder removeQueuedTasks(int index) { if (queuedTasksBuilder_ == null) { ensureQueuedTasksIsMutable(); queuedTasks_.remove(index); onChanged(); } else { queuedTasksBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder getQueuedTasksBuilder( int index) { return getQueuedTasksFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public org.apache.mesos.v1.Protos.TaskOrBuilder getQueuedTasksOrBuilder( int index) { if (queuedTasksBuilder_ == null) { return queuedTasks_.get(index); } else { return queuedTasksBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public java.util.List getQueuedTasksOrBuilderList() { if (queuedTasksBuilder_ != null) { return queuedTasksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(queuedTasks_); } } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder addQueuedTasksBuilder() { return getQueuedTasksFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Task.getDefaultInstance()); } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder addQueuedTasksBuilder( int index) { return getQueuedTasksFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Task.getDefaultInstance()); } /** * repeated .mesos.v1.Task queued_tasks = 2; * *
         * Tasks that are enqueued for a launched executor that has not yet
         * registered.
         * 
*/ public java.util.List getQueuedTasksBuilderList() { return getQueuedTasksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder> getQueuedTasksFieldBuilder() { if (queuedTasksBuilder_ == null) { queuedTasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder>( queuedTasks_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); queuedTasks_ = null; } return queuedTasksBuilder_; } private java.util.List launchedTasks_ = java.util.Collections.emptyList(); private void ensureLaunchedTasksIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { launchedTasks_ = new java.util.ArrayList(launchedTasks_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder> launchedTasksBuilder_; /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public java.util.List getLaunchedTasksList() { if (launchedTasksBuilder_ == null) { return java.util.Collections.unmodifiableList(launchedTasks_); } else { return launchedTasksBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public int getLaunchedTasksCount() { if (launchedTasksBuilder_ == null) { return launchedTasks_.size(); } else { return launchedTasksBuilder_.getCount(); } } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public org.apache.mesos.v1.Protos.Task getLaunchedTasks(int index) { if (launchedTasksBuilder_ == null) { return launchedTasks_.get(index); } else { return launchedTasksBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public Builder setLaunchedTasks( int index, org.apache.mesos.v1.Protos.Task value) { if (launchedTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLaunchedTasksIsMutable(); launchedTasks_.set(index, value); onChanged(); } else { launchedTasksBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public Builder setLaunchedTasks( int index, org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (launchedTasksBuilder_ == null) { ensureLaunchedTasksIsMutable(); launchedTasks_.set(index, builderForValue.build()); onChanged(); } else { launchedTasksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public Builder addLaunchedTasks(org.apache.mesos.v1.Protos.Task value) { if (launchedTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLaunchedTasksIsMutable(); launchedTasks_.add(value); onChanged(); } else { launchedTasksBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public Builder addLaunchedTasks( int index, org.apache.mesos.v1.Protos.Task value) { if (launchedTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLaunchedTasksIsMutable(); launchedTasks_.add(index, value); onChanged(); } else { launchedTasksBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public Builder addLaunchedTasks( org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (launchedTasksBuilder_ == null) { ensureLaunchedTasksIsMutable(); launchedTasks_.add(builderForValue.build()); onChanged(); } else { launchedTasksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public Builder addLaunchedTasks( int index, org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (launchedTasksBuilder_ == null) { ensureLaunchedTasksIsMutable(); launchedTasks_.add(index, builderForValue.build()); onChanged(); } else { launchedTasksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public Builder addAllLaunchedTasks( java.lang.Iterable values) { if (launchedTasksBuilder_ == null) { ensureLaunchedTasksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, launchedTasks_); onChanged(); } else { launchedTasksBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public Builder clearLaunchedTasks() { if (launchedTasksBuilder_ == null) { launchedTasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { launchedTasksBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public Builder removeLaunchedTasks(int index) { if (launchedTasksBuilder_ == null) { ensureLaunchedTasksIsMutable(); launchedTasks_.remove(index); onChanged(); } else { launchedTasksBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder getLaunchedTasksBuilder( int index) { return getLaunchedTasksFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public org.apache.mesos.v1.Protos.TaskOrBuilder getLaunchedTasksOrBuilder( int index) { if (launchedTasksBuilder_ == null) { return launchedTasks_.get(index); } else { return launchedTasksBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public java.util.List getLaunchedTasksOrBuilderList() { if (launchedTasksBuilder_ != null) { return launchedTasksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(launchedTasks_); } } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder addLaunchedTasksBuilder() { return getLaunchedTasksFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Task.getDefaultInstance()); } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder addLaunchedTasksBuilder( int index) { return getLaunchedTasksFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Task.getDefaultInstance()); } /** * repeated .mesos.v1.Task launched_tasks = 3; * *
         * Tasks that are running.
         * 
*/ public java.util.List getLaunchedTasksBuilderList() { return getLaunchedTasksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder> getLaunchedTasksFieldBuilder() { if (launchedTasksBuilder_ == null) { launchedTasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder>( launchedTasks_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); launchedTasks_ = null; } return launchedTasksBuilder_; } private java.util.List terminatedTasks_ = java.util.Collections.emptyList(); private void ensureTerminatedTasksIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { terminatedTasks_ = new java.util.ArrayList(terminatedTasks_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder> terminatedTasksBuilder_; /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public java.util.List getTerminatedTasksList() { if (terminatedTasksBuilder_ == null) { return java.util.Collections.unmodifiableList(terminatedTasks_); } else { return terminatedTasksBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public int getTerminatedTasksCount() { if (terminatedTasksBuilder_ == null) { return terminatedTasks_.size(); } else { return terminatedTasksBuilder_.getCount(); } } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public org.apache.mesos.v1.Protos.Task getTerminatedTasks(int index) { if (terminatedTasksBuilder_ == null) { return terminatedTasks_.get(index); } else { return terminatedTasksBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public Builder setTerminatedTasks( int index, org.apache.mesos.v1.Protos.Task value) { if (terminatedTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTerminatedTasksIsMutable(); terminatedTasks_.set(index, value); onChanged(); } else { terminatedTasksBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public Builder setTerminatedTasks( int index, org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (terminatedTasksBuilder_ == null) { ensureTerminatedTasksIsMutable(); terminatedTasks_.set(index, builderForValue.build()); onChanged(); } else { terminatedTasksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public Builder addTerminatedTasks(org.apache.mesos.v1.Protos.Task value) { if (terminatedTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTerminatedTasksIsMutable(); terminatedTasks_.add(value); onChanged(); } else { terminatedTasksBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public Builder addTerminatedTasks( int index, org.apache.mesos.v1.Protos.Task value) { if (terminatedTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTerminatedTasksIsMutable(); terminatedTasks_.add(index, value); onChanged(); } else { terminatedTasksBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public Builder addTerminatedTasks( org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (terminatedTasksBuilder_ == null) { ensureTerminatedTasksIsMutable(); terminatedTasks_.add(builderForValue.build()); onChanged(); } else { terminatedTasksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public Builder addTerminatedTasks( int index, org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (terminatedTasksBuilder_ == null) { ensureTerminatedTasksIsMutable(); terminatedTasks_.add(index, builderForValue.build()); onChanged(); } else { terminatedTasksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public Builder addAllTerminatedTasks( java.lang.Iterable values) { if (terminatedTasksBuilder_ == null) { ensureTerminatedTasksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, terminatedTasks_); onChanged(); } else { terminatedTasksBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public Builder clearTerminatedTasks() { if (terminatedTasksBuilder_ == null) { terminatedTasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { terminatedTasksBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public Builder removeTerminatedTasks(int index) { if (terminatedTasksBuilder_ == null) { ensureTerminatedTasksIsMutable(); terminatedTasks_.remove(index); onChanged(); } else { terminatedTasksBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder getTerminatedTasksBuilder( int index) { return getTerminatedTasksFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public org.apache.mesos.v1.Protos.TaskOrBuilder getTerminatedTasksOrBuilder( int index) { if (terminatedTasksBuilder_ == null) { return terminatedTasks_.get(index); } else { return terminatedTasksBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public java.util.List getTerminatedTasksOrBuilderList() { if (terminatedTasksBuilder_ != null) { return terminatedTasksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(terminatedTasks_); } } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder addTerminatedTasksBuilder() { return getTerminatedTasksFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Task.getDefaultInstance()); } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder addTerminatedTasksBuilder( int index) { return getTerminatedTasksFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Task.getDefaultInstance()); } /** * repeated .mesos.v1.Task terminated_tasks = 4; * *
         * Tasks that are terminated but pending updates.
         * 
*/ public java.util.List getTerminatedTasksBuilderList() { return getTerminatedTasksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder> getTerminatedTasksFieldBuilder() { if (terminatedTasksBuilder_ == null) { terminatedTasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder>( terminatedTasks_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); terminatedTasks_ = null; } return terminatedTasksBuilder_; } private java.util.List completedTasks_ = java.util.Collections.emptyList(); private void ensureCompletedTasksIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { completedTasks_ = new java.util.ArrayList(completedTasks_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder> completedTasksBuilder_; /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public java.util.List getCompletedTasksList() { if (completedTasksBuilder_ == null) { return java.util.Collections.unmodifiableList(completedTasks_); } else { return completedTasksBuilder_.getMessageList(); } } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public int getCompletedTasksCount() { if (completedTasksBuilder_ == null) { return completedTasks_.size(); } else { return completedTasksBuilder_.getCount(); } } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public org.apache.mesos.v1.Protos.Task getCompletedTasks(int index) { if (completedTasksBuilder_ == null) { return completedTasks_.get(index); } else { return completedTasksBuilder_.getMessage(index); } } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public Builder setCompletedTasks( int index, org.apache.mesos.v1.Protos.Task value) { if (completedTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompletedTasksIsMutable(); completedTasks_.set(index, value); onChanged(); } else { completedTasksBuilder_.setMessage(index, value); } return this; } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public Builder setCompletedTasks( int index, org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (completedTasksBuilder_ == null) { ensureCompletedTasksIsMutable(); completedTasks_.set(index, builderForValue.build()); onChanged(); } else { completedTasksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public Builder addCompletedTasks(org.apache.mesos.v1.Protos.Task value) { if (completedTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompletedTasksIsMutable(); completedTasks_.add(value); onChanged(); } else { completedTasksBuilder_.addMessage(value); } return this; } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public Builder addCompletedTasks( int index, org.apache.mesos.v1.Protos.Task value) { if (completedTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCompletedTasksIsMutable(); completedTasks_.add(index, value); onChanged(); } else { completedTasksBuilder_.addMessage(index, value); } return this; } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public Builder addCompletedTasks( org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (completedTasksBuilder_ == null) { ensureCompletedTasksIsMutable(); completedTasks_.add(builderForValue.build()); onChanged(); } else { completedTasksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public Builder addCompletedTasks( int index, org.apache.mesos.v1.Protos.Task.Builder builderForValue) { if (completedTasksBuilder_ == null) { ensureCompletedTasksIsMutable(); completedTasks_.add(index, builderForValue.build()); onChanged(); } else { completedTasksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public Builder addAllCompletedTasks( java.lang.Iterable values) { if (completedTasksBuilder_ == null) { ensureCompletedTasksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, completedTasks_); onChanged(); } else { completedTasksBuilder_.addAllMessages(values); } return this; } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public Builder clearCompletedTasks() { if (completedTasksBuilder_ == null) { completedTasks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { completedTasksBuilder_.clear(); } return this; } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public Builder removeCompletedTasks(int index) { if (completedTasksBuilder_ == null) { ensureCompletedTasksIsMutable(); completedTasks_.remove(index); onChanged(); } else { completedTasksBuilder_.remove(index); } return this; } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder getCompletedTasksBuilder( int index) { return getCompletedTasksFieldBuilder().getBuilder(index); } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public org.apache.mesos.v1.Protos.TaskOrBuilder getCompletedTasksOrBuilder( int index) { if (completedTasksBuilder_ == null) { return completedTasks_.get(index); } else { return completedTasksBuilder_.getMessageOrBuilder(index); } } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public java.util.List getCompletedTasksOrBuilderList() { if (completedTasksBuilder_ != null) { return completedTasksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(completedTasks_); } } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder addCompletedTasksBuilder() { return getCompletedTasksFieldBuilder().addBuilder( org.apache.mesos.v1.Protos.Task.getDefaultInstance()); } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public org.apache.mesos.v1.Protos.Task.Builder addCompletedTasksBuilder( int index) { return getCompletedTasksFieldBuilder().addBuilder( index, org.apache.mesos.v1.Protos.Task.getDefaultInstance()); } /** * repeated .mesos.v1.Task completed_tasks = 5; * *
         * Tasks that are terminated and updates acked.
         * 
*/ public java.util.List getCompletedTasksBuilderList() { return getCompletedTasksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder> getCompletedTasksFieldBuilder() { if (completedTasksBuilder_ == null) { completedTasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.mesos.v1.Protos.Task, org.apache.mesos.v1.Protos.Task.Builder, org.apache.mesos.v1.Protos.TaskOrBuilder>( completedTasks_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); completedTasks_ = null; } return completedTasksBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetTasks) } static { defaultInstance = new GetTasks(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetTasks) } public interface GetAgentOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.GetAgent) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.AgentInfo agent_info = 1; */ boolean hasAgentInfo(); /** * optional .mesos.v1.AgentInfo agent_info = 1; */ org.apache.mesos.v1.Protos.AgentInfo getAgentInfo(); /** * optional .mesos.v1.AgentInfo agent_info = 1; */ org.apache.mesos.v1.Protos.AgentInfoOrBuilder getAgentInfoOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.Response.GetAgent} * *
     * Contains the agent's information.
     * 
*/ public static final class GetAgent extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.GetAgent) GetAgentOrBuilder { // Use GetAgent.newBuilder() to construct. private GetAgent(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetAgent(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetAgent defaultInstance; public static GetAgent getDefaultInstance() { return defaultInstance; } public GetAgent getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetAgent( 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.AgentInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = agentInfo_.toBuilder(); } agentInfo_ = input.readMessage(org.apache.mesos.v1.Protos.AgentInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(agentInfo_); agentInfo_ = 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.agent.Protos.internal_static_mesos_v1_agent_Response_GetAgent_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetAgent.class, org.apache.mesos.v1.agent.Protos.Response.GetAgent.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetAgent(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int AGENT_INFO_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.AgentInfo agentInfo_; /** * optional .mesos.v1.AgentInfo agent_info = 1; */ public boolean hasAgentInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.AgentInfo agent_info = 1; */ public org.apache.mesos.v1.Protos.AgentInfo getAgentInfo() { return agentInfo_; } /** * optional .mesos.v1.AgentInfo agent_info = 1; */ public org.apache.mesos.v1.Protos.AgentInfoOrBuilder getAgentInfoOrBuilder() { return agentInfo_; } private void initFields() { agentInfo_ = org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasAgentInfo()) { if (!getAgentInfo().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, agentInfo_); } 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, agentInfo_); } 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.agent.Protos.Response.GetAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetAgent 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.agent.Protos.Response.GetAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.GetAgent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.GetAgent parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetAgent 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.agent.Protos.Response.GetAgent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetAgent 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.agent.Protos.Response.GetAgent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.GetAgent 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.agent.Protos.Response.GetAgent 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.agent.Response.GetAgent} * *
       * Contains the agent's information.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.GetAgent) org.apache.mesos.v1.agent.Protos.Response.GetAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetAgent_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_GetAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.GetAgent.class, org.apache.mesos.v1.agent.Protos.Response.GetAgent.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.GetAgent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAgentInfoFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (agentInfoBuilder_ == null) { agentInfo_ = org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance(); } else { agentInfoBuilder_.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.agent.Protos.internal_static_mesos_v1_agent_Response_GetAgent_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.GetAgent getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.GetAgent.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.GetAgent build() { org.apache.mesos.v1.agent.Protos.Response.GetAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.GetAgent buildPartial() { org.apache.mesos.v1.agent.Protos.Response.GetAgent result = new org.apache.mesos.v1.agent.Protos.Response.GetAgent(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (agentInfoBuilder_ == null) { result.agentInfo_ = agentInfo_; } else { result.agentInfo_ = agentInfoBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.GetAgent) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.GetAgent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.GetAgent other) { if (other == org.apache.mesos.v1.agent.Protos.Response.GetAgent.getDefaultInstance()) return this; if (other.hasAgentInfo()) { mergeAgentInfo(other.getAgentInfo()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasAgentInfo()) { if (!getAgentInfo().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.agent.Protos.Response.GetAgent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.GetAgent) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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_; /** * optional .mesos.v1.AgentInfo agent_info = 1; */ public boolean hasAgentInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.AgentInfo agent_info = 1; */ public org.apache.mesos.v1.Protos.AgentInfo getAgentInfo() { if (agentInfoBuilder_ == null) { return agentInfo_; } else { return agentInfoBuilder_.getMessage(); } } /** * optional .mesos.v1.AgentInfo agent_info = 1; */ 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_ |= 0x00000001; return this; } /** * optional .mesos.v1.AgentInfo agent_info = 1; */ public Builder setAgentInfo( org.apache.mesos.v1.Protos.AgentInfo.Builder builderForValue) { if (agentInfoBuilder_ == null) { agentInfo_ = builderForValue.build(); onChanged(); } else { agentInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.AgentInfo agent_info = 1; */ public Builder mergeAgentInfo(org.apache.mesos.v1.Protos.AgentInfo value) { if (agentInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && 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_ |= 0x00000001; return this; } /** * optional .mesos.v1.AgentInfo agent_info = 1; */ public Builder clearAgentInfo() { if (agentInfoBuilder_ == null) { agentInfo_ = org.apache.mesos.v1.Protos.AgentInfo.getDefaultInstance(); onChanged(); } else { agentInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.AgentInfo agent_info = 1; */ public org.apache.mesos.v1.Protos.AgentInfo.Builder getAgentInfoBuilder() { bitField0_ |= 0x00000001; onChanged(); return getAgentInfoFieldBuilder().getBuilder(); } /** * optional .mesos.v1.AgentInfo agent_info = 1; */ public org.apache.mesos.v1.Protos.AgentInfoOrBuilder getAgentInfoOrBuilder() { if (agentInfoBuilder_ != null) { return agentInfoBuilder_.getMessageOrBuilder(); } else { return agentInfo_; } } /** * optional .mesos.v1.AgentInfo agent_info = 1; */ 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_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.GetAgent) } static { defaultInstance = new GetAgent(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.GetAgent) } public interface WaitNestedContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.Response.WaitNestedContainer) com.google.protobuf.MessageOrBuilder { /** * optional int32 exit_status = 1; */ boolean hasExitStatus(); /** * optional int32 exit_status = 1; */ int getExitStatus(); } /** * Protobuf type {@code mesos.v1.agent.Response.WaitNestedContainer} * *
     * Returns termination information about the nested container.
     * 
*/ public static final class WaitNestedContainer extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.Response.WaitNestedContainer) WaitNestedContainerOrBuilder { // Use WaitNestedContainer.newBuilder() to construct. private WaitNestedContainer(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private WaitNestedContainer(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final WaitNestedContainer defaultInstance; public static WaitNestedContainer getDefaultInstance() { return defaultInstance; } public WaitNestedContainer getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WaitNestedContainer( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; exitStatus_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_WaitNestedContainer_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_WaitNestedContainer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.class, org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WaitNestedContainer parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WaitNestedContainer(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int EXIT_STATUS_FIELD_NUMBER = 1; private int exitStatus_; /** * optional int32 exit_status = 1; */ public boolean hasExitStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 exit_status = 1; */ public int getExitStatus() { return exitStatus_; } private void initFields() { exitStatus_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 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.writeInt32(1, exitStatus_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, exitStatus_); } 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.agent.Protos.Response.WaitNestedContainer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer 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.agent.Protos.Response.WaitNestedContainer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer 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.agent.Protos.Response.WaitNestedContainer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer 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.agent.Protos.Response.WaitNestedContainer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer 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.agent.Protos.Response.WaitNestedContainer 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.agent.Response.WaitNestedContainer} * *
       * Returns termination information about the nested container.
       * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response.WaitNestedContainer) org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_WaitNestedContainer_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_WaitNestedContainer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.class, org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.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(); exitStatus_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_WaitNestedContainer_descriptor; } public org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer build() { org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer buildPartial() { org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer result = new org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.exitStatus_ = exitStatus_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer other) { if (other == org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.getDefaultInstance()) return this; if (other.hasExitStatus()) { setExitStatus(other.getExitStatus()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int exitStatus_ ; /** * optional int32 exit_status = 1; */ public boolean hasExitStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int32 exit_status = 1; */ public int getExitStatus() { return exitStatus_; } /** * optional int32 exit_status = 1; */ public Builder setExitStatus(int value) { bitField0_ |= 0x00000001; exitStatus_ = value; onChanged(); return this; } /** * optional int32 exit_status = 1; */ public Builder clearExitStatus() { bitField0_ = (bitField0_ & ~0x00000001); exitStatus_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response.WaitNestedContainer) } static { defaultInstance = new WaitNestedContainer(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response.WaitNestedContainer) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private org.apache.mesos.v1.agent.Protos.Response.Type type_; /** * optional .mesos.v1.agent.Response.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.Response.Type type = 1; */ public org.apache.mesos.v1.agent.Protos.Response.Type getType() { return type_; } public static final int GET_HEALTH_FIELD_NUMBER = 2; private org.apache.mesos.v1.agent.Protos.Response.GetHealth getHealth_; /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ public boolean hasGetHealth() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetHealth getGetHealth() { return getHealth_; } /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetHealthOrBuilder getGetHealthOrBuilder() { return getHealth_; } public static final int GET_FLAGS_FIELD_NUMBER = 3; private org.apache.mesos.v1.agent.Protos.Response.GetFlags getFlags_; /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ public boolean hasGetFlags() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ public org.apache.mesos.v1.agent.Protos.Response.GetFlags getGetFlags() { return getFlags_; } /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ public org.apache.mesos.v1.agent.Protos.Response.GetFlagsOrBuilder getGetFlagsOrBuilder() { return getFlags_; } public static final int GET_VERSION_FIELD_NUMBER = 4; private org.apache.mesos.v1.agent.Protos.Response.GetVersion getVersion_; /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ public boolean hasGetVersion() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ public org.apache.mesos.v1.agent.Protos.Response.GetVersion getGetVersion() { return getVersion_; } /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ public org.apache.mesos.v1.agent.Protos.Response.GetVersionOrBuilder getGetVersionOrBuilder() { return getVersion_; } public static final int GET_METRICS_FIELD_NUMBER = 5; private org.apache.mesos.v1.agent.Protos.Response.GetMetrics getMetrics_; /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ public boolean hasGetMetrics() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ public org.apache.mesos.v1.agent.Protos.Response.GetMetrics getGetMetrics() { return getMetrics_; } /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ public org.apache.mesos.v1.agent.Protos.Response.GetMetricsOrBuilder getGetMetricsOrBuilder() { return getMetrics_; } public static final int GET_LOGGING_LEVEL_FIELD_NUMBER = 6; private org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel getLoggingLevel_; /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ public boolean hasGetLoggingLevel() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ public org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel getGetLoggingLevel() { return getLoggingLevel_; } /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ public org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevelOrBuilder getGetLoggingLevelOrBuilder() { return getLoggingLevel_; } public static final int LIST_FILES_FIELD_NUMBER = 7; private org.apache.mesos.v1.agent.Protos.Response.ListFiles listFiles_; /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ public boolean hasListFiles() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ public org.apache.mesos.v1.agent.Protos.Response.ListFiles getListFiles() { return listFiles_; } /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ public org.apache.mesos.v1.agent.Protos.Response.ListFilesOrBuilder getListFilesOrBuilder() { return listFiles_; } public static final int READ_FILE_FIELD_NUMBER = 8; private org.apache.mesos.v1.agent.Protos.Response.ReadFile readFile_; /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ public boolean hasReadFile() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ public org.apache.mesos.v1.agent.Protos.Response.ReadFile getReadFile() { return readFile_; } /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ public org.apache.mesos.v1.agent.Protos.Response.ReadFileOrBuilder getReadFileOrBuilder() { return readFile_; } public static final int GET_STATE_FIELD_NUMBER = 9; private org.apache.mesos.v1.agent.Protos.Response.GetState getState_; /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ public boolean hasGetState() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ public org.apache.mesos.v1.agent.Protos.Response.GetState getGetState() { return getState_; } /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ public org.apache.mesos.v1.agent.Protos.Response.GetStateOrBuilder getGetStateOrBuilder() { return getState_; } public static final int GET_CONTAINERS_FIELD_NUMBER = 10; private org.apache.mesos.v1.agent.Protos.Response.GetContainers getContainers_; /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ public boolean hasGetContainers() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ public org.apache.mesos.v1.agent.Protos.Response.GetContainers getGetContainers() { return getContainers_; } /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ public org.apache.mesos.v1.agent.Protos.Response.GetContainersOrBuilder getGetContainersOrBuilder() { return getContainers_; } public static final int GET_FRAMEWORKS_FIELD_NUMBER = 11; private org.apache.mesos.v1.agent.Protos.Response.GetFrameworks getFrameworks_; /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ public boolean hasGetFrameworks() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks getGetFrameworks() { return getFrameworks_; } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworksOrBuilder getGetFrameworksOrBuilder() { return getFrameworks_; } public static final int GET_EXECUTORS_FIELD_NUMBER = 12; private org.apache.mesos.v1.agent.Protos.Response.GetExecutors getExecutors_; /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ public boolean hasGetExecutors() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors getGetExecutors() { return getExecutors_; } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutorsOrBuilder getGetExecutorsOrBuilder() { return getExecutors_; } public static final int GET_TASKS_FIELD_NUMBER = 13; private org.apache.mesos.v1.agent.Protos.Response.GetTasks getTasks_; /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ public boolean hasGetTasks() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ public org.apache.mesos.v1.agent.Protos.Response.GetTasks getGetTasks() { return getTasks_; } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ public org.apache.mesos.v1.agent.Protos.Response.GetTasksOrBuilder getGetTasksOrBuilder() { return getTasks_; } public static final int GET_AGENT_FIELD_NUMBER = 15; private org.apache.mesos.v1.agent.Protos.Response.GetAgent getAgent_; /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ public boolean hasGetAgent() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ public org.apache.mesos.v1.agent.Protos.Response.GetAgent getGetAgent() { return getAgent_; } /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ public org.apache.mesos.v1.agent.Protos.Response.GetAgentOrBuilder getGetAgentOrBuilder() { return getAgent_; } public static final int WAIT_NESTED_CONTAINER_FIELD_NUMBER = 14; private org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer waitNestedContainer_; /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ public boolean hasWaitNestedContainer() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ public org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer getWaitNestedContainer() { return waitNestedContainer_; } /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ public org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainerOrBuilder getWaitNestedContainerOrBuilder() { return waitNestedContainer_; } private void initFields() { type_ = org.apache.mesos.v1.agent.Protos.Response.Type.UNKNOWN; getHealth_ = org.apache.mesos.v1.agent.Protos.Response.GetHealth.getDefaultInstance(); getFlags_ = org.apache.mesos.v1.agent.Protos.Response.GetFlags.getDefaultInstance(); getVersion_ = org.apache.mesos.v1.agent.Protos.Response.GetVersion.getDefaultInstance(); getMetrics_ = org.apache.mesos.v1.agent.Protos.Response.GetMetrics.getDefaultInstance(); getLoggingLevel_ = org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.getDefaultInstance(); listFiles_ = org.apache.mesos.v1.agent.Protos.Response.ListFiles.getDefaultInstance(); readFile_ = org.apache.mesos.v1.agent.Protos.Response.ReadFile.getDefaultInstance(); getState_ = org.apache.mesos.v1.agent.Protos.Response.GetState.getDefaultInstance(); getContainers_ = org.apache.mesos.v1.agent.Protos.Response.GetContainers.getDefaultInstance(); getFrameworks_ = org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.getDefaultInstance(); getExecutors_ = org.apache.mesos.v1.agent.Protos.Response.GetExecutors.getDefaultInstance(); getTasks_ = org.apache.mesos.v1.agent.Protos.Response.GetTasks.getDefaultInstance(); getAgent_ = org.apache.mesos.v1.agent.Protos.Response.GetAgent.getDefaultInstance(); waitNestedContainer_ = org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasGetHealth()) { if (!getGetHealth().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGetFlags()) { if (!getGetFlags().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGetVersion()) { if (!getGetVersion().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGetMetrics()) { if (!getGetMetrics().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGetLoggingLevel()) { if (!getGetLoggingLevel().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasListFiles()) { if (!getListFiles().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasReadFile()) { if (!getReadFile().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGetState()) { if (!getGetState().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGetContainers()) { if (!getGetContainers().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGetFrameworks()) { if (!getGetFrameworks().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGetExecutors()) { if (!getGetExecutors().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGetTasks()) { if (!getGetTasks().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasGetAgent()) { if (!getGetAgent().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, getHealth_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, getFlags_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getVersion_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, getMetrics_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeMessage(6, getLoggingLevel_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeMessage(7, listFiles_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(8, readFile_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeMessage(9, getState_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeMessage(10, getContainers_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeMessage(11, getFrameworks_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeMessage(12, getExecutors_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeMessage(13, getTasks_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeMessage(14, waitNestedContainer_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeMessage(15, getAgent_); } 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, getHealth_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFlags_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getVersion_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMetrics_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getLoggingLevel_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, listFiles_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, readFile_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getState_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getContainers_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getFrameworks_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getExecutors_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getTasks_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, waitNestedContainer_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getAgent_); } 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.agent.Protos.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response 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.agent.Protos.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response 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.agent.Protos.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response 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.agent.Protos.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.Response 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.agent.Protos.Response 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.agent.Response} * *
     **
     * Synchronous responses for all calls made to the v1 agent API.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.Response) org.apache.mesos.v1.agent.Protos.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.Response.class, org.apache.mesos.v1.agent.Protos.Response.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.Response.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getGetHealthFieldBuilder(); getGetFlagsFieldBuilder(); getGetVersionFieldBuilder(); getGetMetricsFieldBuilder(); getGetLoggingLevelFieldBuilder(); getListFilesFieldBuilder(); getReadFileFieldBuilder(); getGetStateFieldBuilder(); getGetContainersFieldBuilder(); getGetFrameworksFieldBuilder(); getGetExecutorsFieldBuilder(); getGetTasksFieldBuilder(); getGetAgentFieldBuilder(); getWaitNestedContainerFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = org.apache.mesos.v1.agent.Protos.Response.Type.UNKNOWN; bitField0_ = (bitField0_ & ~0x00000001); if (getHealthBuilder_ == null) { getHealth_ = org.apache.mesos.v1.agent.Protos.Response.GetHealth.getDefaultInstance(); } else { getHealthBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (getFlagsBuilder_ == null) { getFlags_ = org.apache.mesos.v1.agent.Protos.Response.GetFlags.getDefaultInstance(); } else { getFlagsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (getVersionBuilder_ == null) { getVersion_ = org.apache.mesos.v1.agent.Protos.Response.GetVersion.getDefaultInstance(); } else { getVersionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (getMetricsBuilder_ == null) { getMetrics_ = org.apache.mesos.v1.agent.Protos.Response.GetMetrics.getDefaultInstance(); } else { getMetricsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (getLoggingLevelBuilder_ == null) { getLoggingLevel_ = org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.getDefaultInstance(); } else { getLoggingLevelBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (listFilesBuilder_ == null) { listFiles_ = org.apache.mesos.v1.agent.Protos.Response.ListFiles.getDefaultInstance(); } else { listFilesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (readFileBuilder_ == null) { readFile_ = org.apache.mesos.v1.agent.Protos.Response.ReadFile.getDefaultInstance(); } else { readFileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (getStateBuilder_ == null) { getState_ = org.apache.mesos.v1.agent.Protos.Response.GetState.getDefaultInstance(); } else { getStateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); if (getContainersBuilder_ == null) { getContainers_ = org.apache.mesos.v1.agent.Protos.Response.GetContainers.getDefaultInstance(); } else { getContainersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (getFrameworksBuilder_ == null) { getFrameworks_ = org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.getDefaultInstance(); } else { getFrameworksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); if (getExecutorsBuilder_ == null) { getExecutors_ = org.apache.mesos.v1.agent.Protos.Response.GetExecutors.getDefaultInstance(); } else { getExecutorsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (getTasksBuilder_ == null) { getTasks_ = org.apache.mesos.v1.agent.Protos.Response.GetTasks.getDefaultInstance(); } else { getTasksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); if (getAgentBuilder_ == null) { getAgent_ = org.apache.mesos.v1.agent.Protos.Response.GetAgent.getDefaultInstance(); } else { getAgentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); if (waitNestedContainerBuilder_ == null) { waitNestedContainer_ = org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.getDefaultInstance(); } else { waitNestedContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_Response_descriptor; } public org.apache.mesos.v1.agent.Protos.Response getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.Response.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.Response build() { org.apache.mesos.v1.agent.Protos.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.Response buildPartial() { org.apache.mesos.v1.agent.Protos.Response result = new org.apache.mesos.v1.agent.Protos.Response(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 (getHealthBuilder_ == null) { result.getHealth_ = getHealth_; } else { result.getHealth_ = getHealthBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (getFlagsBuilder_ == null) { result.getFlags_ = getFlags_; } else { result.getFlags_ = getFlagsBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (getVersionBuilder_ == null) { result.getVersion_ = getVersion_; } else { result.getVersion_ = getVersionBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (getMetricsBuilder_ == null) { result.getMetrics_ = getMetrics_; } else { result.getMetrics_ = getMetricsBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } if (getLoggingLevelBuilder_ == null) { result.getLoggingLevel_ = getLoggingLevel_; } else { result.getLoggingLevel_ = getLoggingLevelBuilder_.build(); } if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } if (listFilesBuilder_ == null) { result.listFiles_ = listFiles_; } else { result.listFiles_ = listFilesBuilder_.build(); } if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (readFileBuilder_ == null) { result.readFile_ = readFile_; } else { result.readFile_ = readFileBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } if (getStateBuilder_ == null) { result.getState_ = getState_; } else { result.getState_ = getStateBuilder_.build(); } if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } if (getContainersBuilder_ == null) { result.getContainers_ = getContainers_; } else { result.getContainers_ = getContainersBuilder_.build(); } if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } if (getFrameworksBuilder_ == null) { result.getFrameworks_ = getFrameworks_; } else { result.getFrameworks_ = getFrameworksBuilder_.build(); } if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } if (getExecutorsBuilder_ == null) { result.getExecutors_ = getExecutors_; } else { result.getExecutors_ = getExecutorsBuilder_.build(); } if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } if (getTasksBuilder_ == null) { result.getTasks_ = getTasks_; } else { result.getTasks_ = getTasksBuilder_.build(); } if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } if (getAgentBuilder_ == null) { result.getAgent_ = getAgent_; } else { result.getAgent_ = getAgentBuilder_.build(); } if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } if (waitNestedContainerBuilder_ == null) { result.waitNestedContainer_ = waitNestedContainer_; } else { result.waitNestedContainer_ = waitNestedContainerBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.Response) { return mergeFrom((org.apache.mesos.v1.agent.Protos.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.Response other) { if (other == org.apache.mesos.v1.agent.Protos.Response.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasGetHealth()) { mergeGetHealth(other.getGetHealth()); } if (other.hasGetFlags()) { mergeGetFlags(other.getGetFlags()); } if (other.hasGetVersion()) { mergeGetVersion(other.getGetVersion()); } if (other.hasGetMetrics()) { mergeGetMetrics(other.getGetMetrics()); } if (other.hasGetLoggingLevel()) { mergeGetLoggingLevel(other.getGetLoggingLevel()); } if (other.hasListFiles()) { mergeListFiles(other.getListFiles()); } if (other.hasReadFile()) { mergeReadFile(other.getReadFile()); } if (other.hasGetState()) { mergeGetState(other.getGetState()); } if (other.hasGetContainers()) { mergeGetContainers(other.getGetContainers()); } if (other.hasGetFrameworks()) { mergeGetFrameworks(other.getGetFrameworks()); } if (other.hasGetExecutors()) { mergeGetExecutors(other.getGetExecutors()); } if (other.hasGetTasks()) { mergeGetTasks(other.getGetTasks()); } if (other.hasGetAgent()) { mergeGetAgent(other.getGetAgent()); } if (other.hasWaitNestedContainer()) { mergeWaitNestedContainer(other.getWaitNestedContainer()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasGetHealth()) { if (!getGetHealth().isInitialized()) { return false; } } if (hasGetFlags()) { if (!getGetFlags().isInitialized()) { return false; } } if (hasGetVersion()) { if (!getGetVersion().isInitialized()) { return false; } } if (hasGetMetrics()) { if (!getGetMetrics().isInitialized()) { return false; } } if (hasGetLoggingLevel()) { if (!getGetLoggingLevel().isInitialized()) { return false; } } if (hasListFiles()) { if (!getListFiles().isInitialized()) { return false; } } if (hasReadFile()) { if (!getReadFile().isInitialized()) { return false; } } if (hasGetState()) { if (!getGetState().isInitialized()) { return false; } } if (hasGetContainers()) { if (!getGetContainers().isInitialized()) { return false; } } if (hasGetFrameworks()) { if (!getGetFrameworks().isInitialized()) { return false; } } if (hasGetExecutors()) { if (!getGetExecutors().isInitialized()) { return false; } } if (hasGetTasks()) { if (!getGetTasks().isInitialized()) { return false; } } if (hasGetAgent()) { if (!getGetAgent().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.agent.Protos.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.Response) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.agent.Protos.Response.Type type_ = org.apache.mesos.v1.agent.Protos.Response.Type.UNKNOWN; /** * optional .mesos.v1.agent.Response.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.Response.Type type = 1; */ public org.apache.mesos.v1.agent.Protos.Response.Type getType() { return type_; } /** * optional .mesos.v1.agent.Response.Type type = 1; */ public Builder setType(org.apache.mesos.v1.agent.Protos.Response.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * optional .mesos.v1.agent.Response.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.mesos.v1.agent.Protos.Response.Type.UNKNOWN; onChanged(); return this; } private org.apache.mesos.v1.agent.Protos.Response.GetHealth getHealth_ = org.apache.mesos.v1.agent.Protos.Response.GetHealth.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetHealth, org.apache.mesos.v1.agent.Protos.Response.GetHealth.Builder, org.apache.mesos.v1.agent.Protos.Response.GetHealthOrBuilder> getHealthBuilder_; /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ public boolean hasGetHealth() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetHealth getGetHealth() { if (getHealthBuilder_ == null) { return getHealth_; } else { return getHealthBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ public Builder setGetHealth(org.apache.mesos.v1.agent.Protos.Response.GetHealth value) { if (getHealthBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getHealth_ = value; onChanged(); } else { getHealthBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ public Builder setGetHealth( org.apache.mesos.v1.agent.Protos.Response.GetHealth.Builder builderForValue) { if (getHealthBuilder_ == null) { getHealth_ = builderForValue.build(); onChanged(); } else { getHealthBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ public Builder mergeGetHealth(org.apache.mesos.v1.agent.Protos.Response.GetHealth value) { if (getHealthBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && getHealth_ != org.apache.mesos.v1.agent.Protos.Response.GetHealth.getDefaultInstance()) { getHealth_ = org.apache.mesos.v1.agent.Protos.Response.GetHealth.newBuilder(getHealth_).mergeFrom(value).buildPartial(); } else { getHealth_ = value; } onChanged(); } else { getHealthBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ public Builder clearGetHealth() { if (getHealthBuilder_ == null) { getHealth_ = org.apache.mesos.v1.agent.Protos.Response.GetHealth.getDefaultInstance(); onChanged(); } else { getHealthBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetHealth.Builder getGetHealthBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGetHealthFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ public org.apache.mesos.v1.agent.Protos.Response.GetHealthOrBuilder getGetHealthOrBuilder() { if (getHealthBuilder_ != null) { return getHealthBuilder_.getMessageOrBuilder(); } else { return getHealth_; } } /** * optional .mesos.v1.agent.Response.GetHealth get_health = 2; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetHealth, org.apache.mesos.v1.agent.Protos.Response.GetHealth.Builder, org.apache.mesos.v1.agent.Protos.Response.GetHealthOrBuilder> getGetHealthFieldBuilder() { if (getHealthBuilder_ == null) { getHealthBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetHealth, org.apache.mesos.v1.agent.Protos.Response.GetHealth.Builder, org.apache.mesos.v1.agent.Protos.Response.GetHealthOrBuilder>( getGetHealth(), getParentForChildren(), isClean()); getHealth_ = null; } return getHealthBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.GetFlags getFlags_ = org.apache.mesos.v1.agent.Protos.Response.GetFlags.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFlags, org.apache.mesos.v1.agent.Protos.Response.GetFlags.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFlagsOrBuilder> getFlagsBuilder_; /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ public boolean hasGetFlags() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ public org.apache.mesos.v1.agent.Protos.Response.GetFlags getGetFlags() { if (getFlagsBuilder_ == null) { return getFlags_; } else { return getFlagsBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ public Builder setGetFlags(org.apache.mesos.v1.agent.Protos.Response.GetFlags value) { if (getFlagsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getFlags_ = value; onChanged(); } else { getFlagsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ public Builder setGetFlags( org.apache.mesos.v1.agent.Protos.Response.GetFlags.Builder builderForValue) { if (getFlagsBuilder_ == null) { getFlags_ = builderForValue.build(); onChanged(); } else { getFlagsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ public Builder mergeGetFlags(org.apache.mesos.v1.agent.Protos.Response.GetFlags value) { if (getFlagsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && getFlags_ != org.apache.mesos.v1.agent.Protos.Response.GetFlags.getDefaultInstance()) { getFlags_ = org.apache.mesos.v1.agent.Protos.Response.GetFlags.newBuilder(getFlags_).mergeFrom(value).buildPartial(); } else { getFlags_ = value; } onChanged(); } else { getFlagsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ public Builder clearGetFlags() { if (getFlagsBuilder_ == null) { getFlags_ = org.apache.mesos.v1.agent.Protos.Response.GetFlags.getDefaultInstance(); onChanged(); } else { getFlagsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ public org.apache.mesos.v1.agent.Protos.Response.GetFlags.Builder getGetFlagsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getGetFlagsFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ public org.apache.mesos.v1.agent.Protos.Response.GetFlagsOrBuilder getGetFlagsOrBuilder() { if (getFlagsBuilder_ != null) { return getFlagsBuilder_.getMessageOrBuilder(); } else { return getFlags_; } } /** * optional .mesos.v1.agent.Response.GetFlags get_flags = 3; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFlags, org.apache.mesos.v1.agent.Protos.Response.GetFlags.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFlagsOrBuilder> getGetFlagsFieldBuilder() { if (getFlagsBuilder_ == null) { getFlagsBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFlags, org.apache.mesos.v1.agent.Protos.Response.GetFlags.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFlagsOrBuilder>( getGetFlags(), getParentForChildren(), isClean()); getFlags_ = null; } return getFlagsBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.GetVersion getVersion_ = org.apache.mesos.v1.agent.Protos.Response.GetVersion.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetVersion, org.apache.mesos.v1.agent.Protos.Response.GetVersion.Builder, org.apache.mesos.v1.agent.Protos.Response.GetVersionOrBuilder> getVersionBuilder_; /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ public boolean hasGetVersion() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ public org.apache.mesos.v1.agent.Protos.Response.GetVersion getGetVersion() { if (getVersionBuilder_ == null) { return getVersion_; } else { return getVersionBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ public Builder setGetVersion(org.apache.mesos.v1.agent.Protos.Response.GetVersion value) { if (getVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getVersion_ = value; onChanged(); } else { getVersionBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ public Builder setGetVersion( org.apache.mesos.v1.agent.Protos.Response.GetVersion.Builder builderForValue) { if (getVersionBuilder_ == null) { getVersion_ = builderForValue.build(); onChanged(); } else { getVersionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ public Builder mergeGetVersion(org.apache.mesos.v1.agent.Protos.Response.GetVersion value) { if (getVersionBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && getVersion_ != org.apache.mesos.v1.agent.Protos.Response.GetVersion.getDefaultInstance()) { getVersion_ = org.apache.mesos.v1.agent.Protos.Response.GetVersion.newBuilder(getVersion_).mergeFrom(value).buildPartial(); } else { getVersion_ = value; } onChanged(); } else { getVersionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ public Builder clearGetVersion() { if (getVersionBuilder_ == null) { getVersion_ = org.apache.mesos.v1.agent.Protos.Response.GetVersion.getDefaultInstance(); onChanged(); } else { getVersionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ public org.apache.mesos.v1.agent.Protos.Response.GetVersion.Builder getGetVersionBuilder() { bitField0_ |= 0x00000008; onChanged(); return getGetVersionFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ public org.apache.mesos.v1.agent.Protos.Response.GetVersionOrBuilder getGetVersionOrBuilder() { if (getVersionBuilder_ != null) { return getVersionBuilder_.getMessageOrBuilder(); } else { return getVersion_; } } /** * optional .mesos.v1.agent.Response.GetVersion get_version = 4; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetVersion, org.apache.mesos.v1.agent.Protos.Response.GetVersion.Builder, org.apache.mesos.v1.agent.Protos.Response.GetVersionOrBuilder> getGetVersionFieldBuilder() { if (getVersionBuilder_ == null) { getVersionBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetVersion, org.apache.mesos.v1.agent.Protos.Response.GetVersion.Builder, org.apache.mesos.v1.agent.Protos.Response.GetVersionOrBuilder>( getGetVersion(), getParentForChildren(), isClean()); getVersion_ = null; } return getVersionBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.GetMetrics getMetrics_ = org.apache.mesos.v1.agent.Protos.Response.GetMetrics.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetMetrics, org.apache.mesos.v1.agent.Protos.Response.GetMetrics.Builder, org.apache.mesos.v1.agent.Protos.Response.GetMetricsOrBuilder> getMetricsBuilder_; /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ public boolean hasGetMetrics() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ public org.apache.mesos.v1.agent.Protos.Response.GetMetrics getGetMetrics() { if (getMetricsBuilder_ == null) { return getMetrics_; } else { return getMetricsBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ public Builder setGetMetrics(org.apache.mesos.v1.agent.Protos.Response.GetMetrics value) { if (getMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getMetrics_ = value; onChanged(); } else { getMetricsBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ public Builder setGetMetrics( org.apache.mesos.v1.agent.Protos.Response.GetMetrics.Builder builderForValue) { if (getMetricsBuilder_ == null) { getMetrics_ = builderForValue.build(); onChanged(); } else { getMetricsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ public Builder mergeGetMetrics(org.apache.mesos.v1.agent.Protos.Response.GetMetrics value) { if (getMetricsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && getMetrics_ != org.apache.mesos.v1.agent.Protos.Response.GetMetrics.getDefaultInstance()) { getMetrics_ = org.apache.mesos.v1.agent.Protos.Response.GetMetrics.newBuilder(getMetrics_).mergeFrom(value).buildPartial(); } else { getMetrics_ = value; } onChanged(); } else { getMetricsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ public Builder clearGetMetrics() { if (getMetricsBuilder_ == null) { getMetrics_ = org.apache.mesos.v1.agent.Protos.Response.GetMetrics.getDefaultInstance(); onChanged(); } else { getMetricsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ public org.apache.mesos.v1.agent.Protos.Response.GetMetrics.Builder getGetMetricsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getGetMetricsFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ public org.apache.mesos.v1.agent.Protos.Response.GetMetricsOrBuilder getGetMetricsOrBuilder() { if (getMetricsBuilder_ != null) { return getMetricsBuilder_.getMessageOrBuilder(); } else { return getMetrics_; } } /** * optional .mesos.v1.agent.Response.GetMetrics get_metrics = 5; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetMetrics, org.apache.mesos.v1.agent.Protos.Response.GetMetrics.Builder, org.apache.mesos.v1.agent.Protos.Response.GetMetricsOrBuilder> getGetMetricsFieldBuilder() { if (getMetricsBuilder_ == null) { getMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetMetrics, org.apache.mesos.v1.agent.Protos.Response.GetMetrics.Builder, org.apache.mesos.v1.agent.Protos.Response.GetMetricsOrBuilder>( getGetMetrics(), getParentForChildren(), isClean()); getMetrics_ = null; } return getMetricsBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel getLoggingLevel_ = org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel, org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.Builder, org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevelOrBuilder> getLoggingLevelBuilder_; /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ public boolean hasGetLoggingLevel() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ public org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel getGetLoggingLevel() { if (getLoggingLevelBuilder_ == null) { return getLoggingLevel_; } else { return getLoggingLevelBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ public Builder setGetLoggingLevel(org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel value) { if (getLoggingLevelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getLoggingLevel_ = value; onChanged(); } else { getLoggingLevelBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ public Builder setGetLoggingLevel( org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.Builder builderForValue) { if (getLoggingLevelBuilder_ == null) { getLoggingLevel_ = builderForValue.build(); onChanged(); } else { getLoggingLevelBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ public Builder mergeGetLoggingLevel(org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel value) { if (getLoggingLevelBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020) && getLoggingLevel_ != org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.getDefaultInstance()) { getLoggingLevel_ = org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.newBuilder(getLoggingLevel_).mergeFrom(value).buildPartial(); } else { getLoggingLevel_ = value; } onChanged(); } else { getLoggingLevelBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ public Builder clearGetLoggingLevel() { if (getLoggingLevelBuilder_ == null) { getLoggingLevel_ = org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.getDefaultInstance(); onChanged(); } else { getLoggingLevelBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ public org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.Builder getGetLoggingLevelBuilder() { bitField0_ |= 0x00000020; onChanged(); return getGetLoggingLevelFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ public org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevelOrBuilder getGetLoggingLevelOrBuilder() { if (getLoggingLevelBuilder_ != null) { return getLoggingLevelBuilder_.getMessageOrBuilder(); } else { return getLoggingLevel_; } } /** * optional .mesos.v1.agent.Response.GetLoggingLevel get_logging_level = 6; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel, org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.Builder, org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevelOrBuilder> getGetLoggingLevelFieldBuilder() { if (getLoggingLevelBuilder_ == null) { getLoggingLevelBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel, org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevel.Builder, org.apache.mesos.v1.agent.Protos.Response.GetLoggingLevelOrBuilder>( getGetLoggingLevel(), getParentForChildren(), isClean()); getLoggingLevel_ = null; } return getLoggingLevelBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.ListFiles listFiles_ = org.apache.mesos.v1.agent.Protos.Response.ListFiles.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.ListFiles, org.apache.mesos.v1.agent.Protos.Response.ListFiles.Builder, org.apache.mesos.v1.agent.Protos.Response.ListFilesOrBuilder> listFilesBuilder_; /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ public boolean hasListFiles() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ public org.apache.mesos.v1.agent.Protos.Response.ListFiles getListFiles() { if (listFilesBuilder_ == null) { return listFiles_; } else { return listFilesBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ public Builder setListFiles(org.apache.mesos.v1.agent.Protos.Response.ListFiles value) { if (listFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } listFiles_ = value; onChanged(); } else { listFilesBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ public Builder setListFiles( org.apache.mesos.v1.agent.Protos.Response.ListFiles.Builder builderForValue) { if (listFilesBuilder_ == null) { listFiles_ = builderForValue.build(); onChanged(); } else { listFilesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ public Builder mergeListFiles(org.apache.mesos.v1.agent.Protos.Response.ListFiles value) { if (listFilesBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040) && listFiles_ != org.apache.mesos.v1.agent.Protos.Response.ListFiles.getDefaultInstance()) { listFiles_ = org.apache.mesos.v1.agent.Protos.Response.ListFiles.newBuilder(listFiles_).mergeFrom(value).buildPartial(); } else { listFiles_ = value; } onChanged(); } else { listFilesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ public Builder clearListFiles() { if (listFilesBuilder_ == null) { listFiles_ = org.apache.mesos.v1.agent.Protos.Response.ListFiles.getDefaultInstance(); onChanged(); } else { listFilesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ public org.apache.mesos.v1.agent.Protos.Response.ListFiles.Builder getListFilesBuilder() { bitField0_ |= 0x00000040; onChanged(); return getListFilesFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ public org.apache.mesos.v1.agent.Protos.Response.ListFilesOrBuilder getListFilesOrBuilder() { if (listFilesBuilder_ != null) { return listFilesBuilder_.getMessageOrBuilder(); } else { return listFiles_; } } /** * optional .mesos.v1.agent.Response.ListFiles list_files = 7; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.ListFiles, org.apache.mesos.v1.agent.Protos.Response.ListFiles.Builder, org.apache.mesos.v1.agent.Protos.Response.ListFilesOrBuilder> getListFilesFieldBuilder() { if (listFilesBuilder_ == null) { listFilesBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.ListFiles, org.apache.mesos.v1.agent.Protos.Response.ListFiles.Builder, org.apache.mesos.v1.agent.Protos.Response.ListFilesOrBuilder>( getListFiles(), getParentForChildren(), isClean()); listFiles_ = null; } return listFilesBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.ReadFile readFile_ = org.apache.mesos.v1.agent.Protos.Response.ReadFile.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.ReadFile, org.apache.mesos.v1.agent.Protos.Response.ReadFile.Builder, org.apache.mesos.v1.agent.Protos.Response.ReadFileOrBuilder> readFileBuilder_; /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ public boolean hasReadFile() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ public org.apache.mesos.v1.agent.Protos.Response.ReadFile getReadFile() { if (readFileBuilder_ == null) { return readFile_; } else { return readFileBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ public Builder setReadFile(org.apache.mesos.v1.agent.Protos.Response.ReadFile value) { if (readFileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readFile_ = value; onChanged(); } else { readFileBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ public Builder setReadFile( org.apache.mesos.v1.agent.Protos.Response.ReadFile.Builder builderForValue) { if (readFileBuilder_ == null) { readFile_ = builderForValue.build(); onChanged(); } else { readFileBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ public Builder mergeReadFile(org.apache.mesos.v1.agent.Protos.Response.ReadFile value) { if (readFileBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && readFile_ != org.apache.mesos.v1.agent.Protos.Response.ReadFile.getDefaultInstance()) { readFile_ = org.apache.mesos.v1.agent.Protos.Response.ReadFile.newBuilder(readFile_).mergeFrom(value).buildPartial(); } else { readFile_ = value; } onChanged(); } else { readFileBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ public Builder clearReadFile() { if (readFileBuilder_ == null) { readFile_ = org.apache.mesos.v1.agent.Protos.Response.ReadFile.getDefaultInstance(); onChanged(); } else { readFileBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ public org.apache.mesos.v1.agent.Protos.Response.ReadFile.Builder getReadFileBuilder() { bitField0_ |= 0x00000080; onChanged(); return getReadFileFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ public org.apache.mesos.v1.agent.Protos.Response.ReadFileOrBuilder getReadFileOrBuilder() { if (readFileBuilder_ != null) { return readFileBuilder_.getMessageOrBuilder(); } else { return readFile_; } } /** * optional .mesos.v1.agent.Response.ReadFile read_file = 8; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.ReadFile, org.apache.mesos.v1.agent.Protos.Response.ReadFile.Builder, org.apache.mesos.v1.agent.Protos.Response.ReadFileOrBuilder> getReadFileFieldBuilder() { if (readFileBuilder_ == null) { readFileBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.ReadFile, org.apache.mesos.v1.agent.Protos.Response.ReadFile.Builder, org.apache.mesos.v1.agent.Protos.Response.ReadFileOrBuilder>( getReadFile(), getParentForChildren(), isClean()); readFile_ = null; } return readFileBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.GetState getState_ = org.apache.mesos.v1.agent.Protos.Response.GetState.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetState, org.apache.mesos.v1.agent.Protos.Response.GetState.Builder, org.apache.mesos.v1.agent.Protos.Response.GetStateOrBuilder> getStateBuilder_; /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ public boolean hasGetState() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ public org.apache.mesos.v1.agent.Protos.Response.GetState getGetState() { if (getStateBuilder_ == null) { return getState_; } else { return getStateBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ public Builder setGetState(org.apache.mesos.v1.agent.Protos.Response.GetState value) { if (getStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getState_ = value; onChanged(); } else { getStateBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ public Builder setGetState( org.apache.mesos.v1.agent.Protos.Response.GetState.Builder builderForValue) { if (getStateBuilder_ == null) { getState_ = builderForValue.build(); onChanged(); } else { getStateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ public Builder mergeGetState(org.apache.mesos.v1.agent.Protos.Response.GetState value) { if (getStateBuilder_ == null) { if (((bitField0_ & 0x00000100) == 0x00000100) && getState_ != org.apache.mesos.v1.agent.Protos.Response.GetState.getDefaultInstance()) { getState_ = org.apache.mesos.v1.agent.Protos.Response.GetState.newBuilder(getState_).mergeFrom(value).buildPartial(); } else { getState_ = value; } onChanged(); } else { getStateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ public Builder clearGetState() { if (getStateBuilder_ == null) { getState_ = org.apache.mesos.v1.agent.Protos.Response.GetState.getDefaultInstance(); onChanged(); } else { getStateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ public org.apache.mesos.v1.agent.Protos.Response.GetState.Builder getGetStateBuilder() { bitField0_ |= 0x00000100; onChanged(); return getGetStateFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ public org.apache.mesos.v1.agent.Protos.Response.GetStateOrBuilder getGetStateOrBuilder() { if (getStateBuilder_ != null) { return getStateBuilder_.getMessageOrBuilder(); } else { return getState_; } } /** * optional .mesos.v1.agent.Response.GetState get_state = 9; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetState, org.apache.mesos.v1.agent.Protos.Response.GetState.Builder, org.apache.mesos.v1.agent.Protos.Response.GetStateOrBuilder> getGetStateFieldBuilder() { if (getStateBuilder_ == null) { getStateBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetState, org.apache.mesos.v1.agent.Protos.Response.GetState.Builder, org.apache.mesos.v1.agent.Protos.Response.GetStateOrBuilder>( getGetState(), getParentForChildren(), isClean()); getState_ = null; } return getStateBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.GetContainers getContainers_ = org.apache.mesos.v1.agent.Protos.Response.GetContainers.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetContainers, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Builder, org.apache.mesos.v1.agent.Protos.Response.GetContainersOrBuilder> getContainersBuilder_; /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ public boolean hasGetContainers() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ public org.apache.mesos.v1.agent.Protos.Response.GetContainers getGetContainers() { if (getContainersBuilder_ == null) { return getContainers_; } else { return getContainersBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ public Builder setGetContainers(org.apache.mesos.v1.agent.Protos.Response.GetContainers value) { if (getContainersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getContainers_ = value; onChanged(); } else { getContainersBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ public Builder setGetContainers( org.apache.mesos.v1.agent.Protos.Response.GetContainers.Builder builderForValue) { if (getContainersBuilder_ == null) { getContainers_ = builderForValue.build(); onChanged(); } else { getContainersBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ public Builder mergeGetContainers(org.apache.mesos.v1.agent.Protos.Response.GetContainers value) { if (getContainersBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200) && getContainers_ != org.apache.mesos.v1.agent.Protos.Response.GetContainers.getDefaultInstance()) { getContainers_ = org.apache.mesos.v1.agent.Protos.Response.GetContainers.newBuilder(getContainers_).mergeFrom(value).buildPartial(); } else { getContainers_ = value; } onChanged(); } else { getContainersBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ public Builder clearGetContainers() { if (getContainersBuilder_ == null) { getContainers_ = org.apache.mesos.v1.agent.Protos.Response.GetContainers.getDefaultInstance(); onChanged(); } else { getContainersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ public org.apache.mesos.v1.agent.Protos.Response.GetContainers.Builder getGetContainersBuilder() { bitField0_ |= 0x00000200; onChanged(); return getGetContainersFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ public org.apache.mesos.v1.agent.Protos.Response.GetContainersOrBuilder getGetContainersOrBuilder() { if (getContainersBuilder_ != null) { return getContainersBuilder_.getMessageOrBuilder(); } else { return getContainers_; } } /** * optional .mesos.v1.agent.Response.GetContainers get_containers = 10; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetContainers, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Builder, org.apache.mesos.v1.agent.Protos.Response.GetContainersOrBuilder> getGetContainersFieldBuilder() { if (getContainersBuilder_ == null) { getContainersBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetContainers, org.apache.mesos.v1.agent.Protos.Response.GetContainers.Builder, org.apache.mesos.v1.agent.Protos.Response.GetContainersOrBuilder>( getGetContainers(), getParentForChildren(), isClean()); getContainers_ = null; } return getContainersBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.GetFrameworks getFrameworks_ = org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFrameworks, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFrameworksOrBuilder> getFrameworksBuilder_; /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ public boolean hasGetFrameworks() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks getGetFrameworks() { if (getFrameworksBuilder_ == null) { return getFrameworks_; } else { return getFrameworksBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ public Builder setGetFrameworks(org.apache.mesos.v1.agent.Protos.Response.GetFrameworks value) { if (getFrameworksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getFrameworks_ = value; onChanged(); } else { getFrameworksBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ public Builder setGetFrameworks( org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder builderForValue) { if (getFrameworksBuilder_ == null) { getFrameworks_ = builderForValue.build(); onChanged(); } else { getFrameworksBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ public Builder mergeGetFrameworks(org.apache.mesos.v1.agent.Protos.Response.GetFrameworks value) { if (getFrameworksBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400) && getFrameworks_ != org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.getDefaultInstance()) { getFrameworks_ = org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.newBuilder(getFrameworks_).mergeFrom(value).buildPartial(); } else { getFrameworks_ = value; } onChanged(); } else { getFrameworksBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ public Builder clearGetFrameworks() { if (getFrameworksBuilder_ == null) { getFrameworks_ = org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.getDefaultInstance(); onChanged(); } else { getFrameworksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder getGetFrameworksBuilder() { bitField0_ |= 0x00000400; onChanged(); return getGetFrameworksFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ public org.apache.mesos.v1.agent.Protos.Response.GetFrameworksOrBuilder getGetFrameworksOrBuilder() { if (getFrameworksBuilder_ != null) { return getFrameworksBuilder_.getMessageOrBuilder(); } else { return getFrameworks_; } } /** * optional .mesos.v1.agent.Response.GetFrameworks get_frameworks = 11; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFrameworks, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFrameworksOrBuilder> getGetFrameworksFieldBuilder() { if (getFrameworksBuilder_ == null) { getFrameworksBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetFrameworks, org.apache.mesos.v1.agent.Protos.Response.GetFrameworks.Builder, org.apache.mesos.v1.agent.Protos.Response.GetFrameworksOrBuilder>( getGetFrameworks(), getParentForChildren(), isClean()); getFrameworks_ = null; } return getFrameworksBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.GetExecutors getExecutors_ = org.apache.mesos.v1.agent.Protos.Response.GetExecutors.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetExecutors, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder, org.apache.mesos.v1.agent.Protos.Response.GetExecutorsOrBuilder> getExecutorsBuilder_; /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ public boolean hasGetExecutors() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors getGetExecutors() { if (getExecutorsBuilder_ == null) { return getExecutors_; } else { return getExecutorsBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ public Builder setGetExecutors(org.apache.mesos.v1.agent.Protos.Response.GetExecutors value) { if (getExecutorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getExecutors_ = value; onChanged(); } else { getExecutorsBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ public Builder setGetExecutors( org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder builderForValue) { if (getExecutorsBuilder_ == null) { getExecutors_ = builderForValue.build(); onChanged(); } else { getExecutorsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ public Builder mergeGetExecutors(org.apache.mesos.v1.agent.Protos.Response.GetExecutors value) { if (getExecutorsBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800) && getExecutors_ != org.apache.mesos.v1.agent.Protos.Response.GetExecutors.getDefaultInstance()) { getExecutors_ = org.apache.mesos.v1.agent.Protos.Response.GetExecutors.newBuilder(getExecutors_).mergeFrom(value).buildPartial(); } else { getExecutors_ = value; } onChanged(); } else { getExecutorsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ public Builder clearGetExecutors() { if (getExecutorsBuilder_ == null) { getExecutors_ = org.apache.mesos.v1.agent.Protos.Response.GetExecutors.getDefaultInstance(); onChanged(); } else { getExecutorsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder getGetExecutorsBuilder() { bitField0_ |= 0x00000800; onChanged(); return getGetExecutorsFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ public org.apache.mesos.v1.agent.Protos.Response.GetExecutorsOrBuilder getGetExecutorsOrBuilder() { if (getExecutorsBuilder_ != null) { return getExecutorsBuilder_.getMessageOrBuilder(); } else { return getExecutors_; } } /** * optional .mesos.v1.agent.Response.GetExecutors get_executors = 12; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetExecutors, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder, org.apache.mesos.v1.agent.Protos.Response.GetExecutorsOrBuilder> getGetExecutorsFieldBuilder() { if (getExecutorsBuilder_ == null) { getExecutorsBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetExecutors, org.apache.mesos.v1.agent.Protos.Response.GetExecutors.Builder, org.apache.mesos.v1.agent.Protos.Response.GetExecutorsOrBuilder>( getGetExecutors(), getParentForChildren(), isClean()); getExecutors_ = null; } return getExecutorsBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.GetTasks getTasks_ = org.apache.mesos.v1.agent.Protos.Response.GetTasks.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetTasks, org.apache.mesos.v1.agent.Protos.Response.GetTasks.Builder, org.apache.mesos.v1.agent.Protos.Response.GetTasksOrBuilder> getTasksBuilder_; /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ public boolean hasGetTasks() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ public org.apache.mesos.v1.agent.Protos.Response.GetTasks getGetTasks() { if (getTasksBuilder_ == null) { return getTasks_; } else { return getTasksBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ public Builder setGetTasks(org.apache.mesos.v1.agent.Protos.Response.GetTasks value) { if (getTasksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getTasks_ = value; onChanged(); } else { getTasksBuilder_.setMessage(value); } bitField0_ |= 0x00001000; return this; } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ public Builder setGetTasks( org.apache.mesos.v1.agent.Protos.Response.GetTasks.Builder builderForValue) { if (getTasksBuilder_ == null) { getTasks_ = builderForValue.build(); onChanged(); } else { getTasksBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; return this; } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ public Builder mergeGetTasks(org.apache.mesos.v1.agent.Protos.Response.GetTasks value) { if (getTasksBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000) && getTasks_ != org.apache.mesos.v1.agent.Protos.Response.GetTasks.getDefaultInstance()) { getTasks_ = org.apache.mesos.v1.agent.Protos.Response.GetTasks.newBuilder(getTasks_).mergeFrom(value).buildPartial(); } else { getTasks_ = value; } onChanged(); } else { getTasksBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; return this; } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ public Builder clearGetTasks() { if (getTasksBuilder_ == null) { getTasks_ = org.apache.mesos.v1.agent.Protos.Response.GetTasks.getDefaultInstance(); onChanged(); } else { getTasksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ public org.apache.mesos.v1.agent.Protos.Response.GetTasks.Builder getGetTasksBuilder() { bitField0_ |= 0x00001000; onChanged(); return getGetTasksFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ public org.apache.mesos.v1.agent.Protos.Response.GetTasksOrBuilder getGetTasksOrBuilder() { if (getTasksBuilder_ != null) { return getTasksBuilder_.getMessageOrBuilder(); } else { return getTasks_; } } /** * optional .mesos.v1.agent.Response.GetTasks get_tasks = 13; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetTasks, org.apache.mesos.v1.agent.Protos.Response.GetTasks.Builder, org.apache.mesos.v1.agent.Protos.Response.GetTasksOrBuilder> getGetTasksFieldBuilder() { if (getTasksBuilder_ == null) { getTasksBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetTasks, org.apache.mesos.v1.agent.Protos.Response.GetTasks.Builder, org.apache.mesos.v1.agent.Protos.Response.GetTasksOrBuilder>( getGetTasks(), getParentForChildren(), isClean()); getTasks_ = null; } return getTasksBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.GetAgent getAgent_ = org.apache.mesos.v1.agent.Protos.Response.GetAgent.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetAgent, org.apache.mesos.v1.agent.Protos.Response.GetAgent.Builder, org.apache.mesos.v1.agent.Protos.Response.GetAgentOrBuilder> getAgentBuilder_; /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ public boolean hasGetAgent() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ public org.apache.mesos.v1.agent.Protos.Response.GetAgent getGetAgent() { if (getAgentBuilder_ == null) { return getAgent_; } else { return getAgentBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ public Builder setGetAgent(org.apache.mesos.v1.agent.Protos.Response.GetAgent value) { if (getAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } getAgent_ = value; onChanged(); } else { getAgentBuilder_.setMessage(value); } bitField0_ |= 0x00002000; return this; } /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ public Builder setGetAgent( org.apache.mesos.v1.agent.Protos.Response.GetAgent.Builder builderForValue) { if (getAgentBuilder_ == null) { getAgent_ = builderForValue.build(); onChanged(); } else { getAgentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ public Builder mergeGetAgent(org.apache.mesos.v1.agent.Protos.Response.GetAgent value) { if (getAgentBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && getAgent_ != org.apache.mesos.v1.agent.Protos.Response.GetAgent.getDefaultInstance()) { getAgent_ = org.apache.mesos.v1.agent.Protos.Response.GetAgent.newBuilder(getAgent_).mergeFrom(value).buildPartial(); } else { getAgent_ = value; } onChanged(); } else { getAgentBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; return this; } /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ public Builder clearGetAgent() { if (getAgentBuilder_ == null) { getAgent_ = org.apache.mesos.v1.agent.Protos.Response.GetAgent.getDefaultInstance(); onChanged(); } else { getAgentBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ public org.apache.mesos.v1.agent.Protos.Response.GetAgent.Builder getGetAgentBuilder() { bitField0_ |= 0x00002000; onChanged(); return getGetAgentFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ public org.apache.mesos.v1.agent.Protos.Response.GetAgentOrBuilder getGetAgentOrBuilder() { if (getAgentBuilder_ != null) { return getAgentBuilder_.getMessageOrBuilder(); } else { return getAgent_; } } /** * optional .mesos.v1.agent.Response.GetAgent get_agent = 15; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetAgent, org.apache.mesos.v1.agent.Protos.Response.GetAgent.Builder, org.apache.mesos.v1.agent.Protos.Response.GetAgentOrBuilder> getGetAgentFieldBuilder() { if (getAgentBuilder_ == null) { getAgentBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.GetAgent, org.apache.mesos.v1.agent.Protos.Response.GetAgent.Builder, org.apache.mesos.v1.agent.Protos.Response.GetAgentOrBuilder>( getGetAgent(), getParentForChildren(), isClean()); getAgent_ = null; } return getAgentBuilder_; } private org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer waitNestedContainer_ = org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer, org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainerOrBuilder> waitNestedContainerBuilder_; /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ public boolean hasWaitNestedContainer() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ public org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer getWaitNestedContainer() { if (waitNestedContainerBuilder_ == null) { return waitNestedContainer_; } else { return waitNestedContainerBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ public Builder setWaitNestedContainer(org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer value) { if (waitNestedContainerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } waitNestedContainer_ = value; onChanged(); } else { waitNestedContainerBuilder_.setMessage(value); } bitField0_ |= 0x00004000; return this; } /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ public Builder setWaitNestedContainer( org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.Builder builderForValue) { if (waitNestedContainerBuilder_ == null) { waitNestedContainer_ = builderForValue.build(); onChanged(); } else { waitNestedContainerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; return this; } /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ public Builder mergeWaitNestedContainer(org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer value) { if (waitNestedContainerBuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000) && waitNestedContainer_ != org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.getDefaultInstance()) { waitNestedContainer_ = org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.newBuilder(waitNestedContainer_).mergeFrom(value).buildPartial(); } else { waitNestedContainer_ = value; } onChanged(); } else { waitNestedContainerBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; return this; } /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ public Builder clearWaitNestedContainer() { if (waitNestedContainerBuilder_ == null) { waitNestedContainer_ = org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.getDefaultInstance(); onChanged(); } else { waitNestedContainerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ public org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.Builder getWaitNestedContainerBuilder() { bitField0_ |= 0x00004000; onChanged(); return getWaitNestedContainerFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ public org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainerOrBuilder getWaitNestedContainerOrBuilder() { if (waitNestedContainerBuilder_ != null) { return waitNestedContainerBuilder_.getMessageOrBuilder(); } else { return waitNestedContainer_; } } /** * optional .mesos.v1.agent.Response.WaitNestedContainer wait_nested_container = 14; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer, org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainerOrBuilder> getWaitNestedContainerFieldBuilder() { if (waitNestedContainerBuilder_ == null) { waitNestedContainerBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer, org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainer.Builder, org.apache.mesos.v1.agent.Protos.Response.WaitNestedContainerOrBuilder>( getWaitNestedContainer(), getParentForChildren(), isClean()); waitNestedContainer_ = null; } return waitNestedContainerBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.Response) } static { defaultInstance = new Response(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.Response) } public interface ProcessIOOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.ProcessIO) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.agent.ProcessIO.Type type = 1; */ boolean hasType(); /** * optional .mesos.v1.agent.ProcessIO.Type type = 1; */ org.apache.mesos.v1.agent.Protos.ProcessIO.Type getType(); /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ boolean hasData(); /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ org.apache.mesos.v1.agent.Protos.ProcessIO.Data getData(); /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ org.apache.mesos.v1.agent.Protos.ProcessIO.DataOrBuilder getDataOrBuilder(); /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ boolean hasControl(); /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ org.apache.mesos.v1.agent.Protos.ProcessIO.Control getControl(); /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ org.apache.mesos.v1.agent.Protos.ProcessIO.ControlOrBuilder getControlOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.ProcessIO} * *
   **
   * Streaming response to `Call::LAUNCH_NESTED_CONTAINER_SESSION` and
   * `Call::ATTACH_CONTAINER_OUTPUT`.
   * This message is also used to stream request data for
   * `Call::ATTACH_CONTAINER_INPUT`.
   * 
*/ public static final class ProcessIO extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.ProcessIO) ProcessIOOrBuilder { // Use ProcessIO.newBuilder() to construct. private ProcessIO(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ProcessIO(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ProcessIO defaultInstance; public static ProcessIO getDefaultInstance() { return defaultInstance; } public ProcessIO getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProcessIO( 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.agent.Protos.ProcessIO.Type value = org.apache.mesos.v1.agent.Protos.ProcessIO.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = value; } break; } case 18: { org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = data_.toBuilder(); } data_ = input.readMessage(org.apache.mesos.v1.agent.Protos.ProcessIO.Data.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(data_); data_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = control_.toBuilder(); } control_ = input.readMessage(org.apache.mesos.v1.agent.Protos.ProcessIO.Control.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(control_); control_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; 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.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.ProcessIO.class, org.apache.mesos.v1.agent.Protos.ProcessIO.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ProcessIO parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProcessIO(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code mesos.v1.agent.ProcessIO.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0, 0), /** * DATA = 1; */ DATA(1, 1), /** * CONTROL = 2; */ CONTROL(2, 2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * DATA = 1; */ public static final int DATA_VALUE = 1; /** * CONTROL = 2; */ public static final int CONTROL_VALUE = 2; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 0: return UNKNOWN; case 1: return DATA; case 2: return CONTROL; 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.agent.Protos.ProcessIO.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.agent.ProcessIO.Type) } public interface DataOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.ProcessIO.Data) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.agent.ProcessIO.Data.Type type = 1; */ boolean hasType(); /** * optional .mesos.v1.agent.ProcessIO.Data.Type type = 1; */ org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Type getType(); /** * optional bytes data = 2; */ boolean hasData(); /** * optional bytes data = 2; */ com.google.protobuf.ByteString getData(); } /** * Protobuf type {@code mesos.v1.agent.ProcessIO.Data} */ public static final class Data extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.ProcessIO.Data) DataOrBuilder { // Use Data.newBuilder() to construct. private Data(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Data(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Data defaultInstance; public static Data getDefaultInstance() { return defaultInstance; } public Data getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Data( 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.agent.Protos.ProcessIO.Data.Type value = org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = value; } break; } case 18: { bitField0_ |= 0x00000002; 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.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Data_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Data_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.ProcessIO.Data.class, org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Data parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Data(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code mesos.v1.agent.ProcessIO.Data.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0, 0), /** * STDIN = 1; */ STDIN(1, 1), /** * STDOUT = 2; */ STDOUT(2, 2), /** * STDERR = 3; */ STDERR(3, 3), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * STDIN = 1; */ public static final int STDIN_VALUE = 1; /** * STDOUT = 2; */ public static final int STDOUT_VALUE = 2; /** * STDERR = 3; */ public static final int STDERR_VALUE = 3; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 0: return UNKNOWN; case 1: return STDIN; case 2: return STDOUT; case 3: return STDERR; 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.agent.Protos.ProcessIO.Data.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.agent.ProcessIO.Data.Type) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Type type_; /** * optional .mesos.v1.agent.ProcessIO.Data.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.ProcessIO.Data.Type type = 1; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Type getType() { return type_; } public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** * optional bytes data = 2; */ public boolean hasData() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } private void initFields() { type_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Type.UNKNOWN; 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; 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.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 .computeEnumSize(1, type_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { 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.agent.Protos.ProcessIO.Data parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Data 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.agent.Protos.ProcessIO.Data parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Data parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Data parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Data 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.agent.Protos.ProcessIO.Data parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Data 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.agent.Protos.ProcessIO.Data parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Data 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.agent.Protos.ProcessIO.Data 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.agent.ProcessIO.Data} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.ProcessIO.Data) org.apache.mesos.v1.agent.Protos.ProcessIO.DataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Data_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Data_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.ProcessIO.Data.class, org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.ProcessIO.Data.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Type.UNKNOWN; bitField0_ = (bitField0_ & ~0x00000001); data_ = 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.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Data_descriptor; } public org.apache.mesos.v1.agent.Protos.ProcessIO.Data getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.ProcessIO.Data.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.ProcessIO.Data build() { org.apache.mesos.v1.agent.Protos.ProcessIO.Data result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.ProcessIO.Data buildPartial() { org.apache.mesos.v1.agent.Protos.ProcessIO.Data result = new org.apache.mesos.v1.agent.Protos.ProcessIO.Data(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.data_ = data_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.ProcessIO.Data) { return mergeFrom((org.apache.mesos.v1.agent.Protos.ProcessIO.Data)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.ProcessIO.Data other) { if (other == org.apache.mesos.v1.agent.Protos.ProcessIO.Data.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasData()) { setData(other.getData()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.mesos.v1.agent.Protos.ProcessIO.Data parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.ProcessIO.Data) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Type type_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Type.UNKNOWN; /** * optional .mesos.v1.agent.ProcessIO.Data.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.ProcessIO.Data.Type type = 1; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Type getType() { return type_; } /** * optional .mesos.v1.agent.ProcessIO.Data.Type type = 1; */ public Builder setType(org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * optional .mesos.v1.agent.ProcessIO.Data.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Type.UNKNOWN; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes data = 2; */ public boolean hasData() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } /** * optional bytes data = 2; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; data_ = value; onChanged(); return this; } /** * optional bytes data = 2; */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000002); data_ = getDefaultInstance().getData(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.ProcessIO.Data) } static { defaultInstance = new Data(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.ProcessIO.Data) } public interface ControlOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.ProcessIO.Control) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.agent.ProcessIO.Control.Type type = 1; */ boolean hasType(); /** * optional .mesos.v1.agent.ProcessIO.Control.Type type = 1; */ org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Type getType(); /** * optional .mesos.v1.TTYInfo tty_info = 2; */ boolean hasTtyInfo(); /** * optional .mesos.v1.TTYInfo tty_info = 2; */ org.apache.mesos.v1.Protos.TTYInfo getTtyInfo(); /** * optional .mesos.v1.TTYInfo tty_info = 2; */ org.apache.mesos.v1.Protos.TTYInfoOrBuilder getTtyInfoOrBuilder(); /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ boolean hasHeartbeat(); /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat getHeartbeat(); /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ org.apache.mesos.v1.agent.Protos.ProcessIO.Control.HeartbeatOrBuilder getHeartbeatOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.ProcessIO.Control} */ public static final class Control extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.ProcessIO.Control) ControlOrBuilder { // Use Control.newBuilder() to construct. private Control(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Control(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Control defaultInstance; public static Control getDefaultInstance() { return defaultInstance; } public Control getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Control( 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.agent.Protos.ProcessIO.Control.Type value = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = value; } break; } case 18: { org.apache.mesos.v1.Protos.TTYInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = ttyInfo_.toBuilder(); } ttyInfo_ = input.readMessage(org.apache.mesos.v1.Protos.TTYInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ttyInfo_); ttyInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = heartbeat_.toBuilder(); } heartbeat_ = input.readMessage(org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(heartbeat_); heartbeat_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; 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.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Control_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Control_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.ProcessIO.Control.class, org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Control parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Control(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code mesos.v1.agent.ProcessIO.Control.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0, 0), /** * TTY_INFO = 1; */ TTY_INFO(1, 1), /** * HEARTBEAT = 2; */ HEARTBEAT(2, 2), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * TTY_INFO = 1; */ public static final int TTY_INFO_VALUE = 1; /** * HEARTBEAT = 2; */ public static final int HEARTBEAT_VALUE = 2; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 0: return UNKNOWN; case 1: return TTY_INFO; case 2: return HEARTBEAT; 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.agent.Protos.ProcessIO.Control.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.agent.ProcessIO.Control.Type) } public interface HeartbeatOrBuilder extends // @@protoc_insertion_point(interface_extends:mesos.v1.agent.ProcessIO.Control.Heartbeat) com.google.protobuf.MessageOrBuilder { /** * optional .mesos.v1.DurationInfo interval = 1; */ boolean hasInterval(); /** * optional .mesos.v1.DurationInfo interval = 1; */ org.apache.mesos.v1.Protos.DurationInfo getInterval(); /** * optional .mesos.v1.DurationInfo interval = 1; */ org.apache.mesos.v1.Protos.DurationInfoOrBuilder getIntervalOrBuilder(); } /** * Protobuf type {@code mesos.v1.agent.ProcessIO.Control.Heartbeat} */ public static final class Heartbeat extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:mesos.v1.agent.ProcessIO.Control.Heartbeat) HeartbeatOrBuilder { // Use Heartbeat.newBuilder() to construct. private Heartbeat(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Heartbeat(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Heartbeat defaultInstance; public static Heartbeat getDefaultInstance() { return defaultInstance; } public Heartbeat getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Heartbeat( 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.DurationInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = interval_.toBuilder(); } interval_ = input.readMessage(org.apache.mesos.v1.Protos.DurationInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(interval_); interval_ = 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.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Control_Heartbeat_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Control_Heartbeat_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.class, org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Heartbeat parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Heartbeat(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; public static final int INTERVAL_FIELD_NUMBER = 1; private org.apache.mesos.v1.Protos.DurationInfo interval_; /** * optional .mesos.v1.DurationInfo interval = 1; */ public boolean hasInterval() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.DurationInfo interval = 1; */ public org.apache.mesos.v1.Protos.DurationInfo getInterval() { return interval_; } /** * optional .mesos.v1.DurationInfo interval = 1; */ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getIntervalOrBuilder() { return interval_; } private void initFields() { interval_ = org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasInterval()) { if (!getInterval().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, interval_); } 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, interval_); } 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.agent.Protos.ProcessIO.Control.Heartbeat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat 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.agent.Protos.ProcessIO.Control.Heartbeat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat 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.agent.Protos.ProcessIO.Control.Heartbeat parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat 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.agent.Protos.ProcessIO.Control.Heartbeat parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat 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.agent.Protos.ProcessIO.Control.Heartbeat 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.agent.ProcessIO.Control.Heartbeat} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.ProcessIO.Control.Heartbeat) org.apache.mesos.v1.agent.Protos.ProcessIO.Control.HeartbeatOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Control_Heartbeat_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Control_Heartbeat_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.class, org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getIntervalFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (intervalBuilder_ == null) { interval_ = org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance(); } else { intervalBuilder_.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.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Control_Heartbeat_descriptor; } public org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat build() { org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat buildPartial() { org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat result = new org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (intervalBuilder_ == null) { result.interval_ = interval_; } else { result.interval_ = intervalBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat) { return mergeFrom((org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat other) { if (other == org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.getDefaultInstance()) return this; if (other.hasInterval()) { mergeInterval(other.getInterval()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasInterval()) { if (!getInterval().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.agent.Protos.ProcessIO.Control.Heartbeat parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.Protos.DurationInfo interval_ = org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder> intervalBuilder_; /** * optional .mesos.v1.DurationInfo interval = 1; */ public boolean hasInterval() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.DurationInfo interval = 1; */ public org.apache.mesos.v1.Protos.DurationInfo getInterval() { if (intervalBuilder_ == null) { return interval_; } else { return intervalBuilder_.getMessage(); } } /** * optional .mesos.v1.DurationInfo interval = 1; */ public Builder setInterval(org.apache.mesos.v1.Protos.DurationInfo value) { if (intervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } interval_ = value; onChanged(); } else { intervalBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.DurationInfo interval = 1; */ public Builder setInterval( org.apache.mesos.v1.Protos.DurationInfo.Builder builderForValue) { if (intervalBuilder_ == null) { interval_ = builderForValue.build(); onChanged(); } else { intervalBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.DurationInfo interval = 1; */ public Builder mergeInterval(org.apache.mesos.v1.Protos.DurationInfo value) { if (intervalBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && interval_ != org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance()) { interval_ = org.apache.mesos.v1.Protos.DurationInfo.newBuilder(interval_).mergeFrom(value).buildPartial(); } else { interval_ = value; } onChanged(); } else { intervalBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .mesos.v1.DurationInfo interval = 1; */ public Builder clearInterval() { if (intervalBuilder_ == null) { interval_ = org.apache.mesos.v1.Protos.DurationInfo.getDefaultInstance(); onChanged(); } else { intervalBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .mesos.v1.DurationInfo interval = 1; */ public org.apache.mesos.v1.Protos.DurationInfo.Builder getIntervalBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIntervalFieldBuilder().getBuilder(); } /** * optional .mesos.v1.DurationInfo interval = 1; */ public org.apache.mesos.v1.Protos.DurationInfoOrBuilder getIntervalOrBuilder() { if (intervalBuilder_ != null) { return intervalBuilder_.getMessageOrBuilder(); } else { return interval_; } } /** * optional .mesos.v1.DurationInfo interval = 1; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder> getIntervalFieldBuilder() { if (intervalBuilder_ == null) { intervalBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.DurationInfo, org.apache.mesos.v1.Protos.DurationInfo.Builder, org.apache.mesos.v1.Protos.DurationInfoOrBuilder>( getInterval(), getParentForChildren(), isClean()); interval_ = null; } return intervalBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.ProcessIO.Control.Heartbeat) } static { defaultInstance = new Heartbeat(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.ProcessIO.Control.Heartbeat) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Type type_; /** * optional .mesos.v1.agent.ProcessIO.Control.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.ProcessIO.Control.Type type = 1; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Type getType() { return type_; } public static final int TTY_INFO_FIELD_NUMBER = 2; private org.apache.mesos.v1.Protos.TTYInfo ttyInfo_; /** * optional .mesos.v1.TTYInfo tty_info = 2; */ public boolean hasTtyInfo() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.TTYInfo tty_info = 2; */ public org.apache.mesos.v1.Protos.TTYInfo getTtyInfo() { return ttyInfo_; } /** * optional .mesos.v1.TTYInfo tty_info = 2; */ public org.apache.mesos.v1.Protos.TTYInfoOrBuilder getTtyInfoOrBuilder() { return ttyInfo_; } public static final int HEARTBEAT_FIELD_NUMBER = 3; private org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat heartbeat_; /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ public boolean hasHeartbeat() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat getHeartbeat() { return heartbeat_; } /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Control.HeartbeatOrBuilder getHeartbeatOrBuilder() { return heartbeat_; } private void initFields() { type_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Type.UNKNOWN; ttyInfo_ = org.apache.mesos.v1.Protos.TTYInfo.getDefaultInstance(); heartbeat_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasTtyInfo()) { if (!getTtyInfo().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasHeartbeat()) { if (!getHeartbeat().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, ttyInfo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, heartbeat_); } 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, ttyInfo_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, heartbeat_); } 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.agent.Protos.ProcessIO.Control parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Control 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.agent.Protos.ProcessIO.Control parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Control parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Control parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Control 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.agent.Protos.ProcessIO.Control parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Control 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.agent.Protos.ProcessIO.Control parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.ProcessIO.Control 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.agent.Protos.ProcessIO.Control 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.agent.ProcessIO.Control} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.ProcessIO.Control) org.apache.mesos.v1.agent.Protos.ProcessIO.ControlOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Control_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Control_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.ProcessIO.Control.class, org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.ProcessIO.Control.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTtyInfoFieldBuilder(); getHeartbeatFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Type.UNKNOWN; bitField0_ = (bitField0_ & ~0x00000001); if (ttyInfoBuilder_ == null) { ttyInfo_ = org.apache.mesos.v1.Protos.TTYInfo.getDefaultInstance(); } else { ttyInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (heartbeatBuilder_ == null) { heartbeat_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.getDefaultInstance(); } else { heartbeatBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_Control_descriptor; } public org.apache.mesos.v1.agent.Protos.ProcessIO.Control getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.ProcessIO.Control.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.ProcessIO.Control build() { org.apache.mesos.v1.agent.Protos.ProcessIO.Control result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.ProcessIO.Control buildPartial() { org.apache.mesos.v1.agent.Protos.ProcessIO.Control result = new org.apache.mesos.v1.agent.Protos.ProcessIO.Control(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 (ttyInfoBuilder_ == null) { result.ttyInfo_ = ttyInfo_; } else { result.ttyInfo_ = ttyInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (heartbeatBuilder_ == null) { result.heartbeat_ = heartbeat_; } else { result.heartbeat_ = heartbeatBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.ProcessIO.Control) { return mergeFrom((org.apache.mesos.v1.agent.Protos.ProcessIO.Control)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.ProcessIO.Control other) { if (other == org.apache.mesos.v1.agent.Protos.ProcessIO.Control.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasTtyInfo()) { mergeTtyInfo(other.getTtyInfo()); } if (other.hasHeartbeat()) { mergeHeartbeat(other.getHeartbeat()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasTtyInfo()) { if (!getTtyInfo().isInitialized()) { return false; } } if (hasHeartbeat()) { if (!getHeartbeat().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.agent.Protos.ProcessIO.Control parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.ProcessIO.Control) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Type type_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Type.UNKNOWN; /** * optional .mesos.v1.agent.ProcessIO.Control.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.ProcessIO.Control.Type type = 1; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Type getType() { return type_; } /** * optional .mesos.v1.agent.ProcessIO.Control.Type type = 1; */ public Builder setType(org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * optional .mesos.v1.agent.ProcessIO.Control.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Type.UNKNOWN; onChanged(); return this; } private org.apache.mesos.v1.Protos.TTYInfo ttyInfo_ = org.apache.mesos.v1.Protos.TTYInfo.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.TTYInfo, org.apache.mesos.v1.Protos.TTYInfo.Builder, org.apache.mesos.v1.Protos.TTYInfoOrBuilder> ttyInfoBuilder_; /** * optional .mesos.v1.TTYInfo tty_info = 2; */ public boolean hasTtyInfo() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.TTYInfo tty_info = 2; */ public org.apache.mesos.v1.Protos.TTYInfo getTtyInfo() { if (ttyInfoBuilder_ == null) { return ttyInfo_; } else { return ttyInfoBuilder_.getMessage(); } } /** * optional .mesos.v1.TTYInfo tty_info = 2; */ public Builder setTtyInfo(org.apache.mesos.v1.Protos.TTYInfo value) { if (ttyInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ttyInfo_ = value; onChanged(); } else { ttyInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.TTYInfo tty_info = 2; */ public Builder setTtyInfo( org.apache.mesos.v1.Protos.TTYInfo.Builder builderForValue) { if (ttyInfoBuilder_ == null) { ttyInfo_ = builderForValue.build(); onChanged(); } else { ttyInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.TTYInfo tty_info = 2; */ public Builder mergeTtyInfo(org.apache.mesos.v1.Protos.TTYInfo value) { if (ttyInfoBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && ttyInfo_ != org.apache.mesos.v1.Protos.TTYInfo.getDefaultInstance()) { ttyInfo_ = org.apache.mesos.v1.Protos.TTYInfo.newBuilder(ttyInfo_).mergeFrom(value).buildPartial(); } else { ttyInfo_ = value; } onChanged(); } else { ttyInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.TTYInfo tty_info = 2; */ public Builder clearTtyInfo() { if (ttyInfoBuilder_ == null) { ttyInfo_ = org.apache.mesos.v1.Protos.TTYInfo.getDefaultInstance(); onChanged(); } else { ttyInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.TTYInfo tty_info = 2; */ public org.apache.mesos.v1.Protos.TTYInfo.Builder getTtyInfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTtyInfoFieldBuilder().getBuilder(); } /** * optional .mesos.v1.TTYInfo tty_info = 2; */ public org.apache.mesos.v1.Protos.TTYInfoOrBuilder getTtyInfoOrBuilder() { if (ttyInfoBuilder_ != null) { return ttyInfoBuilder_.getMessageOrBuilder(); } else { return ttyInfo_; } } /** * optional .mesos.v1.TTYInfo tty_info = 2; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.TTYInfo, org.apache.mesos.v1.Protos.TTYInfo.Builder, org.apache.mesos.v1.Protos.TTYInfoOrBuilder> getTtyInfoFieldBuilder() { if (ttyInfoBuilder_ == null) { ttyInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.Protos.TTYInfo, org.apache.mesos.v1.Protos.TTYInfo.Builder, org.apache.mesos.v1.Protos.TTYInfoOrBuilder>( getTtyInfo(), getParentForChildren(), isClean()); ttyInfo_ = null; } return ttyInfoBuilder_; } private org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat heartbeat_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat, org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.Builder, org.apache.mesos.v1.agent.Protos.ProcessIO.Control.HeartbeatOrBuilder> heartbeatBuilder_; /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ public boolean hasHeartbeat() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat getHeartbeat() { if (heartbeatBuilder_ == null) { return heartbeat_; } else { return heartbeatBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ public Builder setHeartbeat(org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat value) { if (heartbeatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } heartbeat_ = value; onChanged(); } else { heartbeatBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ public Builder setHeartbeat( org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.Builder builderForValue) { if (heartbeatBuilder_ == null) { heartbeat_ = builderForValue.build(); onChanged(); } else { heartbeatBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ public Builder mergeHeartbeat(org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat value) { if (heartbeatBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && heartbeat_ != org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.getDefaultInstance()) { heartbeat_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.newBuilder(heartbeat_).mergeFrom(value).buildPartial(); } else { heartbeat_ = value; } onChanged(); } else { heartbeatBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ public Builder clearHeartbeat() { if (heartbeatBuilder_ == null) { heartbeat_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.getDefaultInstance(); onChanged(); } else { heartbeatBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.Builder getHeartbeatBuilder() { bitField0_ |= 0x00000004; onChanged(); return getHeartbeatFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Control.HeartbeatOrBuilder getHeartbeatOrBuilder() { if (heartbeatBuilder_ != null) { return heartbeatBuilder_.getMessageOrBuilder(); } else { return heartbeat_; } } /** * optional .mesos.v1.agent.ProcessIO.Control.Heartbeat heartbeat = 3; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat, org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.Builder, org.apache.mesos.v1.agent.Protos.ProcessIO.Control.HeartbeatOrBuilder> getHeartbeatFieldBuilder() { if (heartbeatBuilder_ == null) { heartbeatBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat, org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Heartbeat.Builder, org.apache.mesos.v1.agent.Protos.ProcessIO.Control.HeartbeatOrBuilder>( getHeartbeat(), getParentForChildren(), isClean()); heartbeat_ = null; } return heartbeatBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.ProcessIO.Control) } static { defaultInstance = new Control(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.ProcessIO.Control) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private org.apache.mesos.v1.agent.Protos.ProcessIO.Type type_; /** * optional .mesos.v1.agent.ProcessIO.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.ProcessIO.Type type = 1; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Type getType() { return type_; } public static final int DATA_FIELD_NUMBER = 2; private org.apache.mesos.v1.agent.Protos.ProcessIO.Data data_; /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ public boolean hasData() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Data getData() { return data_; } /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.DataOrBuilder getDataOrBuilder() { return data_; } public static final int CONTROL_FIELD_NUMBER = 3; private org.apache.mesos.v1.agent.Protos.ProcessIO.Control control_; /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ public boolean hasControl() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Control getControl() { return control_; } /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.ControlOrBuilder getControlOrBuilder() { return control_; } private void initFields() { type_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Type.UNKNOWN; data_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Data.getDefaultInstance(); control_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasControl()) { if (!getControl().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, data_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, control_); } 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, data_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, control_); } 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.agent.Protos.ProcessIO parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.ProcessIO 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.agent.Protos.ProcessIO parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.mesos.v1.agent.Protos.ProcessIO parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.mesos.v1.agent.Protos.ProcessIO parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.ProcessIO 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.agent.Protos.ProcessIO parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.mesos.v1.agent.Protos.ProcessIO 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.agent.Protos.ProcessIO parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.mesos.v1.agent.Protos.ProcessIO 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.agent.Protos.ProcessIO 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.agent.ProcessIO} * *
     **
     * Streaming response to `Call::LAUNCH_NESTED_CONTAINER_SESSION` and
     * `Call::ATTACH_CONTAINER_OUTPUT`.
     * This message is also used to stream request data for
     * `Call::ATTACH_CONTAINER_INPUT`.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:mesos.v1.agent.ProcessIO) org.apache.mesos.v1.agent.Protos.ProcessIOOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.mesos.v1.agent.Protos.ProcessIO.class, org.apache.mesos.v1.agent.Protos.ProcessIO.Builder.class); } // Construct using org.apache.mesos.v1.agent.Protos.ProcessIO.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getDataFieldBuilder(); getControlFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); type_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Type.UNKNOWN; bitField0_ = (bitField0_ & ~0x00000001); if (dataBuilder_ == null) { data_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Data.getDefaultInstance(); } else { dataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (controlBuilder_ == null) { control_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.getDefaultInstance(); } else { controlBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.mesos.v1.agent.Protos.internal_static_mesos_v1_agent_ProcessIO_descriptor; } public org.apache.mesos.v1.agent.Protos.ProcessIO getDefaultInstanceForType() { return org.apache.mesos.v1.agent.Protos.ProcessIO.getDefaultInstance(); } public org.apache.mesos.v1.agent.Protos.ProcessIO build() { org.apache.mesos.v1.agent.Protos.ProcessIO result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.mesos.v1.agent.Protos.ProcessIO buildPartial() { org.apache.mesos.v1.agent.Protos.ProcessIO result = new org.apache.mesos.v1.agent.Protos.ProcessIO(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 (dataBuilder_ == null) { result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (controlBuilder_ == null) { result.control_ = control_; } else { result.control_ = controlBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.mesos.v1.agent.Protos.ProcessIO) { return mergeFrom((org.apache.mesos.v1.agent.Protos.ProcessIO)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.mesos.v1.agent.Protos.ProcessIO other) { if (other == org.apache.mesos.v1.agent.Protos.ProcessIO.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasData()) { mergeData(other.getData()); } if (other.hasControl()) { mergeControl(other.getControl()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasControl()) { if (!getControl().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.agent.Protos.ProcessIO parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.mesos.v1.agent.Protos.ProcessIO) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.apache.mesos.v1.agent.Protos.ProcessIO.Type type_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Type.UNKNOWN; /** * optional .mesos.v1.agent.ProcessIO.Type type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .mesos.v1.agent.ProcessIO.Type type = 1; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Type getType() { return type_; } /** * optional .mesos.v1.agent.ProcessIO.Type type = 1; */ public Builder setType(org.apache.mesos.v1.agent.Protos.ProcessIO.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * optional .mesos.v1.agent.ProcessIO.Type type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Type.UNKNOWN; onChanged(); return this; } private org.apache.mesos.v1.agent.Protos.ProcessIO.Data data_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Data.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.ProcessIO.Data, org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Builder, org.apache.mesos.v1.agent.Protos.ProcessIO.DataOrBuilder> dataBuilder_; /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ public boolean hasData() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Data getData() { if (dataBuilder_ == null) { return data_; } else { return dataBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ public Builder setData(org.apache.mesos.v1.agent.Protos.ProcessIO.Data value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { dataBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ public Builder setData( org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Builder builderForValue) { if (dataBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { dataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ public Builder mergeData(org.apache.mesos.v1.agent.Protos.ProcessIO.Data value) { if (dataBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && data_ != org.apache.mesos.v1.agent.Protos.ProcessIO.Data.getDefaultInstance()) { data_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Data.newBuilder(data_).mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { dataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Data.getDefaultInstance(); onChanged(); } else { dataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Builder getDataBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDataFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.DataOrBuilder getDataOrBuilder() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilder(); } else { return data_; } } /** * optional .mesos.v1.agent.ProcessIO.Data data = 2; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.ProcessIO.Data, org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Builder, org.apache.mesos.v1.agent.Protos.ProcessIO.DataOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.ProcessIO.Data, org.apache.mesos.v1.agent.Protos.ProcessIO.Data.Builder, org.apache.mesos.v1.agent.Protos.ProcessIO.DataOrBuilder>( getData(), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } private org.apache.mesos.v1.agent.Protos.ProcessIO.Control control_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.ProcessIO.Control, org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Builder, org.apache.mesos.v1.agent.Protos.ProcessIO.ControlOrBuilder> controlBuilder_; /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ public boolean hasControl() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Control getControl() { if (controlBuilder_ == null) { return control_; } else { return controlBuilder_.getMessage(); } } /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ public Builder setControl(org.apache.mesos.v1.agent.Protos.ProcessIO.Control value) { if (controlBuilder_ == null) { if (value == null) { throw new NullPointerException(); } control_ = value; onChanged(); } else { controlBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ public Builder setControl( org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Builder builderForValue) { if (controlBuilder_ == null) { control_ = builderForValue.build(); onChanged(); } else { controlBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ public Builder mergeControl(org.apache.mesos.v1.agent.Protos.ProcessIO.Control value) { if (controlBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && control_ != org.apache.mesos.v1.agent.Protos.ProcessIO.Control.getDefaultInstance()) { control_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.newBuilder(control_).mergeFrom(value).buildPartial(); } else { control_ = value; } onChanged(); } else { controlBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ public Builder clearControl() { if (controlBuilder_ == null) { control_ = org.apache.mesos.v1.agent.Protos.ProcessIO.Control.getDefaultInstance(); onChanged(); } else { controlBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Builder getControlBuilder() { bitField0_ |= 0x00000004; onChanged(); return getControlFieldBuilder().getBuilder(); } /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ public org.apache.mesos.v1.agent.Protos.ProcessIO.ControlOrBuilder getControlOrBuilder() { if (controlBuilder_ != null) { return controlBuilder_.getMessageOrBuilder(); } else { return control_; } } /** * optional .mesos.v1.agent.ProcessIO.Control control = 3; */ private com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.ProcessIO.Control, org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Builder, org.apache.mesos.v1.agent.Protos.ProcessIO.ControlOrBuilder> getControlFieldBuilder() { if (controlBuilder_ == null) { controlBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.mesos.v1.agent.Protos.ProcessIO.Control, org.apache.mesos.v1.agent.Protos.ProcessIO.Control.Builder, org.apache.mesos.v1.agent.Protos.ProcessIO.ControlOrBuilder>( getControl(), getParentForChildren(), isClean()); control_ = null; } return controlBuilder_; } // @@protoc_insertion_point(builder_scope:mesos.v1.agent.ProcessIO) } static { defaultInstance = new ProcessIO(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:mesos.v1.agent.ProcessIO) } private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Call_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Call_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Call_GetMetrics_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Call_GetMetrics_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Call_SetLoggingLevel_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Call_SetLoggingLevel_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Call_ListFiles_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Call_ListFiles_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Call_ReadFile_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Call_ReadFile_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Call_LaunchNestedContainer_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Call_LaunchNestedContainer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Call_WaitNestedContainer_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Call_WaitNestedContainer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Call_KillNestedContainer_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Call_KillNestedContainer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Call_RemoveNestedContainer_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Call_RemoveNestedContainer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Call_LaunchNestedContainerSession_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Call_LaunchNestedContainerSession_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Call_AttachContainerInput_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Call_AttachContainerInput_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Call_AttachContainerOutput_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Call_AttachContainerOutput_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetHealth_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetHealth_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetFlags_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetFlags_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetVersion_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetVersion_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetMetrics_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetMetrics_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetLoggingLevel_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetLoggingLevel_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_ListFiles_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_ListFiles_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_ReadFile_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_ReadFile_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetState_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetContainers_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetContainers_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetContainers_Container_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetContainers_Container_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetFrameworks_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetFrameworks_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetFrameworks_Framework_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetFrameworks_Framework_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetExecutors_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetExecutors_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetExecutors_Executor_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetExecutors_Executor_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetTasks_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetTasks_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_GetAgent_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_GetAgent_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_Response_WaitNestedContainer_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_Response_WaitNestedContainer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_ProcessIO_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_ProcessIO_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_ProcessIO_Data_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_ProcessIO_Data_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_ProcessIO_Control_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_ProcessIO_Control_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_mesos_v1_agent_ProcessIO_Control_Heartbeat_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_mesos_v1_agent_ProcessIO_Control_Heartbeat_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\032mesos/v1/agent/agent.proto\022\016mesos.v1.a" + "gent\032\024mesos/v1/mesos.proto\"\231\022\n\004Call\022\'\n\004t" + "ype\030\001 \001(\0162\031.mesos.v1.agent.Call.Type\0224\n\013" + "get_metrics\030\002 \001(\0132\037.mesos.v1.agent.Call." + "GetMetrics\022?\n\021set_logging_level\030\003 \001(\0132$." + "mesos.v1.agent.Call.SetLoggingLevel\0222\n\nl" + "ist_files\030\004 \001(\0132\036.mesos.v1.agent.Call.Li" + "stFiles\0220\n\tread_file\030\005 \001(\0132\035.mesos.v1.ag" + "ent.Call.ReadFile\022K\n\027launch_nested_conta" + "iner\030\006 \001(\0132*.mesos.v1.agent.Call.LaunchN", "estedContainer\022G\n\025wait_nested_container\030" + "\007 \001(\0132(.mesos.v1.agent.Call.WaitNestedCo" + "ntainer\022G\n\025kill_nested_container\030\010 \001(\0132(" + ".mesos.v1.agent.Call.KillNestedContainer" + "\022K\n\027remove_nested_container\030\014 \001(\0132*.meso" + "s.v1.agent.Call.RemoveNestedContainer\022Z\n" + "\037launch_nested_container_session\030\t \001(\01321" + ".mesos.v1.agent.Call.LaunchNestedContain" + "erSession\022I\n\026attach_container_input\030\n \001(" + "\0132).mesos.v1.agent.Call.AttachContainerI", "nput\022K\n\027attach_container_output\030\013 \001(\0132*." + "mesos.v1.agent.Call.AttachContainerOutpu" + "t\0325\n\nGetMetrics\022\'\n\007timeout\030\001 \001(\0132\026.mesos" + ".v1.DurationInfo\032J\n\017SetLoggingLevel\022\r\n\005l" + "evel\030\001 \002(\r\022(\n\010duration\030\002 \002(\0132\026.mesos.v1." + "DurationInfo\032\031\n\tListFiles\022\014\n\004path\030\001 \002(\t\032" + "8\n\010ReadFile\022\014\n\004path\030\001 \002(\t\022\016\n\006offset\030\002 \002(" + "\004\022\016\n\006length\030\003 \001(\004\032\230\001\n\025LaunchNestedContai" + "ner\022+\n\014container_id\030\001 \002(\0132\025.mesos.v1.Con" + "tainerID\022&\n\007command\030\002 \001(\0132\025.mesos.v1.Com", "mandInfo\022*\n\tcontainer\030\003 \001(\0132\027.mesos.v1.C" + "ontainerInfo\032B\n\023WaitNestedContainer\022+\n\014c" + "ontainer_id\030\001 \002(\0132\025.mesos.v1.ContainerID" + "\032B\n\023KillNestedContainer\022+\n\014container_id\030" + "\001 \002(\0132\025.mesos.v1.ContainerID\032D\n\025RemoveNe" + "stedContainer\022+\n\014container_id\030\001 \002(\0132\025.me" + "sos.v1.ContainerID\032\237\001\n\034LaunchNestedConta" + "inerSession\022+\n\014container_id\030\001 \002(\0132\025.meso" + "s.v1.ContainerID\022&\n\007command\030\002 \001(\0132\025.meso" + "s.v1.CommandInfo\022*\n\tcontainer\030\003 \001(\0132\027.me", "sos.v1.ContainerInfo\032\347\001\n\024AttachContainer" + "Input\022<\n\004type\030\001 \001(\0162..mesos.v1.agent.Cal" + "l.AttachContainerInput.Type\022+\n\014container" + "_id\030\002 \001(\0132\025.mesos.v1.ContainerID\022-\n\nproc" + "ess_io\030\003 \001(\0132\031.mesos.v1.agent.ProcessIO\"" + "5\n\004Type\022\013\n\007UNKNOWN\020\000\022\020\n\014CONTAINER_ID\020\001\022\016" + "\n\nPROCESS_IO\020\002\032D\n\025AttachContainerOutput\022" + "+\n\014container_id\030\001 \002(\0132\025.mesos.v1.Contain" + "erID\"\327\003\n\004Type\022\013\n\007UNKNOWN\020\000\022\016\n\nGET_HEALTH" + "\020\001\022\r\n\tGET_FLAGS\020\002\022\017\n\013GET_VERSION\020\003\022\017\n\013GE", "T_METRICS\020\004\022\025\n\021GET_LOGGING_LEVEL\020\005\022\025\n\021SE" + "T_LOGGING_LEVEL\020\006\022\016\n\nLIST_FILES\020\007\022\r\n\tREA" + "D_FILE\020\010\022\r\n\tGET_STATE\020\t\022\022\n\016GET_CONTAINER" + "S\020\n\022\022\n\016GET_FRAMEWORKS\020\013\022\021\n\rGET_EXECUTORS" + "\020\014\022\r\n\tGET_TASKS\020\r\022\r\n\tGET_AGENT\020\024\022\033\n\027LAUN" + "CH_NESTED_CONTAINER\020\016\022\031\n\025WAIT_NESTED_CON" + "TAINER\020\017\022\031\n\025KILL_NESTED_CONTAINER\020\020\022\033\n\027R" + "EMOVE_NESTED_CONTAINER\020\025\022#\n\037LAUNCH_NESTE" + "D_CONTAINER_SESSION\020\021\022\032\n\026ATTACH_CONTAINE" + "R_INPUT\020\022\022\033\n\027ATTACH_CONTAINER_OUTPUT\020\023\"\350", "\025\n\010Response\022+\n\004type\030\001 \001(\0162\035.mesos.v1.age" + "nt.Response.Type\0226\n\nget_health\030\002 \001(\0132\".m" + "esos.v1.agent.Response.GetHealth\0224\n\tget_" + "flags\030\003 \001(\0132!.mesos.v1.agent.Response.Ge" + "tFlags\0228\n\013get_version\030\004 \001(\0132#.mesos.v1.a" + "gent.Response.GetVersion\0228\n\013get_metrics\030" + "\005 \001(\0132#.mesos.v1.agent.Response.GetMetri" + "cs\022C\n\021get_logging_level\030\006 \001(\0132(.mesos.v1" + ".agent.Response.GetLoggingLevel\0226\n\nlist_" + "files\030\007 \001(\0132\".mesos.v1.agent.Response.Li", "stFiles\0224\n\tread_file\030\010 \001(\0132!.mesos.v1.ag" + "ent.Response.ReadFile\0224\n\tget_state\030\t \001(\013" + "2!.mesos.v1.agent.Response.GetState\022>\n\016g" + "et_containers\030\n \001(\0132&.mesos.v1.agent.Res" + "ponse.GetContainers\022>\n\016get_frameworks\030\013 " + "\001(\0132&.mesos.v1.agent.Response.GetFramewo" + "rks\022<\n\rget_executors\030\014 \001(\0132%.mesos.v1.ag" + "ent.Response.GetExecutors\0224\n\tget_tasks\030\r" + " \001(\0132!.mesos.v1.agent.Response.GetTasks\022" + "4\n\tget_agent\030\017 \001(\0132!.mesos.v1.agent.Resp", "onse.GetAgent\022K\n\025wait_nested_container\030\016" + " \001(\0132,.mesos.v1.agent.Response.WaitNeste" + "dContainer\032\034\n\tGetHealth\022\017\n\007healthy\030\001 \002(\010" + "\032)\n\010GetFlags\022\035\n\005flags\030\001 \003(\0132\016.mesos.v1.F" + "lag\0329\n\nGetVersion\022+\n\014version_info\030\001 \002(\0132" + "\025.mesos.v1.VersionInfo\032/\n\nGetMetrics\022!\n\007" + "metrics\030\001 \003(\0132\020.mesos.v1.Metric\032 \n\017GetLo" + "ggingLevel\022\r\n\005level\030\001 \002(\r\0323\n\tListFiles\022&" + "\n\nfile_infos\030\001 \003(\0132\022.mesos.v1.FileInfo\032&" + "\n\010ReadFile\022\014\n\004size\030\001 \002(\004\022\014\n\004data\030\002 \002(\014\032\276", "\001\n\010GetState\0224\n\tget_tasks\030\001 \001(\0132!.mesos.v" + "1.agent.Response.GetTasks\022<\n\rget_executo" + "rs\030\002 \001(\0132%.mesos.v1.agent.Response.GetEx" + "ecutors\022>\n\016get_frameworks\030\003 \001(\0132&.mesos." + "v1.agent.Response.GetFrameworks\032\357\002\n\rGetC" + "ontainers\022D\n\ncontainers\030\001 \003(\01320.mesos.v1" + ".agent.Response.GetContainers.Container\032" + "\227\002\n\tContainer\022+\n\014framework_id\030\001 \002(\0132\025.me" + "sos.v1.FrameworkID\022)\n\013executor_id\030\002 \002(\0132" + "\024.mesos.v1.ExecutorID\022\025\n\rexecutor_name\030\003", " \002(\t\022+\n\014container_id\030\004 \002(\0132\025.mesos.v1.Co" + "ntainerID\0223\n\020container_status\030\005 \001(\0132\031.me" + "sos.v1.ContainerStatus\0229\n\023resource_stati" + "stics\030\006 \001(\0132\034.mesos.v1.ResourceStatistic" + "s\032\343\001\n\rGetFrameworks\022D\n\nframeworks\030\001 \003(\0132" + "0.mesos.v1.agent.Response.GetFrameworks." + "Framework\022N\n\024completed_frameworks\030\002 \003(\0132" + "0.mesos.v1.agent.Response.GetFrameworks." + "Framework\032<\n\tFramework\022/\n\016framework_info" + "\030\001 \002(\0132\027.mesos.v1.FrameworkInfo\032\331\001\n\014GetE", "xecutors\022A\n\texecutors\030\001 \003(\0132..mesos.v1.a" + "gent.Response.GetExecutors.Executor\022K\n\023c" + "ompleted_executors\030\002 \003(\0132..mesos.v1.agen" + "t.Response.GetExecutors.Executor\0329\n\010Exec" + "utor\022-\n\rexecutor_info\030\001 \002(\0132\026.mesos.v1.E" + "xecutorInfo\032\322\001\n\010GetTasks\022%\n\rpending_task" + "s\030\001 \003(\0132\016.mesos.v1.Task\022$\n\014queued_tasks\030" + "\002 \003(\0132\016.mesos.v1.Task\022&\n\016launched_tasks\030" + "\003 \003(\0132\016.mesos.v1.Task\022(\n\020terminated_task" + "s\030\004 \003(\0132\016.mesos.v1.Task\022\'\n\017completed_tas", "ks\030\005 \003(\0132\016.mesos.v1.Task\0323\n\010GetAgent\022\'\n\n" + "agent_info\030\001 \001(\0132\023.mesos.v1.AgentInfo\032*\n" + "\023WaitNestedContainer\022\023\n\013exit_status\030\001 \001(" + "\005\"\215\002\n\004Type\022\013\n\007UNKNOWN\020\000\022\016\n\nGET_HEALTH\020\001\022" + "\r\n\tGET_FLAGS\020\002\022\017\n\013GET_VERSION\020\003\022\017\n\013GET_M" + "ETRICS\020\004\022\025\n\021GET_LOGGING_LEVEL\020\005\022\016\n\nLIST_" + "FILES\020\006\022\r\n\tREAD_FILE\020\007\022\r\n\tGET_STATE\020\010\022\022\n" + "\016GET_CONTAINERS\020\t\022\022\n\016GET_FRAMEWORKS\020\n\022\021\n" + "\rGET_EXECUTORS\020\013\022\r\n\tGET_TASKS\020\014\022\r\n\tGET_A" + "GENT\020\016\022\031\n\025WAIT_NESTED_CONTAINER\020\r\"\330\004\n\tPr", "ocessIO\022,\n\004type\030\001 \001(\0162\036.mesos.v1.agent.P" + "rocessIO.Type\022,\n\004data\030\002 \001(\0132\036.mesos.v1.a" + "gent.ProcessIO.Data\0222\n\007control\030\003 \001(\0132!.m" + "esos.v1.agent.ProcessIO.Control\032\177\n\004Data\022" + "1\n\004type\030\001 \001(\0162#.mesos.v1.agent.ProcessIO" + ".Data.Type\022\014\n\004data\030\002 \001(\014\"6\n\004Type\022\013\n\007UNKN" + "OWN\020\000\022\t\n\005STDIN\020\001\022\n\n\006STDOUT\020\002\022\n\n\006STDERR\020\003" + "\032\215\002\n\007Control\0224\n\004type\030\001 \001(\0162&.mesos.v1.ag" + "ent.ProcessIO.Control.Type\022#\n\010tty_info\030\002" + " \001(\0132\021.mesos.v1.TTYInfo\022>\n\theartbeat\030\003 \001", "(\0132+.mesos.v1.agent.ProcessIO.Control.He" + "artbeat\0325\n\tHeartbeat\022(\n\010interval\030\001 \001(\0132\026" + ".mesos.v1.DurationInfo\"0\n\004Type\022\013\n\007UNKNOW" + "N\020\000\022\014\n\010TTY_INFO\020\001\022\r\n\tHEARTBEAT\020\002\"*\n\004Type" + "\022\013\n\007UNKNOWN\020\000\022\010\n\004DATA\020\001\022\013\n\007CONTROL\020\002B#\n\031" + "org.apache.mesos.v1.agentB\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_agent_Call_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_mesos_v1_agent_Call_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Call_descriptor, new java.lang.String[] { "Type", "GetMetrics", "SetLoggingLevel", "ListFiles", "ReadFile", "LaunchNestedContainer", "WaitNestedContainer", "KillNestedContainer", "RemoveNestedContainer", "LaunchNestedContainerSession", "AttachContainerInput", "AttachContainerOutput", }); internal_static_mesos_v1_agent_Call_GetMetrics_descriptor = internal_static_mesos_v1_agent_Call_descriptor.getNestedTypes().get(0); internal_static_mesos_v1_agent_Call_GetMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Call_GetMetrics_descriptor, new java.lang.String[] { "Timeout", }); internal_static_mesos_v1_agent_Call_SetLoggingLevel_descriptor = internal_static_mesos_v1_agent_Call_descriptor.getNestedTypes().get(1); internal_static_mesos_v1_agent_Call_SetLoggingLevel_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Call_SetLoggingLevel_descriptor, new java.lang.String[] { "Level", "Duration", }); internal_static_mesos_v1_agent_Call_ListFiles_descriptor = internal_static_mesos_v1_agent_Call_descriptor.getNestedTypes().get(2); internal_static_mesos_v1_agent_Call_ListFiles_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Call_ListFiles_descriptor, new java.lang.String[] { "Path", }); internal_static_mesos_v1_agent_Call_ReadFile_descriptor = internal_static_mesos_v1_agent_Call_descriptor.getNestedTypes().get(3); internal_static_mesos_v1_agent_Call_ReadFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Call_ReadFile_descriptor, new java.lang.String[] { "Path", "Offset", "Length", }); internal_static_mesos_v1_agent_Call_LaunchNestedContainer_descriptor = internal_static_mesos_v1_agent_Call_descriptor.getNestedTypes().get(4); internal_static_mesos_v1_agent_Call_LaunchNestedContainer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Call_LaunchNestedContainer_descriptor, new java.lang.String[] { "ContainerId", "Command", "Container", }); internal_static_mesos_v1_agent_Call_WaitNestedContainer_descriptor = internal_static_mesos_v1_agent_Call_descriptor.getNestedTypes().get(5); internal_static_mesos_v1_agent_Call_WaitNestedContainer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Call_WaitNestedContainer_descriptor, new java.lang.String[] { "ContainerId", }); internal_static_mesos_v1_agent_Call_KillNestedContainer_descriptor = internal_static_mesos_v1_agent_Call_descriptor.getNestedTypes().get(6); internal_static_mesos_v1_agent_Call_KillNestedContainer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Call_KillNestedContainer_descriptor, new java.lang.String[] { "ContainerId", }); internal_static_mesos_v1_agent_Call_RemoveNestedContainer_descriptor = internal_static_mesos_v1_agent_Call_descriptor.getNestedTypes().get(7); internal_static_mesos_v1_agent_Call_RemoveNestedContainer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Call_RemoveNestedContainer_descriptor, new java.lang.String[] { "ContainerId", }); internal_static_mesos_v1_agent_Call_LaunchNestedContainerSession_descriptor = internal_static_mesos_v1_agent_Call_descriptor.getNestedTypes().get(8); internal_static_mesos_v1_agent_Call_LaunchNestedContainerSession_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Call_LaunchNestedContainerSession_descriptor, new java.lang.String[] { "ContainerId", "Command", "Container", }); internal_static_mesos_v1_agent_Call_AttachContainerInput_descriptor = internal_static_mesos_v1_agent_Call_descriptor.getNestedTypes().get(9); internal_static_mesos_v1_agent_Call_AttachContainerInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Call_AttachContainerInput_descriptor, new java.lang.String[] { "Type", "ContainerId", "ProcessIo", }); internal_static_mesos_v1_agent_Call_AttachContainerOutput_descriptor = internal_static_mesos_v1_agent_Call_descriptor.getNestedTypes().get(10); internal_static_mesos_v1_agent_Call_AttachContainerOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Call_AttachContainerOutput_descriptor, new java.lang.String[] { "ContainerId", }); internal_static_mesos_v1_agent_Response_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_mesos_v1_agent_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_descriptor, new java.lang.String[] { "Type", "GetHealth", "GetFlags", "GetVersion", "GetMetrics", "GetLoggingLevel", "ListFiles", "ReadFile", "GetState", "GetContainers", "GetFrameworks", "GetExecutors", "GetTasks", "GetAgent", "WaitNestedContainer", }); internal_static_mesos_v1_agent_Response_GetHealth_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(0); internal_static_mesos_v1_agent_Response_GetHealth_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetHealth_descriptor, new java.lang.String[] { "Healthy", }); internal_static_mesos_v1_agent_Response_GetFlags_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(1); internal_static_mesos_v1_agent_Response_GetFlags_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetFlags_descriptor, new java.lang.String[] { "Flags", }); internal_static_mesos_v1_agent_Response_GetVersion_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(2); internal_static_mesos_v1_agent_Response_GetVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetVersion_descriptor, new java.lang.String[] { "VersionInfo", }); internal_static_mesos_v1_agent_Response_GetMetrics_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(3); internal_static_mesos_v1_agent_Response_GetMetrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetMetrics_descriptor, new java.lang.String[] { "Metrics", }); internal_static_mesos_v1_agent_Response_GetLoggingLevel_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(4); internal_static_mesos_v1_agent_Response_GetLoggingLevel_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetLoggingLevel_descriptor, new java.lang.String[] { "Level", }); internal_static_mesos_v1_agent_Response_ListFiles_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(5); internal_static_mesos_v1_agent_Response_ListFiles_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_ListFiles_descriptor, new java.lang.String[] { "FileInfos", }); internal_static_mesos_v1_agent_Response_ReadFile_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(6); internal_static_mesos_v1_agent_Response_ReadFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_ReadFile_descriptor, new java.lang.String[] { "Size", "Data", }); internal_static_mesos_v1_agent_Response_GetState_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(7); internal_static_mesos_v1_agent_Response_GetState_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetState_descriptor, new java.lang.String[] { "GetTasks", "GetExecutors", "GetFrameworks", }); internal_static_mesos_v1_agent_Response_GetContainers_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(8); internal_static_mesos_v1_agent_Response_GetContainers_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetContainers_descriptor, new java.lang.String[] { "Containers", }); internal_static_mesos_v1_agent_Response_GetContainers_Container_descriptor = internal_static_mesos_v1_agent_Response_GetContainers_descriptor.getNestedTypes().get(0); internal_static_mesos_v1_agent_Response_GetContainers_Container_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetContainers_Container_descriptor, new java.lang.String[] { "FrameworkId", "ExecutorId", "ExecutorName", "ContainerId", "ContainerStatus", "ResourceStatistics", }); internal_static_mesos_v1_agent_Response_GetFrameworks_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(9); internal_static_mesos_v1_agent_Response_GetFrameworks_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetFrameworks_descriptor, new java.lang.String[] { "Frameworks", "CompletedFrameworks", }); internal_static_mesos_v1_agent_Response_GetFrameworks_Framework_descriptor = internal_static_mesos_v1_agent_Response_GetFrameworks_descriptor.getNestedTypes().get(0); internal_static_mesos_v1_agent_Response_GetFrameworks_Framework_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetFrameworks_Framework_descriptor, new java.lang.String[] { "FrameworkInfo", }); internal_static_mesos_v1_agent_Response_GetExecutors_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(10); internal_static_mesos_v1_agent_Response_GetExecutors_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetExecutors_descriptor, new java.lang.String[] { "Executors", "CompletedExecutors", }); internal_static_mesos_v1_agent_Response_GetExecutors_Executor_descriptor = internal_static_mesos_v1_agent_Response_GetExecutors_descriptor.getNestedTypes().get(0); internal_static_mesos_v1_agent_Response_GetExecutors_Executor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetExecutors_Executor_descriptor, new java.lang.String[] { "ExecutorInfo", }); internal_static_mesos_v1_agent_Response_GetTasks_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(11); internal_static_mesos_v1_agent_Response_GetTasks_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetTasks_descriptor, new java.lang.String[] { "PendingTasks", "QueuedTasks", "LaunchedTasks", "TerminatedTasks", "CompletedTasks", }); internal_static_mesos_v1_agent_Response_GetAgent_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(12); internal_static_mesos_v1_agent_Response_GetAgent_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_GetAgent_descriptor, new java.lang.String[] { "AgentInfo", }); internal_static_mesos_v1_agent_Response_WaitNestedContainer_descriptor = internal_static_mesos_v1_agent_Response_descriptor.getNestedTypes().get(13); internal_static_mesos_v1_agent_Response_WaitNestedContainer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_Response_WaitNestedContainer_descriptor, new java.lang.String[] { "ExitStatus", }); internal_static_mesos_v1_agent_ProcessIO_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_mesos_v1_agent_ProcessIO_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_ProcessIO_descriptor, new java.lang.String[] { "Type", "Data", "Control", }); internal_static_mesos_v1_agent_ProcessIO_Data_descriptor = internal_static_mesos_v1_agent_ProcessIO_descriptor.getNestedTypes().get(0); internal_static_mesos_v1_agent_ProcessIO_Data_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_ProcessIO_Data_descriptor, new java.lang.String[] { "Type", "Data", }); internal_static_mesos_v1_agent_ProcessIO_Control_descriptor = internal_static_mesos_v1_agent_ProcessIO_descriptor.getNestedTypes().get(1); internal_static_mesos_v1_agent_ProcessIO_Control_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_ProcessIO_Control_descriptor, new java.lang.String[] { "Type", "TtyInfo", "Heartbeat", }); internal_static_mesos_v1_agent_ProcessIO_Control_Heartbeat_descriptor = internal_static_mesos_v1_agent_ProcessIO_Control_descriptor.getNestedTypes().get(0); internal_static_mesos_v1_agent_ProcessIO_Control_Heartbeat_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_mesos_v1_agent_ProcessIO_Control_Heartbeat_descriptor, new java.lang.String[] { "Interval", }); org.apache.mesos.v1.Protos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy